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?
Container for the marker's editing controls.
Marker height.
x coordinate of the top-left corner.
Height at the start of manipulation.
x coordinate of the top-left corner at the start of manipulation.
Marker's state when it is selected
y coordinate of the top-left corner at the start of manipulation.
Width at the start of manipulation.
x coordinate of the pointer at the start of manipulation.
y coordinate of the pointer at the start of manipulation.
Additional information about the marker
Pointer's horizontal distance from the top left corner.
Pointer's vertical distance from the top left corner.
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.
Marker's rotation angle.
y coordinate of the top-left corner.
Marker width.
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.
x coordinate of the marker's center.
y coordinate of the marker's center.
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.
Container for the marker's visual.
Container for the marker's visual.
Called by a marker when its foreground color changes.
Handles pointer (mouse, touch, stylus, etc.) double click event.
event coordinates.
direct event target element.
Hides marker's controls.
Disposes the marker and clean's up.
Called by a marker when its background/fill color changes.
Returns marker's state.
Hides marker's editing controls.
Handles marker manipulation (move, resize, rotate, etc.).
event coordinates.
Moves visual to the specified coordinates.
coordinates of the new top-left corner of the visual.
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.
Resizes the marker based on pointer coordinates and context.
pointer coordinates.
Restores marker's state to the previously saved one.
previously saved state.
Scales marker. Used after the image resize.
horizontal scale
vertical scale
Displays marker's controls.
Sets control box size and location.
Shows marker's editing controls.
Called by a marker when its state could have changed. Does a check if the state has indeed changed before firing the handler.
The default marker size when the marker is created with a click (without dragging).
Generated using TypeDoc
RectangularBoxMarkerBase is a base class for all marker's with rectangular controls such as all rectangle markers, text and callout markers.
It creates and manages the rectangular control box and related resize, move, and rotate manipulations.