Returns the arrow type.
Returns the SVG container for the marker's and editor's visual elements.
When set to true, a new marker of the same type is created immediately after the current one is finished.
Marker creation style.
Markers can either be created by drawing them or just dropping them on the canvas.
Gets marker's fill color.
Sets marker's fill color.
Returns true if the marker is currently selected
Returns the marker instance.
Gets marker's notes.
Sets marker's notes.
Gets marker's opacity.
Sets marker's opacity.
Overlay container for HTML elements like text editors, etc.
Gets editor's state.
Gets marker's stroke (outline) color.
Sets marker's stroke (outline) color.
color as string
Gets marker's stroke (outline) dash array.
Sets marker's stroke (outline) dash array.
dash array as string
Gets marker's stroke (outline) width.
Sets marker's stroke (outline) width.
stroke width in pixels.
ProtectedaddAdds control grips to control box.
ProtectedadjustAdjusts marker's control box.
ProtectedcreateHandles pointer (mouse, touch, stylus, etc.) double click event.
event coordinates.
Optionaltarget: EventTargetdirect event target element.
Optionalev: MouseEventpointer event.
Deselects this marker and hides selected marker UI.
Disposes the marker and clean's up.
Returns marker's state that can be restored in the future.
Hides all marker's visuals and editor controls.
This could be useful when you want to temporarily hide the marker so you can, for example, create a new one in the same place. Reveal it later with show.
Handles marker manipulation (move, resize, rotate, etc.).
event coordinates.
Optionalev: PointerEventpointer event.
Returns true if the marker or the editor owns supplied target element.
target element
Handles pointer (mouse, touch, stylus, etc.) down event.
event coordinates.
Optionaltarget: EventTargetdirect event target element.
Optionalev: PointerEventpointer event.
Handles pointer (mouse, touch, stylus, etc.) up event.
event coordinates.
Optionalev: PointerEventpointer event.
ProtectedpositionPositions manipulation grip.
grip to position
new X coordinate
new Y coordinate
ProtectedpositionUpdates manipulation grip layout.
ProtectedresizeRestores previously saved marker state.
previously saved state.
Scales the marker and the editor.
Selects this marker and displays appropriate selected marker UI.
ProtectedsetupCreates control box for manipulation controls.
Shows all marker's visuals and editor controls.
This could be useful when you want to temporarily hide the marker (with hide) so you can, for example, create a new one in the same place.
ProtectedstateCalled by a marker when its state could have changed. Does a check if the state has indeed changed before firing the handler.
Protected_containerSVG container for the marker's and editor's visual elements.
Protected_continuousWhen set to true, a new marker of the same type is created immediately after the current one is finished.
Protected Optional_controlSVG group holding editor's control box.
Protected_creationMarker creation style.
Markers can either be created by drawing them or just dropping them on the canvas.
Protected_isIs this marker selected?
Protected_markerMarker instance.
Protected_markerMarker type constructor.
Marker type constructor.
Protected_overlayOverlay container for HTML elements like text editors, etc.
Protected_stateEditor's state.
Protected OptionalactiveActive manipulation grip.
ProtecteddefaultDefault line length when marker is created with a simple click (without dragging).
Protected Optionalgrip1First manipulation grip
Protected Optionalgrip2Second manipulation grip.
ProtectedisIs this marker selected in a multi-selection?
ProtectedmanipulationContainer for manipulation grips.
Protected OptionalmanipulationMarker's state when it is selected
ProtectedmanipulationPointer X coordinate at the start of move or resize.
ProtectedmanipulationPointer Y coordinate at the start of move or resize.
OptionalonMethod called when marker creation is finished.
OptionalonMethod to call when marker state changes.
Editor for arrow markers.