FloatingToolbar
Documentation / @elitechart/core / FloatingToolbar
Defined in: ui/floating-toolbar.ts:93
Per-drawing floating toolbar. Renders above the selected drawing with color / line-style / lock / delete actions. Auto-flips below the drawing when it would clip at the top.
Example
Constructors
Constructor
Defined in: ui/floating-toolbar.ts:110
Parameters
config
Returns
FloatingToolbar
Accessors
bbox
Get Signature
Defined in: ui/floating-toolbar.ts:232
Testing hook — access current bbox.
Returns
ToolbarBBox | null
element
Get Signature
Defined in: ui/floating-toolbar.ts:227
Testing hook — read the element for assertions.
Returns
HTMLElement
visible
Get Signature
Defined in: ui/floating-toolbar.ts:213
Whether the toolbar is currently showing.
Returns
boolean
Methods
destroy()
Defined in: ui/floating-toolbar.ts:218
Remove the toolbar DOM and break all listeners.
Returns
void
hide()
Defined in: ui/floating-toolbar.ts:206
Hide the toolbar and clear the binding.
Returns
void
position()
Defined in: ui/floating-toolbar.ts:190
Reposition without changing the binding (for drag/viewport updates).
Parameters
bbox
Returns
void
showFor()
Defined in: ui/floating-toolbar.ts:181
Show the toolbar above bbox, using binding for actions.
Parameters
binding
bbox
Returns
void