feat(ui): extend shared tree actions and BIM tool menus

This commit is contained in:
Codex
2026-11-14 21:55:07 +03:00
parent 91a5ebe8da
commit 6f2f9644fe
8 changed files with 35 additions and 13 deletions
+2
View File
@@ -568,3 +568,5 @@ The shared theme supports `edges: "flat"` for borderless surfaces, including por
## PathBar (DOM)
`renderPathBar(target, items, {icon, onNavigate})` — компактная строка пути в стиле Finder: нейтральные иконки папок, текст и разделители `›`, без pill-кнопок. Подключается `@nodedc/ui-dom/styles.css`. Папки — клавиатурно доступные кнопки; конечный файл — текст с `aria-current`. Длинный путь прокручивается по горизонтали. Consumer передаёт пути и существующий Icon, хранение и навигация остаются в приложении. Живой пример: «Размер DOM-окна».
Toolbar `menuWidth` controls inspector menu width (default 220 px, bounded 180–600 px); Dropdown retains viewport clamping. Tree `renderActions(node)` supports per-item information menus without duplicating the outliner. `defaultExpandedDepth` limits initial expansion; selecting an item still reveals and scrolls to its ancestors. BIM uses canonical `ruler` (Ruler), `section` (Slice), and `isolate` (Focus) glyphs.