Class: WidgetEditingManager

WidgetEditingManager


new WidgetEditingManager()

an instance of AnnotationManager

Methods


getEditableAnnotation(widget)

Gets the associated annotation of the widget annotation The associated annotation is a resizable/moveable annotation that appears during the editing mode
Parameters:
Name Type Description
widget Annotations.Annotation a widget annotation
Returns:
the associated rectangle if it exists
Type
Annotations.Annotation | null

getWidget(annotation)

Gets the associated widget of the associated annotation
Parameters:
Name Type Description
annotation Annotations.Annotation an annotation that appears in the editing mode
Returns:
the associated widget if it exists
Type
Annotations.Annotation | null

isEditableAnnotation(annotation)

Gets if the annotation is an editable annotation that appears during the editing mode
Parameters:
Name Type Description
annotation Annotations.Annotation an annotation object
Returns:
true if it's an editable annotation
Type
boolean