Skip to main content
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[];
};

Fields

FieldTypeDescription
idnumberButton ID (must be unique within the plugin)
namestringButton name
iconstringButton icon path (absolute path or URI)
showTypenumberShow type: 0 do not show plugin UI, 1 show plugin UI (default 1)
editDataTypesnumber[]Lasso data type array (only required for lasso toolbar buttons). The button is shown only when the lasso selection matches this list

editDataTypes value

ValueMeaning
0handwritten stroke
1title
2image
3text
4link
5geometry