Integrate dockable BIM viewer, IFC hierarchy and scene tools

This commit is contained in:
DCCONSTRUCTIONS
2026-11-14 22:16:11 +03:00
parent 9937eb66d8
commit e8920f56a2
13 changed files with 82 additions and 33 deletions
@@ -453,7 +453,7 @@ export function WorkspaceRenderer(props: WorkspaceRendererProps) {
case "network-monitor":
return <NetworkWorkspace />;
case "architectural-projects":
return <ArchitecturalProjectsWorkspace headerToolsHost={props.headerToolsHost} />;
return <ArchitecturalProjectsWorkspace headerToolsHost={props.headerToolsHost} headerTitleHost={props.headerTitleHost} />;
case "datasets":
return <DatasetGatewayWorkspace />;
case "artifact-health":
@@ -12,7 +12,7 @@ const Workspace = lazy(async () => {
});
/** Host composition only: the module owns its catalog, intake, maps and renderer. */
export function ArchitecturalProjectsWorkspace({headerToolsHost}:{headerToolsHost?:HTMLElement|null}) {
export function ArchitecturalProjectsWorkspace({headerToolsHost,headerTitleHost}:{headerToolsHost?:HTMLElement|null;headerTitleHost?:HTMLElement|null}) {
const [toasts, setToasts] = useState<NotificationMessage[]>([]);
const notify = useCallback((notice: Notice) => {
setToasts(items => [...items, {...notice, id: 'bim:' + crypto.randomUUID()}].slice(-5));
@@ -22,7 +22,7 @@ export function ArchitecturalProjectsWorkspace({headerToolsHost}:{headerToolsHos
}), [notify]);
return <>
<Suspense fallback={<Description role="status">Открываем архитектурные проекты…</Description>}>
<Workspace host={host} headerToolsHost={headerToolsHost}/>
<Workspace host={host} headerToolsHost={headerToolsHost} headerTitleHost={headerTitleHost}/>
</Suspense>
<ToastStack items={toasts} onDismiss={id => setToasts(items => items.filter(item => item.id !== id))}/>
</>;