Integrate dockable BIM viewer, IFC hierarchy and scene tools
This commit is contained in:
@@ -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))}/>
|
||||
</>;
|
||||
|
||||
Reference in New Issue
Block a user