iflow-engine-base 4.0.15 → 4.0.16
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/dist/bim-engine-sdk.es.js +44 -13
- package/dist/bim-engine-sdk.umd.js +3892 -1785
- package/dist/chunks/EngineKernel-BLJsCrxR.js +20499 -0
- package/dist/chunks/engine-2d-DneQvSOi.js +6119 -0
- package/dist/chunks/{engine-3d-DAEOqkkS.js → engine-3d-B0D38zLu.js} +18680 -18610
- package/dist/chunks/engine-720-OdgX2p-d.js +1565 -0
- package/dist/chunks/engine-gaussian-CQdrGBYh.js +8127 -0
- package/dist/chunks/gis-tiles-vendor-Dr7piDQM.js +11386 -0
- package/dist/chunks/index-Ct7RfnLw.js +474 -0
- package/dist/chunks/index-Cyv0HpPm.js +438 -0
- package/dist/chunks/index-DZmXdy4v.js +717 -0
- package/dist/chunks/index-DjNAYhvI.js +5252 -0
- package/dist/chunks/{sdk-assets-Eo-SBV02.js → sdk-assets-Dh7PGW73.js} +10 -10
- package/dist/chunks/sdk-runtime-KslKRuwI.js +1365 -0
- package/dist/chunks/sdk-vendor-CVc1LiJj.js +31826 -0
- package/dist/chunks/three-vendor-Ds9cgGKb.js +81880 -0
- package/dist/gis-fixtures/tilesets/xiamen-local/scene.gltf +31 -0
- package/dist/gis-fixtures/tilesets/xiamen-local/tileset.json +12 -0
- package/dist/iflow-engine-base.css +1 -1
- package/dist/index.d.ts +14699 -68
- package/package.json +5 -2
- package/dist/chunks/sdk-runtime-CB2jwkGL.js +0 -1177
- package/dist/chunks/sdk-vendor-DtYOqJWo.js +0 -23208
- package/dist/chunks/three-vendor-rBTtPKhu.js +0 -44788
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const S = "__BIM_ENGINE_SDK_ASSET_BASE__", g = "__BIM_ENGINE_SDK_ASSET_FILE_MAP__", b = "__BIM_ENGINE_SDK_ASSET_FILE_URLS__", A = "__BIM_ENGINE_SDK_ASSET_FILE_SESSION__", j = "https://unpkg.com/iflow-engine-base-3d@3.12.21/dist/", L = "https://__bim_engine_sdk_asset__/",
|
|
1
|
+
import { D as w } from "./three-vendor-Ds9cgGKb.js";
|
|
2
|
+
const S = "__BIM_ENGINE_SDK_ASSET_BASE__", g = "__BIM_ENGINE_SDK_ASSET_FILE_MAP__", b = "__BIM_ENGINE_SDK_ASSET_FILE_URLS__", A = "__BIM_ENGINE_SDK_ASSET_FILE_SESSION__", j = "https://unpkg.com/iflow-engine-base-3d@3.12.21/dist/", L = "https://__bim_engine_sdk_asset__/", M = ["assets/", "fonts/", "draco/", "basis/", "texture/", "prompt/"];
|
|
3
3
|
let _ = null;
|
|
4
|
-
async function
|
|
5
|
-
return _ || (_ = import("./sdk-vendor-
|
|
4
|
+
async function R() {
|
|
5
|
+
return _ || (_ = import("./sdk-vendor-CVc1LiJj.js").then((t) => t.j).then((t) => t.default ?? t)), _;
|
|
6
6
|
}
|
|
7
7
|
function a() {
|
|
8
8
|
return typeof globalThis < "u" ? globalThis : null;
|
|
@@ -46,15 +46,15 @@ function U() {
|
|
|
46
46
|
const e = a()?.[g];
|
|
47
47
|
return e instanceof Map ? e : null;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function D() {
|
|
50
50
|
const e = a()?.[b];
|
|
51
51
|
return Array.isArray(e) ? e : [];
|
|
52
52
|
}
|
|
53
53
|
function O() {
|
|
54
54
|
const t = a();
|
|
55
|
-
t && (
|
|
55
|
+
t && (D().forEach((e) => URL.revokeObjectURL(e)), delete t[g], delete t[b], delete t[A]);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function K(t, e) {
|
|
58
58
|
const n = a();
|
|
59
59
|
n && (O(), n[g] = t, n[b] = e, n[A] = T());
|
|
60
60
|
}
|
|
@@ -63,7 +63,7 @@ function N(t, e, n) {
|
|
|
63
63
|
o >= 0 && r.add(s.slice(o + 5));
|
|
64
64
|
const c = s.indexOf("public/");
|
|
65
65
|
c >= 0 && r.add(s.slice(c + 7));
|
|
66
|
-
for (const i of
|
|
66
|
+
for (const i of M) {
|
|
67
67
|
const E = s.indexOf(i);
|
|
68
68
|
E >= 0 && r.add(s.slice(E));
|
|
69
69
|
}
|
|
@@ -103,7 +103,7 @@ async function P(t) {
|
|
|
103
103
|
for (const n of t) {
|
|
104
104
|
const s = l(n.webkitRelativePath || n.name);
|
|
105
105
|
if (F(n)) {
|
|
106
|
-
const o = await (await
|
|
106
|
+
const o = await (await R()).loadAsync(n), c = Object.values(o.files);
|
|
107
107
|
for (const i of c)
|
|
108
108
|
i.dir || e.push({
|
|
109
109
|
path: l(i.name),
|
|
@@ -171,7 +171,7 @@ async function $(t) {
|
|
|
171
171
|
n.forEach((o) => {
|
|
172
172
|
const c = URL.createObjectURL(o.blob);
|
|
173
173
|
r.push(c), N(s, o.path, c);
|
|
174
|
-
}),
|
|
174
|
+
}), K(s, r);
|
|
175
175
|
}
|
|
176
176
|
async function V(t) {
|
|
177
177
|
await $(t ? [t] : null);
|