iflow-engine-base 3.10.9 → 3.11.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/dist/bim-engine-sdk.es.js +7 -7
- package/dist/bim-engine-sdk.umd.js +554 -554
- package/dist/chunks/engine-2d-olNpwT1j.js +6097 -0
- package/dist/chunks/{engine-3d-LN_LUozy.js → engine-3d-BzQ_DvYN.js} +13391 -22064
- package/dist/chunks/{engine-720-CxFTL7AO.js → engine-720-B2c8mBQe.js} +6 -7
- package/dist/chunks/{engine-gaussian-BTf-NLZ0.js → engine-gaussian-BAKXl2qt.js} +5 -6
- package/dist/chunks/{engine-gis-BpK8Yk97.js → engine-gis-BXi9CNer.js} +44998 -50150
- package/dist/chunks/{sdk-assets-RCyRdW2b.js → sdk-assets-y5vuEihm.js} +88 -85
- package/dist/chunks/sdk-runtime-CjCXLGbs.js +1408 -0
- package/dist/chunks/sdk-vendor-VNZqYnFS.js +36171 -0
- package/dist/index.d.ts +6 -0
- package/dist2d/dwg-preview.es.js +1 -1
- package/dist2d/dwg-preview.umd.js +1 -1
- package/distGaussian/gaussian.es.js +1 -1
- package/distGaussian/gaussian.umd.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/engine-2d-DVhZzZy6.js +0 -8488
- package/dist/chunks/sdk-runtime-CUsuUcES.js +0 -21269
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import { J as I } from "./engine-2d-DVhZzZy6.js";
|
|
2
1
|
import { b8 as w } from "./three-vendor-fDCVai2b.js";
|
|
3
|
-
const
|
|
4
|
-
|
|
2
|
+
const S = "__BIM_ENGINE_SDK_ASSET_BASE__", b = "__BIM_ENGINE_SDK_ASSET_FILE_MAP__", g = "__BIM_ENGINE_SDK_ASSET_FILE_URLS__", A = "__BIM_ENGINE_SDK_ASSET_FILE_SESSION__", j = "https://unpkg.com/iflow-engine-base@3.9.20/dist/", L = "https://__bim_engine_sdk_asset__/", M = ["assets/", "fonts/", "draco/", "basis/", "texture/", "prompt/"];
|
|
3
|
+
let _ = null;
|
|
4
|
+
async function R() {
|
|
5
|
+
return _ || (_ = import("./sdk-vendor-VNZqYnFS.js").then((t) => t.j).then((t) => t.default ?? t)), _;
|
|
6
|
+
}
|
|
7
|
+
function a() {
|
|
5
8
|
return typeof globalThis < "u" ? globalThis : null;
|
|
6
9
|
}
|
|
7
10
|
function u(t) {
|
|
8
11
|
return t.endsWith("/") ? t : `${t}/`;
|
|
9
12
|
}
|
|
10
|
-
function
|
|
13
|
+
function l(t) {
|
|
11
14
|
return String(t).replace(/\\/g, "/").replace(/^\/+/, "").replace(/\/+/g, "/");
|
|
12
15
|
}
|
|
13
|
-
function
|
|
16
|
+
function m(t) {
|
|
14
17
|
return /^(?:[a-z][a-z\d+\-.]*:)?\/\//i.test(t) || /^(?:data|blob):/i.test(t);
|
|
15
18
|
}
|
|
16
|
-
function
|
|
19
|
+
function y(t) {
|
|
17
20
|
return t.startsWith("./") || t.startsWith("../");
|
|
18
21
|
}
|
|
19
22
|
function f(t, e) {
|
|
@@ -23,87 +26,87 @@ function f(t, e) {
|
|
|
23
26
|
return null;
|
|
24
27
|
}
|
|
25
28
|
}
|
|
26
|
-
function
|
|
29
|
+
function F(t) {
|
|
27
30
|
return /\.zip$/i.test(t.name);
|
|
28
31
|
}
|
|
29
|
-
function
|
|
32
|
+
function T() {
|
|
30
33
|
return `${Date.now()}_${Math.random().toString(36).slice(2, 8)}`;
|
|
31
34
|
}
|
|
32
|
-
function
|
|
33
|
-
return t.startsWith(
|
|
35
|
+
function v(t) {
|
|
36
|
+
return t.startsWith(L);
|
|
34
37
|
}
|
|
35
|
-
function
|
|
36
|
-
const e =
|
|
37
|
-
return typeof e == "string" && e ? `${
|
|
38
|
+
function p() {
|
|
39
|
+
const e = a()?.[A];
|
|
40
|
+
return typeof e == "string" && e ? `${L}${e}/` : null;
|
|
38
41
|
}
|
|
39
|
-
function
|
|
40
|
-
return `${
|
|
42
|
+
function z(t) {
|
|
43
|
+
return `${p() ?? L}${l(t)}`;
|
|
41
44
|
}
|
|
42
|
-
function
|
|
43
|
-
const e =
|
|
45
|
+
function U() {
|
|
46
|
+
const e = a()?.[b];
|
|
44
47
|
return e instanceof Map ? e : null;
|
|
45
48
|
}
|
|
46
|
-
function
|
|
47
|
-
const e =
|
|
49
|
+
function K() {
|
|
50
|
+
const e = a()?.[g];
|
|
48
51
|
return Array.isArray(e) ? e : [];
|
|
49
52
|
}
|
|
50
|
-
function
|
|
51
|
-
const t =
|
|
52
|
-
t && (
|
|
53
|
+
function O() {
|
|
54
|
+
const t = a();
|
|
55
|
+
t && (K().forEach((e) => URL.revokeObjectURL(e)), delete t[b], delete t[g], delete t[A]);
|
|
53
56
|
}
|
|
54
|
-
function
|
|
55
|
-
const n =
|
|
56
|
-
n && (
|
|
57
|
+
function D(t, e) {
|
|
58
|
+
const n = a();
|
|
59
|
+
n && (O(), n[b] = t, n[g] = e, n[A] = T());
|
|
57
60
|
}
|
|
58
|
-
function
|
|
59
|
-
const s =
|
|
61
|
+
function N(t, e, n) {
|
|
62
|
+
const s = l(e), r = /* @__PURE__ */ new Set([s]), o = s.indexOf("dist/");
|
|
60
63
|
o >= 0 && r.add(s.slice(o + 5));
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
for (const
|
|
64
|
-
const E = s.indexOf(
|
|
64
|
+
const c = s.indexOf("public/");
|
|
65
|
+
c >= 0 && r.add(s.slice(c + 7));
|
|
66
|
+
for (const i of M) {
|
|
67
|
+
const E = s.indexOf(i);
|
|
65
68
|
E >= 0 && r.add(s.slice(E));
|
|
66
69
|
}
|
|
67
|
-
r.forEach((
|
|
68
|
-
|
|
70
|
+
r.forEach((i) => {
|
|
71
|
+
i && (t.set(i, n), t.set(i.toLowerCase(), n));
|
|
69
72
|
});
|
|
70
73
|
}
|
|
71
|
-
function
|
|
72
|
-
const e =
|
|
74
|
+
function B(t) {
|
|
75
|
+
const e = U();
|
|
73
76
|
if (!e)
|
|
74
77
|
return null;
|
|
75
|
-
const n =
|
|
78
|
+
const n = l(t);
|
|
76
79
|
return e.get(n) ?? e.get(n.toLowerCase()) ?? null;
|
|
77
80
|
}
|
|
78
|
-
function
|
|
79
|
-
const e =
|
|
81
|
+
function h(t) {
|
|
82
|
+
const e = U();
|
|
80
83
|
if (!e)
|
|
81
84
|
return !1;
|
|
82
|
-
const n =
|
|
85
|
+
const n = l(t).replace(/\/?$/, "/").toLowerCase();
|
|
83
86
|
for (const s of e.keys())
|
|
84
87
|
if (s.toLowerCase().startsWith(n))
|
|
85
88
|
return !0;
|
|
86
89
|
return !1;
|
|
87
90
|
}
|
|
88
|
-
function
|
|
89
|
-
if (!
|
|
91
|
+
function k(t) {
|
|
92
|
+
if (!v(t))
|
|
90
93
|
return null;
|
|
91
|
-
const e =
|
|
94
|
+
const e = p();
|
|
92
95
|
if (!e || !t.startsWith(e))
|
|
93
96
|
return null;
|
|
94
97
|
const n = t.slice(e.length);
|
|
95
|
-
return
|
|
98
|
+
return B(n);
|
|
96
99
|
}
|
|
97
|
-
w.setURLModifier((t) =>
|
|
98
|
-
async function
|
|
100
|
+
w.setURLModifier((t) => k(t) ?? t);
|
|
101
|
+
async function P(t) {
|
|
99
102
|
const e = [];
|
|
100
103
|
for (const n of t) {
|
|
101
|
-
const s =
|
|
102
|
-
if (
|
|
103
|
-
const
|
|
104
|
-
for (const i of
|
|
104
|
+
const s = l(n.webkitRelativePath || n.name);
|
|
105
|
+
if (F(n)) {
|
|
106
|
+
const o = await (await R()).loadAsync(n), c = Object.values(o.files);
|
|
107
|
+
for (const i of c)
|
|
105
108
|
i.dir || e.push({
|
|
106
|
-
path:
|
|
109
|
+
path: l(i.name),
|
|
107
110
|
blob: await i.async("blob")
|
|
108
111
|
});
|
|
109
112
|
continue;
|
|
@@ -115,27 +118,27 @@ async function k(t) {
|
|
|
115
118
|
}
|
|
116
119
|
return e;
|
|
117
120
|
}
|
|
118
|
-
function
|
|
121
|
+
function I() {
|
|
119
122
|
return typeof document < "u" && document.baseURI ? document.baseURI : typeof location < "u" && location.href ? location.href : null;
|
|
120
123
|
}
|
|
121
|
-
function
|
|
124
|
+
function W(t, e) {
|
|
122
125
|
const n = u(t);
|
|
123
|
-
if (
|
|
126
|
+
if (m(n))
|
|
124
127
|
return n;
|
|
125
|
-
const s = d(e) ||
|
|
128
|
+
const s = d(e) || x() || I();
|
|
126
129
|
return f(n, s || void 0) || n;
|
|
127
130
|
}
|
|
128
131
|
function d(t) {
|
|
129
132
|
if (!t)
|
|
130
133
|
return null;
|
|
131
134
|
try {
|
|
132
|
-
const e =
|
|
135
|
+
const e = I(), n = f(t, e || void 0) || t, s = new URL(".", n), r = s.pathname.replace(/\\/g, "/");
|
|
133
136
|
return r.endsWith("/chunks/") ? new URL("../", s).toString() : e && /\/src\//.test(r) ? u(e) : s.toString();
|
|
134
137
|
} catch {
|
|
135
138
|
return null;
|
|
136
139
|
}
|
|
137
140
|
}
|
|
138
|
-
function
|
|
141
|
+
function x() {
|
|
139
142
|
if (typeof document > "u")
|
|
140
143
|
return null;
|
|
141
144
|
const t = document.currentScript;
|
|
@@ -149,60 +152,60 @@ function W() {
|
|
|
149
152
|
}
|
|
150
153
|
return null;
|
|
151
154
|
}
|
|
152
|
-
function
|
|
153
|
-
const e =
|
|
155
|
+
function Z(t) {
|
|
156
|
+
const e = a();
|
|
154
157
|
if (e) {
|
|
155
158
|
if (!t) {
|
|
156
|
-
delete e[
|
|
159
|
+
delete e[S];
|
|
157
160
|
return;
|
|
158
161
|
}
|
|
159
|
-
e[
|
|
162
|
+
e[S] = u(t);
|
|
160
163
|
}
|
|
161
164
|
}
|
|
162
|
-
async function
|
|
165
|
+
async function $(t) {
|
|
163
166
|
if (!t || t.length === 0) {
|
|
164
|
-
|
|
167
|
+
O();
|
|
165
168
|
return;
|
|
166
169
|
}
|
|
167
|
-
const e = Array.from(t), n = await
|
|
170
|
+
const e = Array.from(t), n = await P(e), s = /* @__PURE__ */ new Map(), r = [];
|
|
168
171
|
n.forEach((o) => {
|
|
169
|
-
const
|
|
170
|
-
r.push(
|
|
171
|
-
}),
|
|
172
|
+
const c = URL.createObjectURL(o.blob);
|
|
173
|
+
r.push(c), N(s, o.path, c);
|
|
174
|
+
}), D(s, r);
|
|
172
175
|
}
|
|
173
|
-
async function
|
|
174
|
-
await
|
|
176
|
+
async function V(t) {
|
|
177
|
+
await $(t ? [t] : null);
|
|
175
178
|
}
|
|
176
|
-
function
|
|
177
|
-
const e =
|
|
179
|
+
function G(t) {
|
|
180
|
+
const e = p();
|
|
178
181
|
if (e)
|
|
179
182
|
return e;
|
|
180
|
-
const s =
|
|
181
|
-
return typeof s == "string" && s.length > 0 ?
|
|
183
|
+
const s = a()?.[S];
|
|
184
|
+
return typeof s == "string" && s.length > 0 ? W(s, t) : u(j);
|
|
182
185
|
}
|
|
183
|
-
function
|
|
184
|
-
if (
|
|
186
|
+
function Y(t, e) {
|
|
187
|
+
if (m(t))
|
|
185
188
|
return t;
|
|
186
|
-
const n =
|
|
189
|
+
const n = l(t), s = B(n);
|
|
187
190
|
if (s && !t.endsWith("/"))
|
|
188
191
|
return s;
|
|
189
|
-
if (t.endsWith("/") ||
|
|
190
|
-
const o =
|
|
191
|
-
if (
|
|
192
|
+
if (t.endsWith("/") || h(n)) {
|
|
193
|
+
const o = z(n);
|
|
194
|
+
if (h(n))
|
|
192
195
|
return t.endsWith("/") ? u(o) : o;
|
|
193
196
|
}
|
|
194
|
-
if (
|
|
197
|
+
if (y(t)) {
|
|
195
198
|
const o = f(t, d(e) || void 0);
|
|
196
199
|
if (o)
|
|
197
200
|
return o;
|
|
198
201
|
}
|
|
199
|
-
const r =
|
|
202
|
+
const r = G(e);
|
|
200
203
|
return f(n, r) || n;
|
|
201
204
|
}
|
|
202
205
|
export {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
206
|
+
V as a,
|
|
207
|
+
Z as b,
|
|
208
|
+
G as g,
|
|
209
|
+
Y as r,
|
|
210
|
+
$ as s
|
|
208
211
|
};
|