diff --git a/apps/catalog/src/EditorDockExample.tsx b/apps/catalog/src/EditorDockExample.tsx index a760ab0..e40a09b 100644 --- a/apps/catalog/src/EditorDockExample.tsx +++ b/apps/catalog/src/EditorDockExample.tsx @@ -7,7 +7,7 @@ export function EditorDockExample({inWindow=false}:{inWindow?:boolean}){ const [layout,setLayout]=useState({tree:{axis:'y',ratio:70,first:{axis:'x',ratio:25,first:{id:'objects'},second:{id:'viewport'}},second:{id:'materials'}},floating:{}}); return <>{!inWindow&&<>setModal(false)}>}
setEditing(false)} headerActions={purpose==='view'?:undefined}> - Закреплённая сцена
} + Закреплённая сцена · откреплённые инструменты используют scene Glass V4} tools={[{id:'objects',title:'Объекты',label:'Объекты',open:open.objects,onClose:()=>setOpen(v=>({...v,objects:false})),content:Сцена → Модель → Детали}, {id:'materials',title:'Материалы',label:'Материалы',minimumSize:{width:380,height:280},footer:,open:open.materials,onClose:()=>setOpen(v=>({...v,materials:false})),content:}]} defaultOpen={["color"]} header={Минимум 380 × 280. Пипетка берёт цвет с экрана после нажатия; Escape отменяет выбор. Нижняя кнопка не прокручивается.}/>}]}/> diff --git a/docs/COMPONENTS.md b/docs/COMPONENTS.md index 565f122..875eae3 100644 --- a/docs/COMPONENTS.md +++ b/docs/COMPONENTS.md @@ -588,3 +588,5 @@ Tree supports optional controlled `selectedIds` for multi-selection. Its selecti ColorField screen sampling (owner direction, 2026-11-14): the shared palette includes a Pipette action. In secure browsers supporting EyeDropper, click “Цвет с экрана”, then any screen pixel, including another application or desktop. Escape cancels without a change. Sampling never starts on pointer leave, never captures a screenshot, and is aborted when the control closes, disables or unmounts. Unsupported browsers expose “Системная палитра”; desktop sampling there depends on the native browser/OS picker. Palette/HEX remain usable regardless. This explicit fallback is the approved exception to the old no-native-dialog rule. Floating EditorDockLayout tools honor minimumSize on restore, all eight resize edges and keyboard resize. If the available viewport is smaller, they fit that viewport; Inspector fields stack below a 330px content width instead of clipping. Tool footer is separate from the scrolling body; a Button width="full" is the canonical adaptive bottom action. The catalog's scene editor example demonstrates minimum size, a ColorField and fixed reset footer. + +EditorDockLayout: every floating or actively detached tool uses context="scene" Glass V4 (shared scene tint/blur); docking removes that context and retains tiled surface/corner rules. Applies to hierarchy, layers, settings and any other editor tool. No application tint/blur overrides. diff --git a/docs/VIEWPORT_UI.md b/docs/VIEWPORT_UI.md index 89fadfc..b394e02 100644 --- a/docs/VIEWPORT_UI.md +++ b/docs/VIEWPORT_UI.md @@ -15,3 +15,5 @@ Живой каталог → Glassy material: общий материал плашки и компактная панель управления над тем же фоном. Проверять на тёмном и светлом изображении, без наведения и при hover/focus, узком размере и fullscreen. Для BIM и центра наблюдения отдельно проверять реальные action rails; изменение CSS не является доказательством связи с устройством или работоспособности renderer. Миграция начинается с BIM-карты/viewer и Центра наблюдения. Общий action scope охватывает существующие scene/map/replay controls; оставшиеся собственные подложки переводятся на тот же surface contract. Не создавать глобальную непрозрачную плашку вокруг всех viewports. + +Уточнение 15.11.2026: все откреплённые панели `EditorDockLayout` (иерархия, слои, настройки и другие инструменты) автоматически получают `data-glass-context="scene"`. Материал действует уже во время отрыва/перетаскивания и после восстановления плавающего положения. Повторная стыковка возвращает материал и наружные углы tiled-панелей. Приложение не задаёт свои tint/blur/opacity. diff --git a/packages/ui-react/src/EditorDockLayout.tsx b/packages/ui-react/src/EditorDockLayout.tsx index 6f2eed1..5d3168d 100644 --- a/packages/ui-react/src/EditorDockLayout.tsx +++ b/packages/ui-react/src/EditorDockLayout.tsx @@ -102,7 +102,7 @@ export function EditorDockLayout({value,onChange,primary,primaryId='viewport',pr {tools.map(tool=>{ const moving=drag?.id===tool.id,free=!rects[tool.id]||moving; const rect=moving?drag.current:rects[tool.id]??floatingRect(tool.id); - return