@thatopen/components 2.4.0-alpha.17 → 2.4.0-alpha.18
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/fragments/IfcGeometryTiler/index.d.ts +1 -0
- package/dist/index.cjs +13 -9
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.mjs +3 -3
- package/dist/index.mjs +13 -9
- package/dist/namespace.d.ts +3499 -3498
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24689,20 +24689,24 @@ const _IfcGeometryTiler = class _IfcGeometryTiler extends Component {
|
|
|
24689
24689
|
for (const [id, value] of this._geometries) {
|
|
24690
24690
|
exportMap.set(id, value);
|
|
24691
24691
|
if (exportMap.size > this.settings.minGeometrySize) {
|
|
24692
|
-
|
|
24693
|
-
let data = {};
|
|
24694
|
-
for (const [id2, { boundingBox: boundingBox2, hasHoles }] of exportMap) {
|
|
24695
|
-
data[id2] = { boundingBox: boundingBox2, hasHoles };
|
|
24696
|
-
}
|
|
24697
|
-
await this.onGeometryStreamed.trigger({ data, buffer });
|
|
24698
|
-
data = null;
|
|
24699
|
-
buffer = null;
|
|
24700
|
-
exportMap.clear();
|
|
24692
|
+
await this.outputGeometries(exportMap);
|
|
24701
24693
|
}
|
|
24702
24694
|
}
|
|
24695
|
+
await this.outputGeometries(exportMap);
|
|
24703
24696
|
this._geometries.clear();
|
|
24704
24697
|
this._geometryCount = 0;
|
|
24705
24698
|
}
|
|
24699
|
+
async outputGeometries(exportMap) {
|
|
24700
|
+
let buffer = this._streamSerializer.export(exportMap);
|
|
24701
|
+
let data = {};
|
|
24702
|
+
for (const [id, { boundingBox: boundingBox2, hasHoles }] of exportMap) {
|
|
24703
|
+
data[id] = { boundingBox: boundingBox2, hasHoles };
|
|
24704
|
+
}
|
|
24705
|
+
await this.onGeometryStreamed.trigger({ data, buffer });
|
|
24706
|
+
data = null;
|
|
24707
|
+
buffer = null;
|
|
24708
|
+
exportMap.clear();
|
|
24709
|
+
}
|
|
24706
24710
|
registerGeometryData(group, itemID, geometry, asset, geometryID, transpGeometryID) {
|
|
24707
24711
|
const geometryData = this._visitedGeometries.get(transpGeometryID);
|
|
24708
24712
|
if (geometryData === void 0) {
|