Integrate dockable BIM viewer, IFC hierarchy and scene tools
This commit is contained in:
Generated
+4
-4
@@ -10,7 +10,7 @@
|
||||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"@noble/hashes": "^2.2.0",
|
||||
"@nodedc/bim-viewer": "file:../../vendor/bim/nodedc-bim-viewer-0.1.7.tgz",
|
||||
"@nodedc/bim-viewer": "file:../../vendor/bim/nodedc-bim-viewer-0.1.8.tgz",
|
||||
"@nodedc/map-cesium-react": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/map-cesium-react",
|
||||
"@nodedc/page-patterns": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/page-patterns",
|
||||
"@nodedc/tokens": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/tokens",
|
||||
@@ -884,9 +884,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@nodedc/bim-viewer": {
|
||||
"version": "0.1.7",
|
||||
"resolved": "file:../../vendor/bim/nodedc-bim-viewer-0.1.7.tgz",
|
||||
"integrity": "sha512-EN/3m7+Vk04NIEo/scV6XvGlFANefN6f7UZ3g3dNyDsM8Y4UzW4/ug1nxPXVDAa07uilZZVoR1tCJHh60tA6Gg==",
|
||||
"version": "0.1.8",
|
||||
"resolved": "file:../../vendor/bim/nodedc-bim-viewer-0.1.8.tgz",
|
||||
"integrity": "sha512-oZDT98cNOP+QZfACtpK4nv2AWci7c8JqI6+VZtByOzrvbGbFQzvlpFrO84Yjcq//igLYVx8LC2Q0vJnrzds4Nw==",
|
||||
"peerDependencies": {
|
||||
"@nodedc/ui-react": "0.7.0",
|
||||
"react": ">=19 <20",
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@noble/hashes": "^2.2.0",
|
||||
"@nodedc/bim-viewer": "file:../../vendor/bim/nodedc-bim-viewer-0.1.7.tgz",
|
||||
"@nodedc/bim-viewer": "file:../../vendor/bim/nodedc-bim-viewer-0.1.8.tgz",
|
||||
"@nodedc/map-cesium-react": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/map-cesium-react",
|
||||
"@nodedc/page-patterns": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/page-patterns",
|
||||
"@nodedc/tokens": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/tokens",
|
||||
|
||||
@@ -790,7 +790,7 @@ export default function App() {
|
||||
allowFullscreen={activeDefinition.kind === "vehicles"}
|
||||
eyebrow={activeDefinition.eyebrow}
|
||||
title={
|
||||
activeDefinition.kind === "vehicles"
|
||||
(activeDefinition.kind === "vehicles" || activeDefinition.kind === "architectural-projects")
|
||||
? <>{activeDefinition.title}<span className="fleet-header-title" ref={setWorkspaceHeaderTitleHost}/></>
|
||||
: activeDefinition.kind === "recordings"
|
||||
&& replayPresented
|
||||
|
||||
@@ -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