Creates a new marker.
SVG container to hold marker's visual.
overlay HTML container to hold additional overlay elements while editing.
settings object containing default markers settings.
Is this marker selected?
Marker's state when it is selected
Additional information about the marker
Method to call when foreground color changes.
Method to call when background/fill color changes.
Method called when marker creation is finished.
Method to call when marker state changes.
SVG icon markup displayed on toolbar buttons.
Marker type title (display name) used for accessibility and other attributes.
String type name of the marker type.
Used when adding MarkerArea.availableMarkerTypes via a string and to save and restore state.
SVG container object holding the marker's visual.
Returns true if the marker is currently selected
HTML container that can be used to render overlay objects while the marker is active.
For example, this is used for the text editing layer while editing text in the {@see TextMarker}.
Current marker state.
Both MarkerArea and the marker itself can react differently to different events based on what state the marker is in.
Returns the list of toolbox panels for this marker type.
Instance property returning marker's type name.
Called by a marker when its foreground color changes.
Handles pointer (mouse, touch, stylus, etc.) double click event.
event coordinates.
direct event target element.
Deselects this marker and hides selected marker UI.
Disposes the marker and clean's up.
Called by a marker when its background/fill color changes.
Returns current marker state that can be restored in the future.
Handles marker manipulation (move, resize, rotate, etc.).
event coordinates.
Returns true if passed SVG element belongs to the marker. False otherwise.
target element.
Handles pointer (mouse, touch, stylus, etc.) down event.
event coordinates.
direct event target element.
Handles pointer (mouse, touch, stylus, etc.) up event.
event coordinates.
Restores previously saved marker state.
previously saved state.
Scales marker. Used after the image resize.
horizontal scale
vertical scale
Selects this marker and displays appropriate selected marker UI.
Called by a marker when its state could have changed. Does a check if the state has indeed changed before firing the handler.
Generated using TypeDoc
Base class for all available and custom marker types.
All markers used with marker.js 2 should be descendants of this class.