ArrowOverlayOptions
Options for an Arrow overlay.
Properties
attributes?
optionalattributes:Record<string,string>
Optional custom attributes to write to the overlay's element.
Inherited from
SimpleShapeOverlayOptions.attributes
cssClass?
optionalcssClass:string
Optional CSS class(es) to add to the overlay's element.
Inherited from
SimpleShapeOverlayOptions.cssClass
direction?
optionaldirection:number
1 to point forwards (the default), -1 to point backwards. Only taken into consideration in some overlay types.
Inherited from
SimpleShapeOverlayOptions.direction
events?
optionalevents:Record<OverlayEvents, (value,event?) =>any>
Optional event handlers to attach to the overlay.
Inherited from
SimpleShapeOverlayOptions.events
foldback?
optionalfoldback:number
How far, as a decimal, along the line from head to baseline to fold back into. Defaults to 0.623.
hollow?
optionalhollow:boolean
Defaults to false. When true, the arrow is stroked but not filled.
Inherited from
SimpleShapeOverlayOptions.hollow
id?
optionalid:string
Optional ID for the overlay. Can be used to retrieve the overlay from a connection.
Inherited from
SimpleShapeOverlayOptions.id
length?
optionallength:number
Length from the head to the baseline. Defaults to 20.
location?
optionallocation:number
Defaults to 0.5. See docs.
Inherited from
SimpleShapeOverlayOptions.location
paintStyle?
optionalpaintStyle:PaintStyle
Optional paint style to use.
Inherited from
SimpleShapeOverlayOptions.paintStyle
visibility?
optionalvisibility:OverlayVisibility
Whether the overlay is always visible, or only on hover. Defaults to OVERLAY_VISIBILITY_ALWAYS.
Inherited from
SimpleShapeOverlayOptions.visibility
width?
optionalwidth:number
Width of the arrow's baseline. Defaults to 20.