ObjectAnchorSpec
ObjectAnchorSpec =
object
Definition of an Anchor. This is the type that VisuallyJs converts all others to internally.
Properties
offsetX?
optionaloffsetX:number
Optional offset to apply to the anchor position in the X axis after computing it via the x property. This value is in canvas coordinates.
offsetY?
optionaloffsetY:number
Optional offset to apply to the anchor position in the Y axis after computing it via the y property. This value is in canvas coordinates.
ox
Orientation of the anchor in the X axis.
oy
Orientation of the anchor in the Y axis.
portId?
optionalportId:string
Optional port ID to associate with this anchor.
x
x:
number
Location of the anchor in the X axis as a proportion of the element's width
y
y:
number
Location of the anchor in the Y axis as a proportion of the element's width