iflow-engine-base 3.10.8 → 3.10.9
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 +36 -34
- package/dist/bim-engine-sdk.umd.js +700 -700
- package/dist/chunks/{engine-2d-B8rWZz5y.js → engine-2d-DVhZzZy6.js} +4 -4
- package/dist/chunks/{engine-3d-RuQU2JFm.js → engine-3d-LN_LUozy.js} +1220 -1197
- package/dist/chunks/{engine-720-QtnZH4Dk.js → engine-720-CxFTL7AO.js} +3 -3
- package/dist/chunks/{engine-gaussian-Bavllo9e.js → engine-gaussian-BTf-NLZ0.js} +3 -3
- package/dist/chunks/{engine-gis-D4z6WKlH.js → engine-gis-BpK8Yk97.js} +3 -3
- package/dist/chunks/sdk-assets-RCyRdW2b.js +208 -0
- package/dist/chunks/{sdk-runtime-CkKNeQgI.js → sdk-runtime-CUsuUcES.js} +3 -3
- package/dist/chunks/{three-vendor-CAbFcmaK.js → three-vendor-fDCVai2b.js} +2 -1
- package/dist/index.d.ts +27 -2
- package/dist2d/dwg-preview.es.js +657 -602
- package/dist2d/dwg-preview.umd.js +42 -42
- package/distGaussian/gaussian.es.js +1 -1
- package/distGaussian/gaussian.umd.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/sdk-assets-1SXx8Tbf.js +0 -84
package/package.json
CHANGED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
const c = "__BIM_ENGINE_SDK_ASSET_BASE__", d = "https://unpkg.com/iflow-engine-base@3.9.20/dist/";
|
|
2
|
-
function l() {
|
|
3
|
-
return typeof globalThis < "u" ? globalThis : null;
|
|
4
|
-
}
|
|
5
|
-
function u(t) {
|
|
6
|
-
return t.endsWith("/") ? t : `${t}/`;
|
|
7
|
-
}
|
|
8
|
-
function f(t) {
|
|
9
|
-
return /^(?:[a-z][a-z\d+\-.]*:)?\/\//i.test(t) || /^(?:data|blob):/i.test(t);
|
|
10
|
-
}
|
|
11
|
-
function g(t) {
|
|
12
|
-
return t.startsWith("./") || t.startsWith("../");
|
|
13
|
-
}
|
|
14
|
-
function o(t, e) {
|
|
15
|
-
try {
|
|
16
|
-
return e ? new URL(t, e).toString() : new URL(t).toString();
|
|
17
|
-
} catch {
|
|
18
|
-
return null;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
function a() {
|
|
22
|
-
return typeof document < "u" && document.baseURI ? document.baseURI : typeof location < "u" && location.href ? location.href : null;
|
|
23
|
-
}
|
|
24
|
-
function S(t, e) {
|
|
25
|
-
const n = u(t);
|
|
26
|
-
if (f(n))
|
|
27
|
-
return n;
|
|
28
|
-
const r = s(e) || m() || a();
|
|
29
|
-
return o(n, r || void 0) || n;
|
|
30
|
-
}
|
|
31
|
-
function s(t) {
|
|
32
|
-
if (!t)
|
|
33
|
-
return null;
|
|
34
|
-
try {
|
|
35
|
-
const e = a(), n = o(t, e || void 0) || t, r = new URL(".", n), i = r.pathname.replace(/\\/g, "/");
|
|
36
|
-
return i.endsWith("/chunks/") ? new URL("../", r).toString() : e && /\/src\//.test(i) ? u(e) : r.toString();
|
|
37
|
-
} catch {
|
|
38
|
-
return null;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
function m() {
|
|
42
|
-
if (typeof document > "u")
|
|
43
|
-
return null;
|
|
44
|
-
const t = document.currentScript;
|
|
45
|
-
if (t?.src)
|
|
46
|
-
return s(t.src);
|
|
47
|
-
const e = document.getElementsByTagName("script");
|
|
48
|
-
for (let n = e.length - 1; n >= 0; n -= 1) {
|
|
49
|
-
const r = e[n]?.src;
|
|
50
|
-
if (r && /(?:bim-engine-sdk|iflow-engine-base|dwg-preview|gaussian)\.(?:es|umd)\.js(?:[?#].*)?$/.test(r))
|
|
51
|
-
return s(r);
|
|
52
|
-
}
|
|
53
|
-
return null;
|
|
54
|
-
}
|
|
55
|
-
function _(t) {
|
|
56
|
-
const e = l();
|
|
57
|
-
if (e) {
|
|
58
|
-
if (!t) {
|
|
59
|
-
delete e[c];
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
e[c] = u(t);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
function B(t) {
|
|
66
|
-
const n = l()?.[c];
|
|
67
|
-
return typeof n == "string" && n.length > 0 ? S(n, t) : u(d);
|
|
68
|
-
}
|
|
69
|
-
function U(t, e) {
|
|
70
|
-
if (f(t))
|
|
71
|
-
return t;
|
|
72
|
-
if (g(t)) {
|
|
73
|
-
const i = o(t, s(e) || void 0);
|
|
74
|
-
if (i)
|
|
75
|
-
return i;
|
|
76
|
-
}
|
|
77
|
-
const n = t.replace(/^\/+/, ""), r = B(e);
|
|
78
|
-
return o(n, r) || n;
|
|
79
|
-
}
|
|
80
|
-
export {
|
|
81
|
-
B as g,
|
|
82
|
-
U as r,
|
|
83
|
-
_ as s
|
|
84
|
-
};
|