Skip to main content

ObjectAnchorSpec

ObjectAnchorSpec = object

Definition of an Anchor. This is the type that VisuallyJs converts all others to internally.

Properties

offsetX?

optional offsetX: 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?

optional offsetY: 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

ox: AnchorOrientationHint

Orientation of the anchor in the X axis.


oy

oy: AnchorOrientationHint

Orientation of the anchor in the Y axis.


portId?

optional portId: 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