@thatopen/components 2.2.3 → 2.2.5
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/core/Components/index.d.ts +1 -1
- package/dist/core/Cullers/src/mesh-culler-renderer.d.ts +1 -0
- package/dist/ifc/IfcRelationsIndexer/src/types.d.ts +0 -16
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +13 -45
- package/dist/namespace.d.ts +2224 -2243
- package/package.json +1 -1
- package/dist/ifc/IfcRelationsIndexer/src/rels-builder.d.ts +0 -4
package/dist/index.mjs
CHANGED
|
@@ -3114,7 +3114,7 @@ const di = class di {
|
|
|
3114
3114
|
/**
|
|
3115
3115
|
* The version of the @thatopen/components library.
|
|
3116
3116
|
*/
|
|
3117
|
-
T(di, "release", "2.2.
|
|
3117
|
+
T(di, "release", "2.2.5");
|
|
3118
3118
|
let on = di;
|
|
3119
3119
|
class Pa extends _n {
|
|
3120
3120
|
constructor() {
|
|
@@ -5110,6 +5110,7 @@ class ka extends za {
|
|
|
5110
5110
|
* Used to prevent concurrent processing.
|
|
5111
5111
|
*/
|
|
5112
5112
|
T(this, "isProcessing", !1);
|
|
5113
|
+
T(this, "_interval", null);
|
|
5113
5114
|
T(this, "_colorCodeMeshMap", /* @__PURE__ */ new Map());
|
|
5114
5115
|
T(this, "_meshIDColorCodeMap", /* @__PURE__ */ new Map());
|
|
5115
5116
|
T(this, "_currentVisibleMeshes", /* @__PURE__ */ new Set());
|
|
@@ -5135,9 +5136,9 @@ class ka extends za {
|
|
|
5135
5136
|
unseen: this._recentlyHiddenMeshes
|
|
5136
5137
|
}), this._isWorkerBusy = !1;
|
|
5137
5138
|
});
|
|
5138
|
-
this.worker.addEventListener("message", this.handleWorkerMessage), this.autoUpdate && window.setInterval(async () => {
|
|
5139
|
+
this.worker.addEventListener("message", this.handleWorkerMessage), this.autoUpdate && (this._interval = window.setInterval(async () => {
|
|
5139
5140
|
this.isProcessing || await this.updateVisibility();
|
|
5140
|
-
}, this.updateInterval), this.onViewUpdated.add(({ seen: n, unseen: r }) => {
|
|
5141
|
+
}, this.updateInterval)), this.onViewUpdated.add(({ seen: n, unseen: r }) => {
|
|
5141
5142
|
for (const o of n)
|
|
5142
5143
|
o.visible = !0;
|
|
5143
5144
|
for (const o of r)
|
|
@@ -5146,7 +5147,7 @@ class ka extends za {
|
|
|
5146
5147
|
}
|
|
5147
5148
|
/** {@link Disposable.dispose} */
|
|
5148
5149
|
dispose() {
|
|
5149
|
-
super.dispose(), this._intervalID !== null && (window.clearInterval(this._intervalID), this._intervalID = null), this._currentVisibleMeshes.clear(), this._recentlyHiddenMeshes.clear(), this._meshIDColorCodeMap.clear(), this._transparentMat.dispose(), this._colorCodeMeshMap.clear();
|
|
5150
|
+
super.dispose(), this._intervalID !== null && (window.clearInterval(this._intervalID), this._intervalID = null), this._interval !== null && (window.clearInterval(this._interval), this._intervalID = null), this._currentVisibleMeshes.clear(), this._recentlyHiddenMeshes.clear(), this._meshIDColorCodeMap.clear(), this._transparentMat.dispose(), this._colorCodeMeshMap.clear();
|
|
5150
5151
|
const t = this.components.get(ye);
|
|
5151
5152
|
for (const e in this.colorMeshes) {
|
|
5152
5153
|
const i = this.colorMeshes.get(e);
|
|
@@ -7515,19 +7516,6 @@ const nc = /* @__PURE__ */ new Map([
|
|
|
7515
7516
|
}
|
|
7516
7517
|
return r;
|
|
7517
7518
|
}
|
|
7518
|
-
// private readonly _changeMap: {
|
|
7519
|
-
// [modelID: string]: {
|
|
7520
|
-
// [attr: InverseAttribute]: {
|
|
7521
|
-
// [expressID: number]: { added: number[]; removed: number[] };
|
|
7522
|
-
// };
|
|
7523
|
-
// };
|
|
7524
|
-
// };
|
|
7525
|
-
// removeEntitiesRelation(
|
|
7526
|
-
// model: FragmentsGroup,
|
|
7527
|
-
// expressID: number,
|
|
7528
|
-
// relationName: InverseAttribute,
|
|
7529
|
-
// ...relIDs: number[]
|
|
7530
|
-
// ) {}
|
|
7531
7519
|
/**
|
|
7532
7520
|
* Adds relations between an entity and other entities in a BIM model.
|
|
7533
7521
|
*
|
|
@@ -7556,33 +7544,6 @@ const nc = /* @__PURE__ */ new Map([
|
|
|
7556
7544
|
a == null || a.set(o, n);
|
|
7557
7545
|
}
|
|
7558
7546
|
}
|
|
7559
|
-
// private async addEntitiesRelation(
|
|
7560
|
-
// model: FragmentsGroup,
|
|
7561
|
-
// expressID: number,
|
|
7562
|
-
// rel: { name: InverseAttribute; type: IfcRelName },
|
|
7563
|
-
// ...relIDs: number[]
|
|
7564
|
-
// ) {
|
|
7565
|
-
// const { name, type } = rel;
|
|
7566
|
-
// const ifcRel = createIfcRel(
|
|
7567
|
-
// type,
|
|
7568
|
-
// expressID,
|
|
7569
|
-
// relIDs,
|
|
7570
|
-
// model.ifcMetadata.schema,
|
|
7571
|
-
// );
|
|
7572
|
-
// if (!ifcRel) return;
|
|
7573
|
-
// const propsManager = this.components.get(IfcPropertiesManager);
|
|
7574
|
-
// await propsManager.setData(model, ifcRel);
|
|
7575
|
-
// // ------
|
|
7576
|
-
// const existingRelations = this.getEntityRelations(model, expressID, name);
|
|
7577
|
-
// if (!existingRelations) {
|
|
7578
|
-
// const attributeIndex = this.getAttributeIndex(name);
|
|
7579
|
-
// if (!attributeIndex) return;
|
|
7580
|
-
// const entityRelations = this.relationMaps[model.uuid].get(expressID);
|
|
7581
|
-
// entityRelations?.set(attributeIndex, relIDs);
|
|
7582
|
-
// } else {
|
|
7583
|
-
// existingRelations.push(...relIDs);
|
|
7584
|
-
// }
|
|
7585
|
-
// }
|
|
7586
7547
|
/**
|
|
7587
7548
|
* Gets the children of the given element recursively. E.g. in a model with project - site - building - storeys - rooms, passing a storey will include all its children and the children of the rooms contained in it.
|
|
7588
7549
|
*
|
|
@@ -12236,7 +12197,14 @@ ${o}
|
|
|
12236
12197
|
}
|
|
12237
12198
|
const p = {}, I = [], m = a.filter((y) => y.name.endsWith(".bcf"));
|
|
12238
12199
|
for (const y of m) {
|
|
12239
|
-
const g = await y.async("string"), R = Pe.xmlParser.parse(g).Markup, F = R.Topic, {
|
|
12200
|
+
const g = await y.async("string"), R = Pe.xmlParser.parse(g).Markup, F = R.Topic, {
|
|
12201
|
+
Guid: O,
|
|
12202
|
+
TopicType: L,
|
|
12203
|
+
TopicStatus: N,
|
|
12204
|
+
Title: x,
|
|
12205
|
+
CreationDate: k,
|
|
12206
|
+
CreationAuthor: w
|
|
12207
|
+
} = F;
|
|
12240
12208
|
if (n && !(O && L && N && x && k && w))
|
|
12241
12209
|
continue;
|
|
12242
12210
|
const P = new hi(this.components);
|