marker type the instance of the editor is for.
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.
Creates a new instance of marker editor.
marker editor properties.
ProtectedadjustAdjusts marker's control box.
Handles 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.
Restores previously saved marker state.
previously saved state.
Scales the marker and the editor.
Selects this marker and displays appropriate selected marker UI.
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.
ProtectedisIs this marker selected in a multi-selection?
Protected OptionalmanipulationMarker's state when it is selected
OptionalonMethod called when marker creation is finished.
OptionalonMethod to call when marker state changes.
Base class for all marker editors.