@ifc-lite/viewer 1.25.0 → 1.25.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/.turbo/turbo-build.log +28 -28
- package/CHANGELOG.md +37 -0
- package/dist/assets/{basketViewActivator-CU8_toGq.js → basketViewActivator-Dkn92C04.js} +6 -6
- package/dist/assets/{bcf-DXGDhw56.js → bcf-DP2AK1-_.js} +1 -1
- package/dist/assets/{deflate-Bb1_H2Yf.js → deflate-BYqYwhkl.js} +1 -1
- package/dist/assets/{exporters-DZhLN0ux.js → exporters-CZe0D8N-.js} +60 -60
- package/dist/assets/{geometry-controller.worker-DQOSYqtw.js → geometry-controller.worker-pD49_fH6.js} +2 -2
- package/dist/assets/{geometry.worker-B62e03Ao.js → geometry.worker-D4c-06r5.js} +1 -1
- package/dist/assets/{geotiff-y0ZxbRJd.js → geotiff-By06vdeL.js} +10 -10
- package/dist/assets/{ids-DruUNtfD.js → ids-DDkkb4mo.js} +3 -3
- package/dist/assets/{ifc-lite-Ch2T9pP9.js → ifc-lite-DxGqDbjO.js} +2 -2
- package/dist/assets/{ifc-lite_bg-iH_07wf8.wasm → ifc-lite_bg-BNeu7R_V.wasm} +0 -0
- package/dist/assets/{ifc-lite_bg-D7O1WHgP.wasm → ifc-lite_bg-DuxUZomW.wasm} +0 -0
- package/dist/assets/{index-Dr88ZlSY.js → index-CqBdDOAZ.js} +24241 -24014
- package/dist/assets/{jpeg-B3_loqFe.js → jpeg-B4IBTphL.js} +1 -1
- package/dist/assets/{lerc-nkwS8ZUe.js → lerc-DQ3jI0Ke.js} +1 -1
- package/dist/assets/{lzw-D3cW5Wpg.js → lzw-CtdH775t.js} +1 -1
- package/dist/assets/{native-bridge-BcYJooq8.js → native-bridge-DA8wxaN_.js} +1 -1
- package/dist/assets/{packbits-DDN4xzB5.js → packbits-DG3zn49C.js} +1 -1
- package/dist/assets/{parser.worker-BW1IMUed.js → parser.worker-BZZcO7DB.js} +1 -1
- package/dist/assets/raw-DY7Y_acr.js +1 -0
- package/dist/assets/{sandbox-DETNEyQb.js → sandbox-D1pQT-5R.js} +2 -2
- package/dist/assets/{server-client-CmzJOeS7.js → server-client-D9xO_8yX.js} +1 -1
- package/dist/assets/{wasm-bridge-CT7mK9W0.js → wasm-bridge-DMX8Acuf.js} +1 -1
- package/dist/assets/{webimage-CBjgg4up.js → webimage-_-qCDjkn.js} +1 -1
- package/dist/assets/{workerHelpers-IEQDo8r3.js → workerHelpers-Crstj4Oa.js} +1 -1
- package/dist/assets/{zstd-C8oQ6qdS.js → zstd-DlfgC8gA.js} +1 -1
- package/dist/index.html +6 -6
- package/package.json +3 -3
- package/src/components/viewer/BCFPanel.tsx +8 -1
- package/src/components/viewer/Section2DPanel.tsx +6 -2
- package/src/components/viewer/bcf/BCFTopicDetail.tsx +24 -0
- package/src/hooks/useBCF.ts +98 -16
- package/src/hooks/useDrawingGeneration.ts +149 -3
- package/src/hooks/useSymbolicAnnotations.ts +70 -26
- package/dist/assets/raw-CoIXstQ-.js +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
> @ifc-lite/viewer@1.25.
|
|
2
|
+
> @ifc-lite/viewer@1.25.1 build /home/runner/work/ifc-lite/ifc-lite/apps/viewer
|
|
3
3
|
> vite build
|
|
4
4
|
|
|
5
5
|
[36mvite v7.3.3 [32mbuilding client environment for production...[36m[39m
|
|
6
6
|
transforming...
|
|
7
|
+
[33m[plugin vite:resolve] Module "node:fs" has been externalized for browser compatibility, imported by "/home/runner/work/ifc-lite/ifc-lite/node_modules/.pnpm/@anthropic-ai+sdk@0.96.0/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.[39m
|
|
7
8
|
[33m[plugin vite:resolve] Module "node:fs" has been externalized for browser compatibility, imported by "/home/runner/work/ifc-lite/ifc-lite/node_modules/.pnpm/@anthropic-ai+sdk@0.96.0/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.[39m
|
|
8
9
|
[33m[plugin vite:resolve] Module "node:fs" has been externalized for browser compatibility, imported by "/home/runner/work/ifc-lite/ifc-lite/node_modules/.pnpm/@anthropic-ai+sdk@0.96.0/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.[39m
|
|
9
10
|
[33m[plugin vite:resolve] Module "node:path" has been externalized for browser compatibility, imported by "/home/runner/work/ifc-lite/ifc-lite/node_modules/.pnpm/@anthropic-ai+sdk@0.96.0/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.[39m
|
|
10
|
-
[33m[plugin vite:resolve] Module "node:fs" has been externalized for browser compatibility, imported by "/home/runner/work/ifc-lite/ifc-lite/node_modules/.pnpm/@anthropic-ai+sdk@0.96.0/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.[39m
|
|
11
|
-
[33m[plugin vite:resolve] Module "node:fs" has been externalized for browser compatibility, imported by "/home/runner/work/ifc-lite/ifc-lite/node_modules/.pnpm/@anthropic-ai+sdk@0.96.0/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.[39m
|
|
12
11
|
[33m[plugin vite:resolve] Module "node:fs" has been externalized for browser compatibility, imported by "/home/runner/work/ifc-lite/ifc-lite/node_modules/.pnpm/@anthropic-ai+sdk@0.96.0/node_modules/@anthropic-ai/sdk/core/credentials.mjs". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.[39m
|
|
13
12
|
[33m[plugin vite:resolve] Module "node:path" has been externalized for browser compatibility, imported by "/home/runner/work/ifc-lite/ifc-lite/node_modules/.pnpm/@anthropic-ai+sdk@0.96.0/node_modules/@anthropic-ai/sdk/core/credentials.mjs". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.[39m
|
|
14
13
|
[33m[plugin vite:resolve] Module "node:fs" has been externalized for browser compatibility, imported by "/home/runner/work/ifc-lite/ifc-lite/node_modules/.pnpm/@anthropic-ai+sdk@0.96.0/node_modules/@anthropic-ai/sdk/core/credentials.mjs". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.[39m
|
|
@@ -16,6 +15,7 @@ transforming...
|
|
|
16
15
|
[33m[plugin vite:resolve] Module "node:path" has been externalized for browser compatibility, imported by "/home/runner/work/ifc-lite/ifc-lite/node_modules/.pnpm/@anthropic-ai+sdk@0.96.0/node_modules/@anthropic-ai/sdk/core/credentials.mjs". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.[39m
|
|
17
16
|
[33m[plugin vite:resolve] Module "node:fs" has been externalized for browser compatibility, imported by "/home/runner/work/ifc-lite/ifc-lite/node_modules/.pnpm/@anthropic-ai+sdk@0.96.0/node_modules/@anthropic-ai/sdk/core/credentials.mjs". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.[39m
|
|
18
17
|
[33m[plugin vite:resolve] Module "node:path" has been externalized for browser compatibility, imported by "/home/runner/work/ifc-lite/ifc-lite/node_modules/.pnpm/@anthropic-ai+sdk@0.96.0/node_modules/@anthropic-ai/sdk/core/credentials.mjs". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.[39m
|
|
18
|
+
[33m[plugin vite:resolve] Module "node:fs" has been externalized for browser compatibility, imported by "/home/runner/work/ifc-lite/ifc-lite/node_modules/.pnpm/@anthropic-ai+sdk@0.96.0/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.[39m
|
|
19
19
|
[33m[plugin vite:resolve] Module "node:fs" has been externalized for browser compatibility, imported by "/home/runner/work/ifc-lite/ifc-lite/node_modules/.pnpm/@anthropic-ai+sdk@0.96.0/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.[39m
|
|
20
20
|
[32m✓[39m 4999 modules transformed.
|
|
21
21
|
rendering chunks...
|
|
@@ -37,7 +37,7 @@ rendering chunks...
|
|
|
37
37
|
computing gzip size...
|
|
38
38
|
[36m[vite-plugin-static-copy][39m [32mCopied 389 items.[39m
|
|
39
39
|
[2mdist/[22m[2massets/[22m[32mlaz-perf-DgUOSLeU.js [39m[1m[2m 0.06 kB[22m[1m[22m
|
|
40
|
-
[2mdist/[22m[2massets/[22m[32mworkerHelpers-
|
|
40
|
+
[2mdist/[22m[2massets/[22m[32mworkerHelpers-Crstj4Oa.js [39m[1m[2m 1.21 kB[22m[1m[22m
|
|
41
41
|
[2mdist/[22m[2massets/[22m[32mlas-source-C_IGrgRq.js [39m[1m[2m 2.40 kB[22m[1m[22m
|
|
42
42
|
[2mdist/[22m[2massets/[22m[32mlas-BW6LIc_j.js [39m[1m[2m 3.08 kB[22m[1m[22m
|
|
43
43
|
[2mdist/[22m[32mindex.html [39m[1m[2m 3.65 kB[22m[1m[22m[2m │ gzip: 1.24 kB[22m
|
|
@@ -47,18 +47,18 @@ computing gzip size...
|
|
|
47
47
|
[2mdist/[22m[2massets/[22m[32mply-source-C8jjyzxE.js [39m[1m[2m 6.77 kB[22m[1m[22m
|
|
48
48
|
[2mdist/[22m[2massets/[22m[32mpcd-source-Ck0UnVDn.js [39m[1m[2m 7.31 kB[22m[1m[22m
|
|
49
49
|
[2mdist/[22m[2massets/[22m[32me57-source-CQHxE8n3.js [39m[1m[2m 13.46 kB[22m[1m[22m
|
|
50
|
-
[2mdist/[22m[2massets/[22m[32mifc-lite-
|
|
51
|
-
[2mdist/[22m[2massets/[22m[32mgeometry.worker-
|
|
50
|
+
[2mdist/[22m[2massets/[22m[32mifc-lite-DxGqDbjO.js [39m[1m[2m 51.83 kB[22m[1m[22m
|
|
51
|
+
[2mdist/[22m[2massets/[22m[32mgeometry.worker-D4c-06r5.js [39m[1m[2m 52.22 kB[22m[1m[22m
|
|
52
52
|
[2mdist/[22m[2massets/[22m[32mindex-DMho-JA0.js [39m[1m[2m 53.15 kB[22m[1m[22m
|
|
53
|
-
[2mdist/[22m[2massets/[22m[32mgeometry-controller.worker-
|
|
53
|
+
[2mdist/[22m[2massets/[22m[32mgeometry-controller.worker-pD49_fH6.js [39m[1m[2m 57.51 kB[22m[1m[22m
|
|
54
54
|
[2mdist/[22m[2massets/[22m[32mlaz-perf-CFJp03W6.wasm [39m[1m[2m 214.35 kB[22m[1m[22m[2m │ gzip: 73.76 kB[22m
|
|
55
55
|
[2mdist/[22m[2massets/[22m[32memscripten-module-uFzwHH0Y.wasm [39m[1m[2m 503.13 kB[22m[1m[22m[2m │ gzip: 234.04 kB[22m
|
|
56
|
-
[2mdist/[22m[2massets/[22m[32mparser.worker-
|
|
56
|
+
[2mdist/[22m[2massets/[22m[32mparser.worker-BZZcO7DB.js [39m[1m[2m 942.89 kB[22m[1m[22m
|
|
57
57
|
[2mdist/[22m[2massets/[22m[32memscripten-module-B1g2L2eS.wasm [39m[1m[2m 1,027.52 kB[22m[1m[22m[2m │ gzip: 364.87 kB[22m
|
|
58
58
|
[2mdist/[22m[2massets/[22m[32memscripten-module-ZrHFMo7O.wasm [39m[1m[2m 1,218.63 kB[22m[1m[22m[2m │ gzip: 456.85 kB[22m
|
|
59
|
-
[2mdist/[22m[2massets/[22m[32mifc-lite_bg-
|
|
60
|
-
[2mdist/[22m[2massets/[22m[32mifc-lite_bg-iH_07wf8.wasm [39m[1m[2m 1,508.69 kB[22m[1m[22m[2m │ gzip: 544.04 kB[22m
|
|
59
|
+
[2mdist/[22m[2massets/[22m[32mifc-lite_bg-DuxUZomW.wasm [39m[1m[2m 1,484.36 kB[22m[1m[22m[2m │ gzip: 534.66 kB[22m
|
|
61
60
|
[2mdist/[22m[2massets/[22m[32memscripten-module-DHbYPfAp.wasm [39m[1m[2m 1,510.75 kB[22m[1m[22m[2m │ gzip: 497.65 kB[22m
|
|
61
|
+
[2mdist/[22m[2massets/[22m[32mifc-lite_bg-BNeu7R_V.wasm [39m[1m[2m 1,546.47 kB[22m[1m[22m[2m │ gzip: 556.24 kB[22m
|
|
62
62
|
[2mdist/[22m[2massets/[22m[32marrow2_bg-4Y7xYo54.wasm [39m[1m[2m 5,000.39 kB[22m[1m[22m[2m │ gzip: 1,544.22 kB[22m
|
|
63
63
|
[2mdist/[22m[2massets/[22m[32mparquet_wasm_bg-DcKVfvto.wasm [39m[1m[2m 6,626.29 kB[22m[1m[22m[2m │ gzip: 1,944.12 kB[22m
|
|
64
64
|
[2mdist/[22m[2massets/[22m[32mesbuild-CzsZLPr0.wasm [39m[1m[2m13,918.74 kB[22m[1m[22m[2m │ gzip: 3,765.48 kB[22m
|
|
@@ -70,39 +70,39 @@ computing gzip size...
|
|
|
70
70
|
[2mdist/[22m[2massets/[22m[36mesbuild-FgU11_Eg.js [39m[1m[2m 0.06 kB[22m[1m[22m[2m │ gzip: 0.08 kB[22m
|
|
71
71
|
[2mdist/[22m[2massets/[22m[36mtauri-core-stub-D8Fa-u43.js [39m[1m[2m 0.11 kB[22m[1m[22m[2m │ gzip: 0.12 kB[22m
|
|
72
72
|
[2mdist/[22m[2massets/[22m[36mtauri-fs-stub-BdeRC7aK.js [39m[1m[2m 0.13 kB[22m[1m[22m[2m │ gzip: 0.13 kB[22m
|
|
73
|
-
[2mdist/[22m[2massets/[22m[36mraw-
|
|
74
|
-
[2mdist/[22m[2massets/[22m[36mdeflate-
|
|
75
|
-
[2mdist/[22m[2massets/[22m[36mpackbits-
|
|
76
|
-
[2mdist/[22m[2massets/[22m[36mwebimage-
|
|
73
|
+
[2mdist/[22m[2massets/[22m[36mraw-DY7Y_acr.js [39m[1m[2m 0.21 kB[22m[1m[22m[2m │ gzip: 0.18 kB[22m
|
|
74
|
+
[2mdist/[22m[2massets/[22m[36mdeflate-BYqYwhkl.js [39m[1m[2m 0.28 kB[22m[1m[22m[2m │ gzip: 0.22 kB[22m
|
|
75
|
+
[2mdist/[22m[2massets/[22m[36mpackbits-DG3zn49C.js [39m[1m[2m 0.45 kB[22m[1m[22m[2m │ gzip: 0.32 kB[22m
|
|
76
|
+
[2mdist/[22m[2massets/[22m[36mwebimage-_-qCDjkn.js [39m[1m[2m 1.06 kB[22m[1m[22m[2m │ gzip: 0.60 kB[22m
|
|
77
77
|
[2mdist/[22m[2massets/[22m[36mevent-B0kAzHa-.js [39m[1m[2m 1.49 kB[22m[1m[22m[2m │ gzip: 0.68 kB[22m
|
|
78
|
-
[2mdist/[22m[2massets/[22m[36mlzw-
|
|
79
|
-
[2mdist/[22m[2massets/[22m[36mwasm-bridge-
|
|
80
|
-
[2mdist/[22m[2massets/[22m[36mbasketViewActivator-
|
|
78
|
+
[2mdist/[22m[2massets/[22m[36mlzw-CtdH775t.js [39m[1m[2m 1.60 kB[22m[1m[22m[2m │ gzip: 0.91 kB[22m
|
|
79
|
+
[2mdist/[22m[2massets/[22m[36mwasm-bridge-DMX8Acuf.js [39m[1m[2m 1.60 kB[22m[1m[22m[2m │ gzip: 0.77 kB[22m
|
|
80
|
+
[2mdist/[22m[2massets/[22m[36mbasketViewActivator-Dkn92C04.js [39m[1m[2m 2.28 kB[22m[1m[22m[2m │ gzip: 0.80 kB[22m
|
|
81
81
|
[2mdist/[22m[2massets/[22m[36mifc-cache-BAN4vcd4.js [39m[1m[2m 2.77 kB[22m[1m[22m[2m │ gzip: 0.94 kB[22m
|
|
82
82
|
[2mdist/[22m[2massets/[22m[36mffi-Boa1QuFa.js [39m[1m[2m 6.32 kB[22m[1m[22m[2m │ gzip: 1.00 kB[22m
|
|
83
83
|
[2mdist/[22m[2massets/[22m[36memscripten-module.browser-BLJD5hhE.js [39m[1m[2m 9.16 kB[22m[1m[22m[2m │ gzip: 4.19 kB[22m
|
|
84
84
|
[2mdist/[22m[2massets/[22m[36mlens-PYsLu_MA.js [39m[1m[2m 9.37 kB[22m[1m[22m[2m │ gzip: 2.91 kB[22m
|
|
85
|
-
[2mdist/[22m[2massets/[22m[36mjpeg-
|
|
86
|
-
[2mdist/[22m[2massets/[22m[36mnative-bridge-
|
|
85
|
+
[2mdist/[22m[2massets/[22m[36mjpeg-B4IBTphL.js [39m[1m[2m 11.28 kB[22m[1m[22m[2m │ gzip: 4.27 kB[22m
|
|
86
|
+
[2mdist/[22m[2massets/[22m[36mnative-bridge-DA8wxaN_.js [39m[1m[2m 18.61 kB[22m[1m[22m[2m │ gzip: 3.76 kB[22m
|
|
87
87
|
[2mdist/[22m[2massets/[22m[36mpako.esm-Cram60i4.js [39m[1m[2m 21.58 kB[22m[1m[22m[2m │ gzip: 7.64 kB[22m
|
|
88
88
|
[2mdist/[22m[2massets/[22m[36mparquet-CEXmQNRO.js [39m[1m[2m 29.67 kB[22m[1m[22m[2m │ gzip: 6.89 kB[22m
|
|
89
|
-
[2mdist/[22m[2massets/[22m[36mserver-client-
|
|
90
|
-
[2mdist/[22m[2massets/[22m[36mbcf-
|
|
89
|
+
[2mdist/[22m[2massets/[22m[36mserver-client-D9xO_8yX.js [39m[1m[2m 31.43 kB[22m[1m[22m[2m │ gzip: 7.06 kB[22m
|
|
90
|
+
[2mdist/[22m[2massets/[22m[36mbcf-DP2AK1-_.js [39m[1m[2m 37.89 kB[22m[1m[22m[2m │ gzip: 11.39 kB[22m
|
|
91
91
|
[2mdist/[22m[2massets/[22m[36mbrowser-DXS29_v9.js [39m[1m[2m 70.26 kB[22m[1m[22m[2m │ gzip: 19.95 kB[22m
|
|
92
92
|
[2mdist/[22m[2massets/[22m[36mdrawing-2d-C71b8Ugx.js [39m[1m[2m 71.89 kB[22m[1m[22m[2m │ gzip: 21.08 kB[22m
|
|
93
|
-
[2mdist/[22m[2massets/[22m[36mzstd-
|
|
93
|
+
[2mdist/[22m[2massets/[22m[36mzstd-DlfgC8gA.js [39m[1m[2m 81.19 kB[22m[1m[22m[2m │ gzip: 32.35 kB[22m
|
|
94
94
|
[2mdist/[22m[2massets/[22m[36mzip-BJqVbRkU.js [39m[1m[2m 96.95 kB[22m[1m[22m[2m │ gzip: 29.94 kB[22m
|
|
95
|
-
[2mdist/[22m[2massets/[22m[36mlerc-
|
|
96
|
-
[2mdist/[22m[2massets/[22m[36mids-
|
|
95
|
+
[2mdist/[22m[2massets/[22m[36mlerc-DQ3jI0Ke.js [39m[1m[2m 97.20 kB[22m[1m[22m[2m │ gzip: 37.62 kB[22m
|
|
96
|
+
[2mdist/[22m[2massets/[22m[36mids-DDkkb4mo.js [39m[1m[2m 164.18 kB[22m[1m[22m[2m │ gzip: 29.22 kB[22m
|
|
97
97
|
[2mdist/[22m[2massets/[22m[36marrow-CXWhTnNT.js [39m[1m[2m 208.86 kB[22m[1m[22m[2m │ gzip: 50.09 kB[22m
|
|
98
|
-
[2mdist/[22m[2massets/[22m[36mexporters-
|
|
99
|
-
[2mdist/[22m[2massets/[22m[36mgeotiff-
|
|
98
|
+
[2mdist/[22m[2massets/[22m[36mexporters-CZe0D8N-.js [39m[1m[2m 241.36 kB[22m[1m[22m[2m │ gzip: 41.61 kB[22m
|
|
99
|
+
[2mdist/[22m[2massets/[22m[36mgeotiff-By06vdeL.js [39m[1m[2m 366.67 kB[22m[1m[22m[2m │ gzip: 118.40 kB[22m
|
|
100
100
|
[2mdist/[22m[2massets/[22m[36mthree-CQBzFWY2.js [39m[1m[2m 534.00 kB[22m[1m[22m[2m │ gzip: 133.77 kB[22m
|
|
101
101
|
[2mdist/[22m[2massets/[22m[36mmaplibre-gl-Do6O5tDc.js [39m[1m[2m 1,053.34 kB[22m[1m[22m[2m │ gzip: 284.74 kB[22m
|
|
102
102
|
[2mdist/[22m[2massets/[22m[36mepsg-index.generated-BjJrt_0S.js [39m[1m[2m 4,295.95 kB[22m[1m[22m[2m │ gzip: 440.44 kB[22m
|
|
103
103
|
[2mdist/[22m[2massets/[22m[36mcesium-BoVuJvTC.js [39m[1m[2m 4,778.78 kB[22m[1m[22m[2m │ gzip: 1,320.18 kB[22m
|
|
104
|
-
[2mdist/[22m[2massets/[22m[36mindex-
|
|
105
|
-
[2mdist/[22m[2massets/[22m[36msandbox-
|
|
104
|
+
[2mdist/[22m[2massets/[22m[36mindex-CqBdDOAZ.js [39m[1m[33m 7,503.91 kB[39m[22m[2m │ gzip: 1,361.97 kB[22m
|
|
105
|
+
[2mdist/[22m[2massets/[22m[36msandbox-D1pQT-5R.js [39m[1m[33m 8,486.06 kB[39m[22m[2m │ gzip: 512.61 kB[22m
|
|
106
106
|
[33m
|
|
107
107
|
(!) Some chunks are larger than 6000 kB after minification. Consider:
|
|
108
108
|
- Using dynamic import() to code-split the application
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @ifc-lite/viewer
|
|
2
2
|
|
|
3
|
+
## 1.25.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#839](https://github.com/LTplus-AG/ifc-lite/pull/839) [`8c1632c`](https://github.com/LTplus-AG/ifc-lite/commit/8c1632ceb63ff4cfdbac4f2936d54d2d3a7e2f1b) Thanks [@louistrue](https://github.com/louistrue)! - Improve IFC annotation legibility in 3D (issue [#812](https://github.com/LTplus-AG/ifc-lite/issues/812) follow-up):
|
|
8
|
+
|
|
9
|
+
- **All annotation text now billboards to the camera.** Previously only
|
|
10
|
+
IfcGridAxis tags rebuilt in the screen-aligned basis; IfcAnnotation
|
|
11
|
+
text (dimensions, leader labels, room tags) kept its authored
|
|
12
|
+
in-plane orientation. In oblique views that text collapsed to a
|
|
13
|
+
smeared sliver of pixels — the "distorted dimension labels in
|
|
14
|
+
FZK-Haus" symptom from the issue. The shader path was already
|
|
15
|
+
per-instance billboard-aware, so the change is just a flag flip at
|
|
16
|
+
upload time; anchor and alignment are unchanged.
|
|
17
|
+
|
|
18
|
+
- **Grid bubbles no longer paint a white disc behind the tag.** The
|
|
19
|
+
bubble interior is now transparent, so geometry behind a grid line
|
|
20
|
+
reads through the bubble in 3D. The black outline ring (◯) and tag
|
|
21
|
+
glyph are unchanged — the white ● fill instance has been removed
|
|
22
|
+
from `emit_bubble`, which also drops one text instance per bubble.
|
|
23
|
+
|
|
24
|
+
- **Annotation text no longer z-fights coplanar surfaces.** Now that
|
|
25
|
+
every glyph billboards, the quad faces the camera with zero depth
|
|
26
|
+
slope across its screen extent — which means the text pipeline's
|
|
27
|
+
`depthBiasSlopeScale: -0.5` contributes ~0 and only the small `-4`
|
|
28
|
+
constant survives, not enough to beat MSAA jitter on a label drawn
|
|
29
|
+
exactly on a wall/floor face (visible as dimension digits strobing
|
|
30
|
+
against terrain in 3D). The symbolic-overlay text shader now applies
|
|
31
|
+
the same `clip.z + 5e-5 * clip.w` reverse-Z nudge the section-2D
|
|
32
|
+
line pipeline already uses — depth-format-independent, slope-
|
|
33
|
+
independent, and large enough to clear coplanar jitter without
|
|
34
|
+
pulling the label visibly off the surface.
|
|
35
|
+
|
|
36
|
+
- Updated dependencies [[`8c1632c`](https://github.com/LTplus-AG/ifc-lite/commit/8c1632ceb63ff4cfdbac4f2936d54d2d3a7e2f1b), [`231e494`](https://github.com/LTplus-AG/ifc-lite/commit/231e494e7ee920c5219d7fa5c5c6dde4c2bced2a), [`279d897`](https://github.com/LTplus-AG/ifc-lite/commit/279d897dd6e28214930a6b0fffe01dd813141ee0), [`d83fc42`](https://github.com/LTplus-AG/ifc-lite/commit/d83fc424a6b9d2a786e2dfaabe1dc2fb8746d07c)]:
|
|
37
|
+
- @ifc-lite/renderer@1.22.2
|
|
38
|
+
- @ifc-lite/wasm@1.19.2
|
|
39
|
+
|
|
3
40
|
## 1.25.0
|
|
4
41
|
|
|
5
42
|
### Minor Changes
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { u as o, __tla as __tla_0 } from "./index-
|
|
1
|
+
import { u as o, __tla as __tla_0 } from "./index-CqBdDOAZ.js";
|
|
2
2
|
import "./zip-BJqVbRkU.js";
|
|
3
3
|
import "./arrow-CXWhTnNT.js";
|
|
4
|
-
import { __tla as __tla_1 } from "./sandbox-
|
|
4
|
+
import { __tla as __tla_1 } from "./sandbox-D1pQT-5R.js";
|
|
5
5
|
import "./lens-PYsLu_MA.js";
|
|
6
|
-
import { __tla as __tla_2 } from "./exporters-
|
|
6
|
+
import { __tla as __tla_2 } from "./exporters-CZe0D8N-.js";
|
|
7
7
|
import "./drawing-2d-C71b8Ugx.js";
|
|
8
|
-
import "./bcf-
|
|
9
|
-
import { __tla as __tla_3 } from "./server-client-
|
|
10
|
-
import { __tla as __tla_4 } from "./ids-
|
|
8
|
+
import "./bcf-DP2AK1-_.js";
|
|
9
|
+
import { __tla as __tla_3 } from "./server-client-D9xO_8yX.js";
|
|
10
|
+
import { __tla as __tla_4 } from "./ids-DDkkb4mo.js";
|
|
11
11
|
import "./three-CQBzFWY2.js";
|
|
12
12
|
let v;
|
|
13
13
|
let __tla = Promise.all([
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as X}from"./zip-BJqVbRkU.js";import{af as C}from"./sandbox-
|
|
1
|
+
import{J as X}from"./zip-BJqVbRkU.js";import{af as C}from"./sandbox-D1pQT-5R.js";async function te(t){const e=await X.loadAsync(t),i=await Q(e),{projectId:o,name:n,extensions:s}=await tt(e),a=await et(e);return{version:i.versionId,projectId:o,name:n,topics:a,extensions:s}}async function Q(t){const e=t.file("bcf.version");if(!e)throw new Error("Invalid BCF file: missing bcf.version");const o=(await e.async("string")).match(/VersionId="([^"]+)"/);if(!o)throw new Error("Invalid BCF version file: could not parse VersionId");const n=o[1];return n!=="2.1"&&n!=="3.0"&&console.warn(`Unsupported BCF version: ${n}, treating as 2.1`),{versionId:n==="3.0"?"3.0":"2.1",detailedVersion:o[1]}}async function tt(t){const e=t.file("project.bcfp");if(!e)return{};const i=await e.async("string"),o=i.match(/ProjectId="([^"]+)"/),n=i.match(/<Name>([^<]+)<\/Name>/);return{projectId:o?.[1],name:n?.[1]}}async function et(t){const e=new Map,i=new Set;t.forEach(o=>{const n=o.match(/^([^/]+)\/markup\.bcf$/i);n&&i.add(n[1])});for(const o of i)try{const n=await it(t,o);n&&e.set(n.guid,n)}catch(n){console.warn(`Failed to parse topic ${o}:`,n)}return e}async function it(t,e){const i=t.file(`${e}/markup.bcf`);if(!i)return null;const o=await i.async("string"),n=o.match(/<Topic\s+Guid="([^"]+)"[^>]*>([\s\S]*?)<\/Topic>/);if(!n)return console.warn(`Invalid markup.bcf in ${e}: missing Topic element`),null;const s=n[1],a=n[2],r=o.match(/<Topic[^>]*TopicType="([^"]+)"/),c=o.match(/<Topic[^>]*TopicStatus="([^"]+)"/),l=h(a,"Title")||"Untitled",p=h(a,"Description"),f=h(a,"Priority"),m=h(a,"Index"),u=h(a,"CreationDate")||new Date().toISOString(),g=h(a,"CreationAuthor")||"Unknown",d=h(a,"ModifiedDate"),x=h(a,"ModifiedAuthor"),w=h(a,"DueDate"),b=h(a,"AssignedTo"),v=h(a,"Stage"),T=[],q=a.matchAll(/<Labels>([^<]+)<\/Labels>/g);for(const A of q)T.push(A[1]);const H=ot(a),O=nt(a),I=[],W=a.matchAll(/<RelatedTopic\s+Guid="([^"]+)"/g);for(const A of W)I.push(A[1]);const J=st(o),K=await at(t,e,o);return{guid:s,title:l,description:p,topicType:r?.[1],topicStatus:c?.[1],priority:f,index:m?parseInt(m,10):void 0,creationDate:u,creationAuthor:g,modifiedDate:d,modifiedAuthor:x,dueDate:w,assignedTo:b,stage:v,labels:T.length>0?T:void 0,bimSnippet:H,documentReferences:O.length>0?O:void 0,relatedTopics:I.length>0?I:void 0,comments:J,viewpoints:K}}function h(t,e){return t.match(new RegExp(`<${e}>([^<]*)<\\/${e}>`))?.[1]}function ot(t){const e=t.match(/<BimSnippet\s+SnippetType="([^"]+)"[^>]*>([\s\S]*?)<\/BimSnippet>/);if(!e)return;const i=e[0].match(/isExternal="([^"]+)"/),o=h(e[2],"Reference"),n=h(e[2],"ReferenceSchema");return{snippetType:e[1],isExternal:i?.[1]==="true",reference:o||"",referenceSchema:n}}function nt(t){const e=[],i=t.matchAll(/<DocumentReference[^>]*>([\s\S]*?)<\/DocumentReference>/g);for(const o of i){const n=o[0].match(/Guid="([^"]+)"/),s=o[0].match(/isExternal="([^"]+)"/),a=h(o[1],"ReferencedDocument"),r=h(o[1],"Description");a&&e.push({guid:n?.[1],isExternal:s?.[1]==="true",referencedDocument:a,description:r})}return e}function st(t){const e=[],i=t.matchAll(/<Comment\s+Guid="([^"]+)"[^>]*>([\s\S]*?)<\/Comment>/g);for(const o of i){const n=o[1],s=o[2],a=h(s,"Date")||new Date().toISOString(),r=h(s,"Author")||"Unknown",c=h(s,"Comment")||"",l=h(s,"ModifiedDate"),p=h(s,"ModifiedAuthor"),f=s.match(/<Viewpoint\s+Guid="([^"]+)"/);e.push({guid:n,date:a,author:r,comment:c,viewpointGuid:f?.[1],modifiedDate:l,modifiedAuthor:p})}return e}async function at(t,e,i){const o=[],n=new Map,s=/<Viewpoint\s+Guid="([^"]+)"[^>]*>([\s\S]*?)<\/Viewpoint>/g;for(const c of i.matchAll(s)){const l=c[1],p=c[2],f=p.match(/<Viewpoint>([^<]+)<\/Viewpoint>/),m=p.match(/<Snapshot>([^<]+)<\/Snapshot>/);n.set(l,{viewpointFile:f?.[1],snapshotFile:m?.[1]})}const a=i.matchAll(/<Viewpoint\s+Guid="([^"]+)"[^>]*\/>/g);for(const c of a)n.has(c[1])||n.set(c[1],{});const r=[];t.forEach(c=>{c.startsWith(`${e}/`)&&c.endsWith(".bcfv")&&r.push(c)});for(const c of r)try{const l=t.file(c);if(!l)continue;const p=await l.async("string"),f=ct(p);if(f){const m=n.get(f.guid);let u=null,g="png";if(m?.snapshotFile){const d=`${e}/${m.snapshotFile}`;u=t.file(d),(m.snapshotFile.toLowerCase().endsWith(".jpg")||m.snapshotFile.toLowerCase().endsWith(".jpeg"))&&(g="jpeg")}if(!u){const d=c.replace(".bcfv",""),x=d.replace(/Viewpoint_/i,"Snapshot_"),w=d.replace(/_viewpoint$/i,"_snapshot"),b=[`${x}.png`,`${w}.png`,`${d}.png`,`${e}/snapshot.png`,`${x}.jpg`,`${w}.jpg`,`${d}.jpg`,`${e}/snapshot.jpg`];for(const v of b)if(u=t.file(v),u){(v.toLowerCase().endsWith(".jpg")||v.toLowerCase().endsWith(".jpeg"))&&(g="jpeg");break}}if(u){const d=await u.async("uint8array");f.snapshotData=d,f.snapshot=`data:image/${g};base64,${U(d)}`}o.push(f)}}catch(l){console.warn(`Failed to parse viewpoint ${c}:`,l)}if(o.length===0){const c=t.file(`${e}/snapshot.png`)||t.file(`${e}/snapshot.jpg`);if(c){const l=c.name.toLowerCase().endsWith(".jpg"),p=await c.async("uint8array");o.push({guid:e,snapshot:`data:image/${l?"jpeg":"png"};base64,${U(p)}`,snapshotData:p})}}return o}function ct(t){const i=t.match(/<VisualizationInfo[^>]+Guid="([^"]+)"/)?.[1]||crypto.randomUUID?.()||`vp-${Date.now()}`,o=rt(t),n=lt(t),s=pt(t),a=mt(t),r=dt(t),c=ht(t);return{guid:i,perspectiveCamera:o,orthogonalCamera:n,components:s,lines:a.length>0?a:void 0,clippingPlanes:r.length>0?r:void 0,bitmaps:c.length>0?c:void 0}}function rt(t){const e=t.match(/<PerspectiveCamera>([\s\S]*?)<\/PerspectiveCamera>/);if(!e)return;const i=e[1],o=V(i,"CameraViewPoint"),n=M(i,"CameraDirection"),s=M(i,"CameraUpVector"),a=h(i,"FieldOfView");if(!(!o||!n||!s||!a))return{cameraViewPoint:o,cameraDirection:n,cameraUpVector:s,fieldOfView:parseFloat(a)}}function lt(t){const e=t.match(/<OrthogonalCamera>([\s\S]*?)<\/OrthogonalCamera>/);if(!e)return;const i=e[1],o=V(i,"CameraViewPoint"),n=M(i,"CameraDirection"),s=M(i,"CameraUpVector"),a=h(i,"ViewToWorldScale");if(!(!o||!n||!s||!a))return{cameraViewPoint:o,cameraDirection:n,cameraUpVector:s,viewToWorldScale:parseFloat(a)}}function V(t,e){const i=t.match(new RegExp(`<${e}>([\\s\\S]*?)<\\/${e}>`));if(!i)return;const o=h(i[1],"X"),n=h(i[1],"Y"),s=h(i[1],"Z");if(!(o===void 0||n===void 0||s===void 0))return{x:parseFloat(o),y:parseFloat(n),z:parseFloat(s)}}function M(t,e){return V(t,e)}function pt(t){const e=t.match(/<Components>([\s\S]*?)<\/Components>/);if(!e)return;const i=e[1],o=B(i,"Selection"),n=ft(i),s=ut(i);if(!(!o&&!n&&!s))return{selection:o?.length?o:void 0,visibility:n,coloring:s?.length?s:void 0}}function B(t,e){const i=t.match(new RegExp(`<${e}>([\\s\\S]*?)<\\/${e}>`));if(!i)return;const o=[],n=i[1].matchAll(/<Component[^>]*(?:\/>|>[\s\S]*?<\/Component>)/g);for(const s of n){const a=_(s[0]);a&&o.push(a)}return o.length>0?o:void 0}function _(t){const e=t.match(/IfcGuid="([^"]+)"/),i=t.match(/AuthoringToolId="([^"]+)"/),o=t.match(/OriginatingSystem="([^"]+)"/);if(!(!e&&!i))return{ifcGuid:e?.[1],authoringToolId:i?.[1],originatingSystem:o?.[1]}}function ft(t){const e=t.match(/<Visibility[^>]*>([\s\S]*?)<\/Visibility>/);if(!e)return;const o=t.match(/DefaultVisibility="([^"]+)"/)?.[1]!=="false",n=B(e[1],"Exceptions");return{defaultVisibility:o,exceptions:n}}function ut(t){const e=t.match(/<Coloring>([\s\S]*?)<\/Coloring>/);if(!e)return;const i=[],o=e[1].matchAll(/<Color\s+Color="([^"]+)"[^>]*>([\s\S]*?)<\/Color>/g);for(const n of o){const s=n[1],a=[],r=n[2].matchAll(/<Component[^>]*(?:\/>|>[\s\S]*?<\/Component>)/g);for(const c of r){const l=_(c[0]);l&&a.push(l)}a.length>0&&i.push({color:s,components:a})}return i.length>0?i:void 0}function mt(t){const e=[],i=t.match(/<Lines>([\s\S]*?)<\/Lines>/);if(!i)return e;const o=i[1].matchAll(/<Line>([\s\S]*?)<\/Line>/g);for(const n of o){const s=V(n[1],"StartPoint"),a=V(n[1],"EndPoint");s&&a&&e.push({startPoint:s,endPoint:a})}return e}function dt(t){const e=[],i=t.match(/<ClippingPlanes>([\s\S]*?)<\/ClippingPlanes>/);if(!i)return e;const o=i[1].matchAll(/<ClippingPlane>([\s\S]*?)<\/ClippingPlane>/g);for(const n of o){const s=V(n[1],"Location"),a=M(n[1],"Direction");s&&a&&e.push({location:s,direction:a})}return e}function ht(t){const e=[],i=t.match(/<Bitmaps>([\s\S]*?)<\/Bitmaps>/);if(!i)return e;const o=i[1].matchAll(/<Bitmap>([\s\S]*?)<\/Bitmap>/g);for(const n of o){const s=h(n[1],"Format")||h(n[1],"Bitmap"),a=h(n[1],"Reference"),r=V(n[1],"Location"),c=M(n[1],"Normal"),l=M(n[1],"Up"),p=h(n[1],"Height");s&&a&&r&&c&&l&&p&&e.push({format:s.toUpperCase()==="JPG"?"JPG":"PNG",reference:a,location:r,normal:c,up:l,height:parseFloat(p)})}return e}function U(t){let e="";for(let i=0;i<t.length;i++)e+=String.fromCharCode(t[i]);return btoa(e)}async function ee(t){const e=new X;gt(e,t.version),(t.projectId||t.name)&&yt(e,t);for(const[i,o]of t.topics)await xt(e,o);return e.generateAsync({type:"blob",compression:"DEFLATE",compressionOptions:{level:6}})}function gt(t,e){const i=`<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<Version xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" VersionId="${e}">
|
|
3
3
|
<DetailedVersion>${e}</DetailedVersion>
|
|
4
4
|
</Version>`;t.file("bcf.version",i)}function yt(t,e){const i=e.projectId||C(),o=e.name?`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as r}from"./pako.esm-Cram60i4.js";import{B as o}from"./geotiff-
|
|
1
|
+
import{i as r}from"./pako.esm-Cram60i4.js";import{B as o}from"./geotiff-By06vdeL.js";import"./sandbox-D1pQT-5R.js";import"./lens-PYsLu_MA.js";import"./__vite-browser-external-B1O5LaIO.js";class d extends o{decodeBlock(e){return r(new Uint8Array(e)).buffer}}export{d as default};
|