Class: EllipseToolbar

OSDPaperjsAnnotation.EllipseTool.EllipseToolbar(tool)

Represents an ellipse annotation tool's user interface toolbar.

Constructor

new EllipseToolbar(tool)

The `EllipseToolbar` class provides a user interface toolbar for the ellipse annotation tool. It inherits from the `AnnotationUIToolbarBase` class and includes methods to configure, enable, and update instructions for the ellipse tool.
Parameters:
Name Type Description
tool AnnotationTool The annotation tool associated with the toolbar.
Source:

Extends

  • AnnotationUIToolbarBase

Methods

isEnabledForMode(mode) → {boolean}

This method checks if the ellipse tool is enabled for the given mode by comparing it with the supported modes.
Parameters:
Name Type Description
mode string The mode of the annotation tool.
Source:
Returns:
Returns `true` if the mode is 'new' or 'Point:Ellipse', otherwise `false`.
Type
boolean

updateInstructions(mode)

This method updates the instructions text based on the annotation tool's mode. It provides appropriate instructions for different modes.
Parameters:
Name Type Description
mode string The mode of the annotation tool.
Source: