@hilum/designer
v2.0.3
Published
Engine-agnostic canvas-editor chrome — DesignerShell, Toolbar, Panel, Pane + generic useHistory and useKeybindings hooks
Readme
@hilum/designer
Engine-agnostic canvas-editor chrome. Provides the shell, toolbar, side panels, collapsible panes, and generic hooks (undo/redo stack, keyboard shortcuts) — works with any kind of editing surface (free-positioned canvas, form builder, layout editor, code editor).
For the actual canvas (pan/zoom viewport, layers, drag/resize), use @hilum/designer-canvas on top.
Components
<DesignerShell>— root layout (full viewport, themed)<DesignerHeader>/<DesignerSidebar>/<DesignerPanel>— chrome<DesignerPane>— collapsible property panel section withshowForpredicate<DesignerToolbar>+Group/Button/Separator— composable toolbar
Hooks
useHistory<T>(initial)— generic undo/redo stackuseKeybindings(config)— keyboard shortcut registryuseShellContext()— selection, active tool, read-only flag
