Class: PolygonToolbar

OSDPaperjsAnnotation.PolygonTool.PolygonToolbar(polyTool)

Represents the toolbar for the PolygonTool, providing UI controls for polygon annotation. Inherits functionality from the AnnotationUIToolbarBase class.

Constructor

new PolygonToolbar(polyTool)

Create a new instance of the PolygonToolbar class.
Parameters:
Name Type Description
polyTool PolygonTool The associated PolygonTool instance.
Source:

Extends

  • AnnotationUIToolbarBase

Methods

isEnabledForMode(mode) → {boolean}

Check if the toolbar is enabled for the given mode.
Parameters:
Name Type Description
mode string The annotation mode.
Source:
Returns:
True if enabled, false otherwise.
Type
boolean

setEraseMode(erasing)

Set the erase mode for the toolbar, updating UI state.
Parameters:
Name Type Description
erasing boolean True to enable erase mode, false to disable.
Source: