@thatopen/components 2.4.0-alpha.16 → 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 +3821 -3820
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -24670,20 +24670,24 @@ const _IfcGeometryTiler = class _IfcGeometryTiler extends Component {
|
|
|
24670
24670
|
for (const [id, value] of this._geometries) {
|
|
24671
24671
|
exportMap.set(id, value);
|
|
24672
24672
|
if (exportMap.size > this.settings.minGeometrySize) {
|
|
24673
|
-
|
|
24674
|
-
let data = {};
|
|
24675
|
-
for (const [id2, { boundingBox: boundingBox2, hasHoles }] of this._geometries) {
|
|
24676
|
-
data[id2] = { boundingBox: boundingBox2, hasHoles };
|
|
24677
|
-
}
|
|
24678
|
-
await this.onGeometryStreamed.trigger({ data, buffer });
|
|
24679
|
-
data = null;
|
|
24680
|
-
buffer = null;
|
|
24681
|
-
exportMap.clear();
|
|
24673
|
+
await this.outputGeometries(exportMap);
|
|
24682
24674
|
}
|
|
24683
24675
|
}
|
|
24676
|
+
await this.outputGeometries(exportMap);
|
|
24684
24677
|
this._geometries.clear();
|
|
24685
24678
|
this._geometryCount = 0;
|
|
24686
24679
|
}
|
|
24680
|
+
async outputGeometries(exportMap) {
|
|
24681
|
+
let buffer = this._streamSerializer.export(exportMap);
|
|
24682
|
+
let data = {};
|
|
24683
|
+
for (const [id, { boundingBox: boundingBox2, hasHoles }] of exportMap) {
|
|
24684
|
+
data[id] = { boundingBox: boundingBox2, hasHoles };
|
|
24685
|
+
}
|
|
24686
|
+
await this.onGeometryStreamed.trigger({ data, buffer });
|
|
24687
|
+
data = null;
|
|
24688
|
+
buffer = null;
|
|
24689
|
+
exportMap.clear();
|
|
24690
|
+
}
|
|
24687
24691
|
registerGeometryData(group, itemID, geometry, asset, geometryID, transpGeometryID) {
|
|
24688
24692
|
const geometryData = this._visitedGeometries.get(transpGeometryID);
|
|
24689
24693
|
if (geometryData === void 0) {
|