Type Alias: FeatureEvents
type FeatureEvents = object;Properties
add()
add: (evt) => void;Event trigerred when adding an annotation
Parameters
evt
The annotation added
Returns
void
cancelDrawing()
cancelDrawing: () => void;Event trigerred when canceling drawing mode
Returns
void
click()
click: () => void;Event triggered when a click completes on an annotation (mouseup without drag)
Returns
void
completeDrawing()
completeDrawing: (evt) => void;Event trigerred when completing a drawing operation
Parameters
evt
Contains the ID of the completed annotation
Returns
void
dragend()
dragend: () => void;Event triggered when a drag operation ends on an annotation
Returns
void
dragstart()
dragstart: () => void;Event triggered when a drag operation starts on an annotation
Returns
void
history()
history: (evt) => void;Event trigerred when history state changes (after undo/redo operations)
Parameters
evt
Contains boolean flags for undo/redo availability
Returns
void
link()
link: (evt) => void;Event trigerred when linking an arrow to a node or annotation
Parameters
evt
Contains the arrow and link details
arrow
link
Returns
void
remove()
remove: (evt) => void;Event trigerred when removing an annotation
Parameters
evt
The annotation removed
Returns
void
select()
select: (evt) => void;Event trigerred when selecting an annotation
Parameters
evt
The annotation selected
Returns
void
unselect()
unselect: (evt) => void;Event trigerred when unselecting an annotation
Parameters
evt
The annotation unselected
Returns
void
update()
update: (evt) => void;Event trigerred when updating an annotation. This fires after any modification including drag operations, style changes, scaling, etc.
Parameters
evt
The updated annotation with all changes applied
Returns
void