Skip to main content

AbsoluteLayout

This layout uses the positions defined in your data model to position elements, unless you provide a locationFunction in its options. This is the default layout that the UI uses.

Extends

Methods

getAbsolutePosition()

getAbsolutePosition(v, parameters?): PointXY

Gets the position for the given Node/Group as dictated by either the left/top properties, or some other nominated pair, in the Node/Group's data. This position is what the Absolute layout uses itself, and this method exposes the absolute position for subclasses that wish to make use of the absolute backing.

Parameters

v

Node/Group to get absolute position for.

Node | Group

parameters?

LayoutParameters

Constructor parameters. May contain a custom locationFunction.

Returns

PointXY

Inherited from

AbsoluteBackedLayout.getAbsolutePosition

Properties

type

static type: string = LAYOUT_TYPE_ABSOLUTE

Defines the AbsoluteLayout type. You can use this reference in render params.