OptionalitemsConfig: TPenActionItemsConfigCloses the submenu
Creates the HTML element
Destroys the element and cleans up resources
ProtectedgetReturns the HTML element
Opens the submenu
ProtectedsideThe side the sub-menu opens on is the first part of its position: "right-top" opens on the right
Toggles the submenu state
Unwraps the submenu (mobile mode)
Updates the element (for reactivity)
ProtectedupdateUpdates the disabled state
ProtectedupdateUpdates the visible state
Wraps the submenu (desktop mode)
Protected OptionalarrowProtectedcanvasProtectedclosedProtectedconfigProtected OptionalelementProtectedloggerProtectedopenedOptionalopenWhere this item opens its sub-menu, set by its menu from the menu's slot before the element is built; an item that opens one reads it before its own default
Protected OptionalsubProtectedsubProtected OptionalsubProtected Optionaltrigger
Remarks
Menu action Pen — tunes the nib the pen currently carries
Every setting is written onto the pen style, so it travels with each stroke drawn afterwards and leaves what is already on the canvas alone. That is what makes two settings comparable: draw with one, change it, draw again, and both are on screen at once.
An item that the current nib does not read is disabled rather than hidden — which nib answers to which setting is itself worth showing.