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?
optionaloffsetX: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?
optionaloffsetY: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
Orientation of the source anchor
oy
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