@ifc-lite/viewer 1.19.0 → 1.19.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 +15 -14
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +8 -0
- package/dist/assets/basketViewActivator-CA2CTcVo.js +71 -0
- package/dist/assets/{bcf-DOG9_WPX.js → bcf-4K724hw0.js} +18 -18
- package/dist/assets/{exporters-BraHBeoi.js → exporters-xbXqEDlO.js} +53 -46
- package/dist/assets/ids-2WdONLlu.js +2033 -0
- package/dist/assets/index-BXeEKqJG.css +1 -0
- package/dist/assets/{index-BOi3BuUI.js → index-D8Epw-e7.js} +48072 -30928
- package/dist/assets/{native-bridge-CpBeOPQa.js → native-bridge-DKmx1z95.js} +2 -2
- package/dist/assets/{sandbox-Baez7n-t.js → sandbox-tccwm5Bo.js} +547 -529
- package/dist/assets/{server-client-BB6cMAXE.js → server-client-LoWPK1N2.js} +1 -1
- package/dist/assets/three-CDRZThFA.js +4057 -0
- package/dist/assets/{wasm-bridge-CAYCUHbE.js → wasm-bridge-BsJGgPMs.js} +1 -1
- package/dist/index.html +8 -7
- package/dist/samples/building-architecture.ifc +453 -0
- package/dist/samples/hello-wall.ifc +1054 -0
- package/dist/samples/infra-bridge.ifc +962 -0
- package/package.json +7 -2
- package/public/samples/building-architecture.ifc +453 -0
- package/public/samples/hello-wall.ifc +1054 -0
- package/public/samples/infra-bridge.ifc +962 -0
- package/src/App.tsx +37 -3
- package/src/components/mcp/HeroScene.tsx +876 -0
- package/src/components/mcp/McpLanding.tsx +1318 -0
- package/src/components/mcp/McpPlayground.tsx +524 -0
- package/src/components/mcp/PlaygroundChat.tsx +1097 -0
- package/src/components/mcp/PlaygroundViewer.tsx +815 -0
- package/src/components/mcp/README.md +171 -0
- package/src/components/mcp/data.ts +659 -0
- package/src/components/mcp/playground-dispatcher.ts +1649 -0
- package/src/components/mcp/playground-files.ts +107 -0
- package/src/components/mcp/playground-uploads.ts +122 -0
- package/src/components/mcp/types.ts +65 -0
- package/src/components/mcp/use-mcp-page.ts +109 -0
- package/src/components/viewer/MainToolbar.tsx +19 -0
- package/src/components/viewer/ViewportContainer.tsx +35 -4
- package/src/generated/mcp-catalog.json +82 -0
- package/vite.config.ts +6 -0
- package/dist/assets/basketViewActivator-RZy5c3Td.js +0 -1
- package/dist/assets/ids-DQ5jY0E8.js +0 -1
- package/dist/assets/index-0XpVr_S5.css +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-bridge-
|
|
2
|
-
import { d as gs, g as Gi } from "./bcf-
|
|
3
|
-
let
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-bridge-DKmx1z95.js","assets/bcf-4K724hw0.js","assets/zip-DBEtpeu6.js","assets/cesium-DUOzBlqv.js","assets/arrow-CZ5kQ26f.js","assets/cesium-ADbP7waU.css","assets/wasm-bridge-BsJGgPMs.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { d as gs, g as Gi } from "./bcf-4K724hw0.js";
|
|
3
|
+
let gf, Cr, kf, Pf, jf, oe, Vf, ys, Za, br, ps, Uf, Yf, _f, uf, qf, x, ue, M, Rs, Va, Xf, Kf, $f, zf, er, nr, cs, bt, Cf, Ff, Nf, wf, xf, Bf, Mf, Wf, Qf, Ft, k, Rf, Hr, Ef, ti, Tf, Of, hf, vf, Gf, cn, Df, pn, Ue, ut, Qs, os, Ji, Wa, qa, La, Gr, gt, Hf;
|
|
4
4
|
let __tla = (async ()=>{
|
|
5
5
|
Rs = class {
|
|
6
6
|
strings = [
|
|
@@ -2240,7 +2240,7 @@ let __tla = (async ()=>{
|
|
|
2240
2240
|
Qs = function(s) {
|
|
2241
2241
|
return zi.has(s);
|
|
2242
2242
|
};
|
|
2243
|
-
|
|
2243
|
+
Tf = function(s) {
|
|
2244
2244
|
return s ? Zi.has(s) : !1;
|
|
2245
2245
|
};
|
|
2246
2246
|
Ji = function(s) {
|
|
@@ -2249,13 +2249,13 @@ let __tla = (async ()=>{
|
|
|
2249
2249
|
os = function(s) {
|
|
2250
2250
|
return Xi.has(s);
|
|
2251
2251
|
};
|
|
2252
|
-
|
|
2252
|
+
Ef = function(s) {
|
|
2253
2253
|
return s ? os(ut(s)) : !1;
|
|
2254
2254
|
};
|
|
2255
2255
|
er = function(s) {
|
|
2256
2256
|
return Ki.has(s);
|
|
2257
2257
|
};
|
|
2258
|
-
|
|
2258
|
+
hf = function(s) {
|
|
2259
2259
|
return s ? er(ut(s)) : !1;
|
|
2260
2260
|
};
|
|
2261
2261
|
let tr, sr, Xs;
|
|
@@ -2333,10 +2333,10 @@ let __tla = (async ()=>{
|
|
|
2333
2333
|
}
|
|
2334
2334
|
return (await rr()).get(t);
|
|
2335
2335
|
};
|
|
2336
|
-
|
|
2336
|
+
Cf = async function(s) {
|
|
2337
2337
|
return (await nr(String(s).trim()))?.proj4;
|
|
2338
2338
|
};
|
|
2339
|
-
|
|
2339
|
+
gf = async function(s, e = {}) {
|
|
2340
2340
|
const t = ar(s);
|
|
2341
2341
|
if (!t) return [];
|
|
2342
2342
|
const a = Qa(e.limit, 25), i = e.includeDeprecated ?? !1;
|
|
@@ -4282,7 +4282,7 @@ ${s.stack}` : ""}` : String(s);
|
|
|
4282
4282
|
async function Tr() {
|
|
4283
4283
|
if (Ja()) {
|
|
4284
4284
|
const { NativeBridge: s } = await cs(async ()=>{
|
|
4285
|
-
const { NativeBridge: e } = await import("./native-bridge-
|
|
4285
|
+
const { NativeBridge: e } = await import("./native-bridge-DKmx1z95.js").then(async (m)=>{
|
|
4286
4286
|
await m.__tla;
|
|
4287
4287
|
return m;
|
|
4288
4288
|
});
|
|
@@ -4293,7 +4293,7 @@ ${s.stack}` : ""}` : String(s);
|
|
|
4293
4293
|
return new s;
|
|
4294
4294
|
} else {
|
|
4295
4295
|
const { WasmBridge: s } = await cs(async ()=>{
|
|
4296
|
-
const { WasmBridge: e } = await import("./wasm-bridge-
|
|
4296
|
+
const { WasmBridge: e } = await import("./wasm-bridge-BsJGgPMs.js");
|
|
4297
4297
|
return {
|
|
4298
4298
|
WasmBridge: e
|
|
4299
4299
|
};
|
|
@@ -4600,7 +4600,7 @@ ${s.stack}` : ""}` : String(s);
|
|
|
4600
4600
|
}
|
|
4601
4601
|
return t.join("_");
|
|
4602
4602
|
}
|
|
4603
|
-
|
|
4603
|
+
Rf = function(s) {
|
|
4604
4604
|
const e = new Map;
|
|
4605
4605
|
for (const t of s){
|
|
4606
4606
|
const a = gr(t.positions, t.indices), i = e.get(a);
|
|
@@ -5689,7 +5689,7 @@ ${s.stack}` : ""}` : String(s);
|
|
|
5689
5689
|
t.port1.onmessage = ()=>e(), t.port2.postMessage(null);
|
|
5690
5690
|
});
|
|
5691
5691
|
}
|
|
5692
|
-
|
|
5692
|
+
Pf = class {
|
|
5693
5693
|
expressIds;
|
|
5694
5694
|
byteOffsets;
|
|
5695
5695
|
byteLengths;
|
|
@@ -75083,13 +75083,13 @@ ${s.stack}` : ""}` : String(s);
|
|
|
75083
75083
|
ti = function(s) {
|
|
75084
75084
|
return Vr(s).map((t)=>t.name);
|
|
75085
75085
|
};
|
|
75086
|
-
|
|
75086
|
+
Of = function(s) {
|
|
75087
75087
|
return Wr(s);
|
|
75088
75088
|
};
|
|
75089
75089
|
function qr(s) {
|
|
75090
75090
|
return Yr(s);
|
|
75091
75091
|
}
|
|
75092
|
-
|
|
75092
|
+
Df = function(s) {
|
|
75093
75093
|
if (typeof s != "string" || s.length === 0) return s;
|
|
75094
75094
|
const e = Ds(s);
|
|
75095
75095
|
return e ? e.name : s;
|
|
@@ -75115,7 +75115,7 @@ ${s.stack}` : ""}` : String(s);
|
|
|
75115
75115
|
}
|
|
75116
75116
|
}
|
|
75117
75117
|
}
|
|
75118
|
-
|
|
75118
|
+
Ff = function(s, e) {
|
|
75119
75119
|
return s === void 0 || e === void 0 ? null : Math.atan2(e, s) * (180 / Math.PI);
|
|
75120
75120
|
};
|
|
75121
75121
|
function kr(s, e) {
|
|
@@ -75201,7 +75201,7 @@ ${s.stack}` : ""}` : String(s);
|
|
|
75201
75201
|
1
|
|
75202
75202
|
];
|
|
75203
75203
|
}
|
|
75204
|
-
|
|
75204
|
+
Nf = function(s, e) {
|
|
75205
75205
|
let t;
|
|
75206
75206
|
if (s.onDemandClassificationMap) t = s.onDemandClassificationMap.get(e);
|
|
75207
75207
|
else if (s.relationships) {
|
|
@@ -75279,7 +75279,7 @@ ${s.stack}` : ""}` : String(s);
|
|
|
75279
75279
|
codes: a
|
|
75280
75280
|
};
|
|
75281
75281
|
}
|
|
75282
|
-
|
|
75282
|
+
wf = function(s, e) {
|
|
75283
75283
|
let t;
|
|
75284
75284
|
if (s.onDemandMaterialMap) t = s.onDemandMaterialMap.get(e);
|
|
75285
75285
|
else if (s.relationships) {
|
|
@@ -75545,7 +75545,7 @@ ${s.stack}` : ""}` : String(s);
|
|
|
75545
75545
|
}
|
|
75546
75546
|
return a;
|
|
75547
75547
|
}
|
|
75548
|
-
|
|
75548
|
+
Mf = function(s, e) {
|
|
75549
75549
|
if (!s.relationships) return null;
|
|
75550
75550
|
const t = s.relationships.getRelated(e, M.DefinesByType, "inverse");
|
|
75551
75551
|
if (t.length === 0) return null;
|
|
@@ -75572,7 +75572,7 @@ ${s.stack}` : ""}` : String(s);
|
|
|
75572
75572
|
properties: o
|
|
75573
75573
|
};
|
|
75574
75574
|
};
|
|
75575
|
-
|
|
75575
|
+
_f = function(s, e) {
|
|
75576
75576
|
const t = s.entityIndex.byId.get(e);
|
|
75577
75577
|
if (!t || !s.source?.length) return [];
|
|
75578
75578
|
const a = new oe(s.source), i = a.extractEntity(t);
|
|
@@ -75591,7 +75591,7 @@ ${s.stack}` : ""}` : String(s);
|
|
|
75591
75591
|
}
|
|
75592
75592
|
return r;
|
|
75593
75593
|
};
|
|
75594
|
-
|
|
75594
|
+
xf = function(s, e) {
|
|
75595
75595
|
let t;
|
|
75596
75596
|
if (s.onDemandDocumentMap) t = s.onDemandDocumentMap.get(e);
|
|
75597
75597
|
else if (s.relationships) {
|
|
@@ -75657,7 +75657,7 @@ ${s.stack}` : ""}` : String(s);
|
|
|
75657
75657
|
}
|
|
75658
75658
|
return i;
|
|
75659
75659
|
};
|
|
75660
|
-
|
|
75660
|
+
Bf = function(s, e) {
|
|
75661
75661
|
const t = {
|
|
75662
75662
|
voids: [],
|
|
75663
75663
|
fills: [],
|
|
@@ -75711,7 +75711,7 @@ ${s.stack}` : ""}` : String(s);
|
|
|
75711
75711
|
}
|
|
75712
75712
|
return t;
|
|
75713
75713
|
};
|
|
75714
|
-
|
|
75714
|
+
Uf = function(s) {
|
|
75715
75715
|
if (!s.source?.length || !s.entityIndex) return null;
|
|
75716
75716
|
const e = new oe(s.source), { byId: t, byType: a } = s.entityIndex, i = new Map, r = new Map;
|
|
75717
75717
|
for (const n of [
|
|
@@ -76413,7 +76413,7 @@ ${s.stack}` : ""}` : String(s);
|
|
|
76413
76413
|
function Tt(s, e) {
|
|
76414
76414
|
return s.entityIndex.byId.get(e) ?? s.deferredEntityIndex?.get(e);
|
|
76415
76415
|
}
|
|
76416
|
-
|
|
76416
|
+
vf = function(s, e) {
|
|
76417
76417
|
const t = s.entityIndex.byId.get(e);
|
|
76418
76418
|
if (!t) return {
|
|
76419
76419
|
globalId: "",
|
|
@@ -76439,7 +76439,7 @@ ${s.stack}` : ""}` : String(s);
|
|
|
76439
76439
|
tag: c
|
|
76440
76440
|
};
|
|
76441
76441
|
};
|
|
76442
|
-
|
|
76442
|
+
Gf = function(s, e) {
|
|
76443
76443
|
const t = s.entityIndex.byId.get(e);
|
|
76444
76444
|
if (!t) return [];
|
|
76445
76445
|
const i = new oe(s.source).extractEntity(t);
|
|
@@ -77002,7 +77002,7 @@ ${s.stack}` : ""}` : String(s);
|
|
|
77002
77002
|
if (s?.aborted) throw new DOMException("Aborted", "AbortError");
|
|
77003
77003
|
}
|
|
77004
77004
|
const Hn = 25e6, Vn = 4 * 1024 * 1024 * 1024, Yn = 2e5;
|
|
77005
|
-
|
|
77005
|
+
jf = function(s) {
|
|
77006
77006
|
const e = s.maxPointsInMemory ?? Hn, t = s.maxFileSize ?? Vn, a = s.chunkSize ?? Yn;
|
|
77007
77007
|
if (!Number.isFinite(a) || a <= 0) throw new Error(`streamPointCloud: chunkSize must be a positive finite number (got ${a})`);
|
|
77008
77008
|
const i = new AbortController, r = Wn(s.signal, i.signal), n = (async ()=>{
|
|
@@ -77962,7 +77962,7 @@ ${s.stack}` : ""}` : String(s);
|
|
|
77962
77962
|
for (const a of s.values())e.has(a.path) || t.push(a);
|
|
77963
77963
|
return t;
|
|
77964
77964
|
}
|
|
77965
|
-
|
|
77965
|
+
Hf = async function(s, e = {}) {
|
|
77966
77966
|
const t = performance.now();
|
|
77967
77967
|
e.onProgress?.({
|
|
77968
77968
|
phase: "parse",
|
|
@@ -78093,12 +78093,12 @@ ${s.stack}` : ""}` : String(s);
|
|
|
78093
78093
|
}
|
|
78094
78094
|
return a.build();
|
|
78095
78095
|
}
|
|
78096
|
-
|
|
78096
|
+
Vf = function(s) {
|
|
78097
78097
|
if (s.byteLength >= 4 && new DataView(s).getUint32(0, !0) === 1179937895) return "glb";
|
|
78098
78098
|
const e = new Uint8Array(s, 0, Math.min(100, s.byteLength)), t = new TextDecoder().decode(e).trim();
|
|
78099
78099
|
return t.startsWith("{") ? "ifcx" : t.includes("ISO-10303-21") || t.startsWith("ISO") ? "ifc" : "unknown";
|
|
78100
78100
|
};
|
|
78101
|
-
|
|
78101
|
+
Yf = async function(s, e = {}) {
|
|
78102
78102
|
const t = performance.now();
|
|
78103
78103
|
if (s.length === 0) throw new Error("At least one IFCX file is required");
|
|
78104
78104
|
e.onProgress?.({
|
|
@@ -78395,7 +78395,7 @@ ${s.stack}` : ""}` : String(s);
|
|
|
78395
78395
|
};
|
|
78396
78396
|
return {};
|
|
78397
78397
|
}
|
|
78398
|
-
|
|
78398
|
+
Wf = function(s) {
|
|
78399
78399
|
if (!s.source?.length) return {
|
|
78400
78400
|
workSchedules: [],
|
|
78401
78401
|
tasks: [],
|
|
@@ -78601,7 +78601,7 @@ ${s.stack}` : ""}` : String(s);
|
|
|
78601
78601
|
function ws(s, e) {
|
|
78602
78602
|
return s && s.length > 0 ? s : Ft(e);
|
|
78603
78603
|
}
|
|
78604
|
-
|
|
78604
|
+
qf = function(s, e) {
|
|
78605
78605
|
let t = e.nextId;
|
|
78606
78606
|
const a = [], i = vl(e.ownerHistoryId), r = {
|
|
78607
78607
|
workSchedules: 0,
|
|
@@ -79008,7 +79008,7 @@ self.onmessage = function(e) {
|
|
|
79008
79008
|
}
|
|
79009
79009
|
});
|
|
79010
79010
|
}
|
|
79011
|
-
|
|
79011
|
+
kf = class {
|
|
79012
79012
|
async parse(e, t = {}) {
|
|
79013
79013
|
const a = new Uint8Array(e);
|
|
79014
79014
|
t.onProgress?.({
|
|
@@ -79124,7 +79124,7 @@ self.onmessage = function(e) {
|
|
|
79124
79124
|
}), await new Fs().parseLite(e, n, t);
|
|
79125
79125
|
}
|
|
79126
79126
|
};
|
|
79127
|
-
|
|
79127
|
+
$f = class {
|
|
79128
79128
|
geometryResult;
|
|
79129
79129
|
constructor(e){
|
|
79130
79130
|
this.geometryResult = e;
|
|
@@ -79344,7 +79344,7 @@ self.onmessage = function(e) {
|
|
|
79344
79344
|
return u.setUint32(m, f, !0), m += 4, u.setUint32(m, 5130562, !0), m += 4, I.set(l, m), new Uint8Array(p);
|
|
79345
79345
|
}
|
|
79346
79346
|
};
|
|
79347
|
-
|
|
79347
|
+
zf = class {
|
|
79348
79348
|
store;
|
|
79349
79349
|
constructor(e){
|
|
79350
79350
|
this.store = e;
|
|
@@ -80439,7 +80439,7 @@ self.onmessage = function(e) {
|
|
|
80439
80439
|
}
|
|
80440
80440
|
return e.push(t), e;
|
|
80441
80441
|
}
|
|
80442
|
-
|
|
80442
|
+
uf = class {
|
|
80443
80443
|
dataStore;
|
|
80444
80444
|
mutationView;
|
|
80445
80445
|
nextExpressId;
|
|
@@ -80625,7 +80625,7 @@ END-ISO-10303-21;
|
|
|
80625
80625
|
P !== null && (t.push(P), a++);
|
|
80626
80626
|
} else t.push(F), a++;
|
|
80627
80627
|
}
|
|
80628
|
-
const g =
|
|
80628
|
+
const g = mf(o, t);
|
|
80629
80629
|
return {
|
|
80630
80630
|
content: g,
|
|
80631
80631
|
stats: {
|
|
@@ -80921,7 +80921,14 @@ END-ISO-10303-21;
|
|
|
80921
80921
|
return t >= p.length ? null : (p[t] = a, `${o}${p.join(",")}${c}`);
|
|
80922
80922
|
}
|
|
80923
80923
|
};
|
|
80924
|
-
function
|
|
80924
|
+
Qf = function(s, e) {
|
|
80925
|
+
const a = new uf(s).export({
|
|
80926
|
+
schema: "IFC4",
|
|
80927
|
+
...e
|
|
80928
|
+
});
|
|
80929
|
+
return new TextDecoder().decode(a.content);
|
|
80930
|
+
};
|
|
80931
|
+
function mf(s, e) {
|
|
80925
80932
|
const t = new TextEncoder, a = t.encode(`${s}DATA;
|
|
80926
80933
|
`), i = t.encode(`ENDSEC;
|
|
80927
80934
|
END-ISO-10303-21;
|
|
@@ -80936,12 +80943,12 @@ END-ISO-10303-21;
|
|
|
80936
80943
|
for(let c = 0; c < l.length; c++)o.set(l[c], f), f += l[c].byteLength, o.set(r, f), f += r.byteLength;
|
|
80937
80944
|
return o.set(i, f), o;
|
|
80938
80945
|
}
|
|
80939
|
-
const
|
|
80946
|
+
const Sf = /#(\d+)/g, Af = new Set([
|
|
80940
80947
|
"IFCUNITASSIGNMENT",
|
|
80941
80948
|
"IFCGEOMETRICREPRESENTATIONCONTEXT",
|
|
80942
80949
|
"IFCGEOMETRICREPRESENTATIONSUBCONTEXT"
|
|
80943
80950
|
]);
|
|
80944
|
-
|
|
80951
|
+
Xf = class {
|
|
80945
80952
|
models;
|
|
80946
80953
|
constructor(e){
|
|
80947
80954
|
if (e.length === 0) throw new Error("MergedExporter requires at least one model");
|
|
@@ -81111,14 +81118,14 @@ END-ISO-10303-21;
|
|
|
81111
81118
|
};
|
|
81112
81119
|
}
|
|
81113
81120
|
remapEntityText(e, t, a) {
|
|
81114
|
-
return e.replace(
|
|
81121
|
+
return e.replace(Sf, (i, r)=>{
|
|
81115
81122
|
const n = parseInt(r, 10), l = a.get(n);
|
|
81116
81123
|
return l !== void 0 ? `#${l}` : `#${n + t}`;
|
|
81117
81124
|
});
|
|
81118
81125
|
}
|
|
81119
81126
|
findInfrastructureEntities(e) {
|
|
81120
81127
|
const t = new Map;
|
|
81121
|
-
for (const a of
|
|
81128
|
+
for (const a of Af){
|
|
81122
81129
|
const i = e.entityIndex.byType.get(a) ?? [];
|
|
81123
81130
|
i.length > 0 && t.set(a, [
|
|
81124
81131
|
...i
|
|
@@ -81294,7 +81301,7 @@ END-ISO-10303-21;
|
|
|
81294
81301
|
"CrossSectionArea",
|
|
81295
81302
|
"Station"
|
|
81296
81303
|
]);
|
|
81297
|
-
|
|
81304
|
+
Kf = class {
|
|
81298
81305
|
dataStore;
|
|
81299
81306
|
mutationView;
|
|
81300
81307
|
geometryResult;
|
|
@@ -81316,7 +81323,7 @@ END-ISO-10303-21;
|
|
|
81316
81323
|
for(let S = 0; S < f.count; S++){
|
|
81317
81324
|
const A = f.expressId[S];
|
|
81318
81325
|
if (i && !i.has(A) || r && !r.has(A)) continue;
|
|
81319
|
-
const T = f.typeEnum[S], d = Ue(T) || "IfcElement", L = Ri(d.toUpperCase(), t, "IFC5"), C =
|
|
81326
|
+
const T = f.typeEnum[S], d = Ue(T) || "IfcElement", L = Ri(d.toUpperCase(), t, "IFC5"), C = df(L);
|
|
81320
81327
|
C === "IfcProject" && (p = A);
|
|
81321
81328
|
const b = this.entityUuids.get(A) || fs(A), E = {};
|
|
81322
81329
|
E["bsi::ifc::class"] = {
|
|
@@ -81361,7 +81368,7 @@ END-ISO-10303-21;
|
|
|
81361
81368
|
});
|
|
81362
81369
|
}
|
|
81363
81370
|
}
|
|
81364
|
-
const u =
|
|
81371
|
+
const u = Lf(n), I = {
|
|
81365
81372
|
header: {
|
|
81366
81373
|
id: `ifcx_${Date.now()}_${Math.random().toString(36).substring(2, 9)}`,
|
|
81367
81374
|
ifcxVersion: "ifcx_alpha",
|
|
@@ -81555,7 +81562,7 @@ END-ISO-10303-21;
|
|
|
81555
81562
|
return i;
|
|
81556
81563
|
}
|
|
81557
81564
|
};
|
|
81558
|
-
function
|
|
81565
|
+
function Lf(s) {
|
|
81559
81566
|
let e = !1, t = !1, a = !1;
|
|
81560
81567
|
for (const r of s)if (r.attributes) {
|
|
81561
81568
|
for (const n of Object.keys(r.attributes))if (!e && (n === "bsi::ifc::class" || n.startsWith("bsi::ifc::presentation::") || n === "bsi::ifc::material" || n === "bsi::ifc::spaceBoundary") && (e = !0), !t && n.startsWith("bsi::ifc::prop::") && (t = !0), !a && n.startsWith("usd::") && (a = !0), e && t && a) break;
|
|
@@ -81573,11 +81580,11 @@ END-ISO-10303-21;
|
|
|
81573
81580
|
function fs(s) {
|
|
81574
81581
|
return `00000000-0000-4000-8000-${s.toString(16).padStart(12, "0")}`;
|
|
81575
81582
|
}
|
|
81576
|
-
function
|
|
81583
|
+
function df(s) {
|
|
81577
81584
|
const e = ut(s), t = Ue(e);
|
|
81578
81585
|
if (t !== "Unknown") return t;
|
|
81579
81586
|
const a = s.toLowerCase();
|
|
81580
81587
|
return a.startsWith("ifc") ? "Ifc" + a.charAt(3).toUpperCase() + a.slice(4) : s;
|
|
81581
81588
|
}
|
|
81582
81589
|
})();
|
|
81583
|
-
export {
|
|
81590
|
+
export { gf as $, Cr as A, kf as B, Pf as C, jf as D, oe as E, Vf as F, ys as G, Za as H, br as I, ps as J, Uf as K, Yf as L, _f as M, uf as N, qf as O, x as P, ue as Q, M as R, Rs as S, Va as T, Xf as U, Kf as V, $f as W, zf as X, er as Y, nr as Z, cs as _, bt as a, Cf as a0, Ff as a1, Nf as a2, wf as a3, xf as a4, Bf as a5, Mf as a6, Wf as a7, Qf as a8, Ft as b, k as c, Rf as d, Hr as e, Ef as f, ti as g, Tf as h, Of as i, hf as j, vf as k, Gf as l, cn as m, Df as n, pn as o, Ue as p, ut as q, Qs as r, os as s, Ji as t, Wa as u, qa as v, La as w, Gr as x, gt as y, Hf as z, __tla };
|