PluginButton describes a plugin button that can be registered to the toolbar, lasso toolbar, or text-selection toolbar.
Types
PluginButton
PluginButton data structure.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
PluginButton data structure.
PluginButton describes a plugin button that can be registered to the toolbar, lasso toolbar, or text-selection toolbar.
type PluginButton = {
id: number;
name: string;
icon: string;
showType?: number;
editDataTypes?: number[];
};
| Field | Type | Description |
|---|---|---|
id | number | Button ID (must be unique within the plugin) |
name | string | Button name |
icon | string | Button icon path (absolute path or URI) |
showType | number | Show type: 0 do not show plugin UI, 1 show plugin UI (default 1) |
editDataTypes | number[] | Lasso data type array (only required for lasso toolbar buttons). The button is shown only when the lasso selection matches this list |
| Value | Meaning |
|---|---|
0 | handwritten stroke |
1 | title |
2 | image |
3 | text |
4 | link |
5 | geometry |