@file-viewer/renderer-3d 3.3.4 → 3.3.6
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/IFC.md +1 -1
- package/bin/copy-geo3d-assets.mjs +2 -2
- package/bin/copy-ifc-assets.mjs +5 -5
- package/dist/geo3d-workers/las-worker.js +265 -265
- package/dist/geo3d-workers/manifest.json +16 -8
- package/dist/geo3dPointFactories.js +287 -287
- package/package.json +7 -7
package/IFC.md
CHANGED
|
@@ -15,7 +15,7 @@ metadata describes the base package, not an SDK-free version of the IFC API.
|
|
|
15
15
|
## Install and self-host
|
|
16
16
|
|
|
17
17
|
```sh
|
|
18
|
-
npm install @file-viewer/renderer-3d @thatopen/components@3.6.0 @thatopen/fragments@3.6.
|
|
18
|
+
npm install @file-viewer/renderer-3d @thatopen/components@3.6.0 @thatopen/fragments@3.6.1 web-ifc@0.0.79
|
|
19
19
|
npm install -D esbuild@0.28.2
|
|
20
20
|
npx file-viewer-ifc-assets public/file-viewer/vendor/ifc
|
|
21
21
|
```
|
|
@@ -9,7 +9,7 @@ import { fileURLToPath } from 'node:url'
|
|
|
9
9
|
const require = createRequire(import.meta.url)
|
|
10
10
|
|
|
11
11
|
async function packageDir(name, resolver = require) {
|
|
12
|
-
// Giro3D 2.0.
|
|
12
|
+
// Giro3D 2.0.7 exposes subpath modules but has no index.js at its bare
|
|
13
13
|
// package entry. Resolve metadata first; packages with restrictive exports
|
|
14
14
|
// (such as Three.js) can still be located by walking from their real entry.
|
|
15
15
|
let entry
|
|
@@ -74,7 +74,7 @@ async function collectFiles(root, prefix = '') {
|
|
|
74
74
|
}
|
|
75
75
|
export async function copyGeo3dAssets(destination) {
|
|
76
76
|
const giro = await packageDir('@giro3d/giro3d')
|
|
77
|
-
if (giro.metadata.version !== '2.0.
|
|
77
|
+
if (giro.metadata.version !== '2.0.7') throw new Error(`Geo3D assets require tested @giro3d/giro3d@2.0.7, found ${giro.metadata.version}`)
|
|
78
78
|
const giroRequire = createRequire(join(giro.path, 'package.json'))
|
|
79
79
|
const [lazPerf, three, epsg] = await Promise.all([
|
|
80
80
|
packageDir('laz-perf', giroRequire),
|
package/bin/copy-ifc-assets.mjs
CHANGED
|
@@ -69,14 +69,14 @@ export async function copyIfcAssets(destination) {
|
|
|
69
69
|
)),
|
|
70
70
|
];
|
|
71
71
|
if (
|
|
72
|
-
webIfc.metadata.version !== "0.0.
|
|
73
|
-
fragments.metadata.version !== "3.6.
|
|
72
|
+
webIfc.metadata.version !== "0.0.79" ||
|
|
73
|
+
fragments.metadata.version !== "3.6.1" ||
|
|
74
74
|
components.metadata.version !== "3.6.0" ||
|
|
75
75
|
realpathSync(importerWebIfc.path) !== realpathSync(webIfc.path) ||
|
|
76
76
|
realpathSync(componentFragments.path) !== realpathSync(fragments.path)
|
|
77
77
|
)
|
|
78
78
|
throw new Error(
|
|
79
|
-
"IFC assets and importer must share the tested web-ifc@0.0.
|
|
79
|
+
"IFC assets and importer must share the tested web-ifc@0.0.79, @thatopen/fragments@3.6.1 and @thatopen/components@3.6.0 engines",
|
|
80
80
|
);
|
|
81
81
|
const { build } = await import("esbuild");
|
|
82
82
|
destination = resolve(destination);
|
|
@@ -132,8 +132,8 @@ export async function copyIfcAssets(destination) {
|
|
|
132
132
|
"Optional IFC runtime assets for File Viewer.",
|
|
133
133
|
"These assets are not loaded by the ordinary model/Office entry.",
|
|
134
134
|
"web-ifc is MPL-2.0. Its WASM and bundled import code are unmodified upstream implementations.",
|
|
135
|
-
"Corresponding source and build instructions: https://github.com/ThatOpen/engine_web-ifc/tree/
|
|
136
|
-
"Fragments is MIT: https://
|
|
135
|
+
"Corresponding source and build instructions: https://github.com/ThatOpen/engine_web-ifc/tree/8e9bfebfbc6505960f01376c24f5a8e76ded6042 (release 0.0.79).",
|
|
136
|
+
"Fragments is MIT. Exact upstream package: https://registry.npmjs.org/@thatopen/fragments/-/fragments-3.6.1.tgz (version 3.6.1); repository: https://github.com/ThatOpen/engine_fragment. No source commit was supplied with this npm version.",
|
|
137
137
|
"Components is MIT: https://github.com/ThatOpen/engine_components/tree/bd53d29cf22bf89526b74bf05fdfe919d1189dfa (release 3.6.0).",
|
|
138
138
|
"Preserve licenses/, the linked worker legal notices and this notice when redistributing.",
|
|
139
139
|
...packages.map(
|