@ifc-lite/viewer 1.5.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/assets/{Arrow.dom-B0e15b_b.js → Arrow.dom-Be1tgmo6.js} +1 -1
- package/dist/assets/{index-Dgd6vzw_.js → index-D1Du89Pa.js} +1427 -1422
- package/dist/assets/{native-bridge-Ci7NLjlZ.js → native-bridge-A6zNnTfi.js} +1 -1
- package/dist/assets/{wasm-bridge-Dc82YpdZ.js → wasm-bridge-DkRhgSvE.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +15 -15
- package/src/components/viewer/PropertiesPanel.tsx +0 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as f,g as m}from"./index-
|
|
1
|
+
import{I as f,g as m}from"./index-D1Du89Pa.js";class u{bridge;initialized=!1;constructor(){this.bridge=new f}async init(){this.initialized||(await this.bridge.init(),this.initialized=!0)}isInitialized(){return this.initialized}async processGeometry(s){this.initialized||await this.init(),performance.now();const i=new m(this.bridge.getApi(),s),n=i.collectMeshes(),r=i.getBuildingRotation();performance.now();let e=0,o=0;for(const c of n)e+=c.positions.length/3,o+=c.indices.length/3;return{meshes:n,totalVertices:e,totalTriangles:o,coordinateInfo:{originShift:{x:0,y:0,z:0},originalBounds:{min:{x:0,y:0,z:0},max:{x:0,y:0,z:0}},shiftedBounds:{min:{x:0,y:0,z:0},max:{x:0,y:0,z:0}},hasLargeCoordinates:!1,buildingRotation:r}}}async processGeometryStreaming(s,i){this.initialized||await this.init();const n=performance.now(),r=new m(this.bridge.getApi(),s);let e=0,o=0,a=0;try{for await(const t of r.collectMeshesStreaming(50)){if(t&&typeof t=="object"&&"type"in t&&t.type==="colorUpdate")continue;const l=t;e+=l.length;for(const d of l)o+=d.positions.length/3,a+=d.indices.length/3;i.onBatch?.({meshes:l,progress:{processed:e,total:e,currentType:"processing"}})}}catch(t){throw i.onError?.(t instanceof Error?t:new Error(String(t))),t}const g=performance.now()-n,h={totalMeshes:e,totalVertices:o,totalTriangles:a,parseTimeMs:g*.3,geometryTimeMs:g*.7};return i.onComplete?.(h),h}getApi(){return this.bridge.getApi()}}export{u as WasmBridge};
|
package/dist/index.html
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<meta name="theme-color" content="#7aa2f7">
|
|
36
36
|
<meta name="msapplication-TileColor" content="#1a1b26">
|
|
37
37
|
<meta name="msapplication-TileImage" content="/favicon-192x192-cropped.png">
|
|
38
|
-
<script type="module" crossorigin src="/assets/index-
|
|
38
|
+
<script type="module" crossorigin src="/assets/index-D1Du89Pa.js"></script>
|
|
39
39
|
<link rel="stylesheet" crossorigin href="/assets/index-v3mcCUPN.css">
|
|
40
40
|
</head>
|
|
41
41
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ifc-lite/viewer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "IFC-Lite viewer application",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
@@ -33,20 +33,20 @@
|
|
|
33
33
|
"tailwind-merge": "^3.4.0",
|
|
34
34
|
"tailwindcss": "^4.1.18",
|
|
35
35
|
"zustand": "^4.4.0",
|
|
36
|
-
"@ifc-lite/bcf": "^1.
|
|
37
|
-
"@ifc-lite/cache": "^1.
|
|
38
|
-
"@ifc-lite/data": "^1.
|
|
39
|
-
"@ifc-lite/ids": "^1.
|
|
40
|
-
"@ifc-lite/drawing-2d": "^1.
|
|
41
|
-
"@ifc-lite/export": "^1.
|
|
42
|
-
"@ifc-lite/geometry": "^1.
|
|
43
|
-
"@ifc-lite/mutations": "^1.
|
|
44
|
-
"@ifc-lite/parser": "^1.
|
|
45
|
-
"@ifc-lite/query": "^1.
|
|
46
|
-
"@ifc-lite/renderer": "^1.
|
|
47
|
-
"@ifc-lite/server-client": "^1.
|
|
48
|
-
"@ifc-lite/spatial": "^1.
|
|
49
|
-
"@ifc-lite/wasm": "^1.
|
|
36
|
+
"@ifc-lite/bcf": "^1.6.1",
|
|
37
|
+
"@ifc-lite/cache": "^1.6.1",
|
|
38
|
+
"@ifc-lite/data": "^1.6.1",
|
|
39
|
+
"@ifc-lite/ids": "^1.6.1",
|
|
40
|
+
"@ifc-lite/drawing-2d": "^1.6.1",
|
|
41
|
+
"@ifc-lite/export": "^1.6.1",
|
|
42
|
+
"@ifc-lite/geometry": "^1.6.1",
|
|
43
|
+
"@ifc-lite/mutations": "^1.6.1",
|
|
44
|
+
"@ifc-lite/parser": "^1.6.1",
|
|
45
|
+
"@ifc-lite/query": "^1.6.1",
|
|
46
|
+
"@ifc-lite/renderer": "^1.6.1",
|
|
47
|
+
"@ifc-lite/server-client": "^1.6.1",
|
|
48
|
+
"@ifc-lite/spatial": "^1.6.1",
|
|
49
|
+
"@ifc-lite/wasm": "^1.6.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@tailwindcss/postcss": "^4.1.18",
|
|
@@ -539,26 +539,15 @@ export function PropertiesPanel() {
|
|
|
539
539
|
modelId = '__legacy__';
|
|
540
540
|
}
|
|
541
541
|
|
|
542
|
-
// DEBUG: Log what we're working with
|
|
543
|
-
console.log('[PropertiesPanel] modelId:', modelId, 'expressId:', expressId, 'mutationVersion:', mutationVersion);
|
|
544
|
-
console.log('[PropertiesPanel] mutationViews keys:', [...mutationViews.keys()]);
|
|
545
|
-
|
|
546
542
|
// Try to get properties from mutation view first (handles both base and mutations)
|
|
547
543
|
const mutationView = modelId ? mutationViews.get(modelId) : null;
|
|
548
|
-
console.log('[PropertiesPanel] mutationView exists:', !!mutationView);
|
|
549
544
|
|
|
550
545
|
if (mutationView && expressId) {
|
|
551
|
-
// DEBUG: Log mutation view state
|
|
552
|
-
const allMutations = mutationView.getMutations();
|
|
553
|
-
console.log('[PropertiesPanel] All mutations in view:', allMutations.length, allMutations);
|
|
554
|
-
|
|
555
546
|
// Get merged properties from mutation view (base + mutations applied)
|
|
556
547
|
const mergedProps = mutationView.getForEntity(expressId);
|
|
557
|
-
console.log('[PropertiesPanel] mergedProps from getForEntity:', mergedProps.length, mergedProps);
|
|
558
548
|
|
|
559
549
|
// Get list of actual mutations to track which properties changed
|
|
560
550
|
const mutations = mutationView.getMutationsForEntity(expressId);
|
|
561
|
-
console.log('[PropertiesPanel] mutations for this entity:', mutations.length, mutations);
|
|
562
551
|
|
|
563
552
|
// Build a set of mutated property keys for quick lookup
|
|
564
553
|
const mutatedKeys = new Set<string>();
|