Skip to main content

Home > @jsplumbtoolkit/core > AbsoluteBackedLayout > getAbsolutePosition

AbsoluteBackedLayout.getAbsolutePosition() method

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.

Signature:

getAbsolutePosition(v: Node | Group, parameters?: LayoutParameters): PointXY;

Parameters

ParameterTypeDescription
vNode | GroupNode/Group to get absolute position for.
parametersLayoutParametersConstructor parameters. May contain a custom locationFunction.

Returns:

PointXY