Skip to main content

Home > @jsplumbtoolkit/browser-ui > Surface > setAbsolutePosition

Surface.setAbsolutePosition() method

Set the absolute position of the given element. Does not update the pan/zoom or any plugins - this is meant to be used as a helper method for positioning elements not directly under the Surface's control.

Signature:

setAbsolutePosition(el: Element, p: PointXY): void;

Parameters

ParameterTypeDescription
elElement
pPointXY

Returns:

void