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.
Recangle fill color.
Color picker panel for the background color.
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.
Rectangle opacity (alpha). 0 to 1.
Marker's rotation angle.
Rectangle stroke color.
Rectangle border stroke dash array.
Rectangle border stroke width.
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.
Creates the marker's rectangle visual.
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 current marker state that can be restored in the future.
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 the pointer coordinates.
current pointer coordinates.
Restores previously saved marker state.
previously saved state.
Scales marker. Used after the image resize.
horizontal scale
vertical scale
Displays marker's controls.
Sets rectangle's fill color.
color as string
Sets visual's width and height attributes based on marker's width and height.
Sets rectangle's border stroke color.
color as string
Sets rectangle's border stroke dash array.
Sets rectangle's border stroke (line) width.
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
Creates a new marker.