Class: BrushToolbar

OSDPaperjsAnnotation.BrushTool.BrushToolbar(brushTool)

Represents the Brush Tool's toolbar in the Annotation Toolkit program. This toolbar provides options to set the brush radius and toggle Erase Mode.

Constructor

new BrushToolbar(brushTool)

Create a BrushToolbar instance.
Parameters:
Name Type Description
brushTool BrushTool The parent BrushTool instance.
Source:

Extends

  • AnnotationUIToolbarBase

Methods

isEnabledForMode(mode) → {boolean}

Check if the Brush Tool is enabled for the given mode.
Parameters:
Name Type Description
mode string The current mode of the Annotation Toolkit program.
Source:
Returns:
A flag indicating if the Brush Tool is enabled for the given mode.
Type
boolean

setEraseMode(erasing)

Set the Erase Mode on the toolbar.
Parameters:
Name Type Description
erasing boolean A flag indicating whether the Erase Mode is active or not.
Source:

updateBrushRadius(update)

Update the brush radius based on the provided update.
Parameters:
Name Type Description
update Object The update object specifying whether to make the brush radius larger or smaller.
Properties:
Name Type Description
update.larger boolean A flag indicating whether to make the brush radius larger or smaller.
Source: