Skip to main content

AnchorPlacement

AnchorPlacement = object

Defines the current location that an anchor is placed at, for use in edge geometry objects.

Properties​

curX​

curX: number

Current X in canvas coordinates


curY​

curY: number

Current Y in canvas coordinates


offsetX?​

optional offsetX: number

Optional offset to apply in X axis - in canvas coordinates. This is applied after the anchor's x value is used to compute its location on the vertex.


offsetY?​

optional offsetY: number

Optional offset to apply in Y axis - in canvas coordinates. This is applied after the anchor's y value is used to compute its location on the vertex.


ox​

ox: AnchorOrientationHint

Orientation of the source anchor


oy​

oy: AnchorOrientationHint

Orientation of the target anchor


x​

x: number

X location of anchor as a proportion of the width of the element


y​

y: number

Y location of anchor as a proportion of the height of the element