Constructor
new PointTextToolbar(tool)
Create a new instance of the PointTextToolbar, complementing the associated PointTextTool.
Parameters:
Name | Type | Description |
---|---|---|
tool |
PointTextTool | The corresponding PointTextTool instance. |
- Source:
Methods
getValue() → {string}
Retrieve the current value from the input element.
- Source:
Returns:
The value from the input.
- Type
- string
isEnabledForMode(mode) → {boolean}
Determine if the toolbar is enabled for the given annotation mode.
Parameters:
Name | Type | Description |
---|---|---|
mode |
string | The current annotation mode. |
- Source:
Returns:
True if the toolbar is enabled, otherwise false.
- Type
- boolean
setItemText(text)
Update the input element's text content.
Parameters:
Name | Type | Description |
---|---|---|
text |
string | The text to be set in the input. |
- Source:
updateInstructions(mode)
Update the instructional text based on the current annotation mode.
Parameters:
Name | Type | Description |
---|---|---|
mode |
string | The current annotation mode. |
- Source: