@thatopen/components 3.2.1 → 3.2.3

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/index.mjs CHANGED
@@ -3309,6 +3309,10 @@ const _FragmentsManager = class _FragmentsManager extends Component {
3309
3309
  const model = this.list.get(modelId);
3310
3310
  if (!model)
3311
3311
  continue;
3312
+ if (localIds.size === 0) {
3313
+ result[modelId] = [];
3314
+ continue;
3315
+ }
3312
3316
  const data = await model.getItemsData([...localIds], config);
3313
3317
  result[modelId] = data;
3314
3318
  }
@@ -3480,6 +3484,10 @@ const _IfcLoader = class _IfcLoader extends Component {
3480
3484
  * An event triggered when the IFC file starts loading.
3481
3485
  */
3482
3486
  __publicField(this, "onIfcStartedLoading", new Event());
3487
+ /**
3488
+ * An event triggered when the IFC importer is initialized.
3489
+ */
3490
+ __publicField(this, "onIfcImporterInitialized", new Event());
3483
3491
  /**
3484
3492
  * An event triggered when the setup process is completed.
3485
3493
  */
@@ -3557,6 +3565,7 @@ const _IfcLoader = class _IfcLoader extends Component {
3557
3565
  serializer.wasm.path = this.settings.wasm.path;
3558
3566
  serializer.wasm.absolute = this.settings.wasm.absolute;
3559
3567
  serializer.webIfcSettings = this.settings.webIfc;
3568
+ this.onIfcImporterInitialized.trigger(serializer);
3560
3569
  if (config == null ? void 0 : config.instanceCallback)
3561
3570
  config.instanceCallback(serializer);
3562
3571
  const bytes = await serializer.process({
@@ -20963,6 +20972,7 @@ const _IDSSpecifications = class _IDSSpecifications extends Component {
20963
20972
  constructor(components) {
20964
20973
  super(components);
20965
20974
  __publicField(this, "enabled", true);
20975
+ __publicField(this, "IDSInfo");
20966
20976
  __publicField(this, "list", new DataMap());
20967
20977
  components.add(_IDSSpecifications.uuid, this);
20968
20978
  }
@@ -21018,7 +21028,8 @@ const _IDSSpecifications = class _IDSSpecifications extends Component {
21018
21028
  load(data, config = { parseNumericString: true }) {
21019
21029
  const result = [];
21020
21030
  const ids = _IDSSpecifications.xmlParser.parse(data).ids;
21021
- const { specifications } = ids;
21031
+ const { specifications, info } = ids;
21032
+ this.IDSInfo = { ...info };
21022
21033
  if (specifications && specifications.specification) {
21023
21034
  const specs = Array.isArray(specifications.specification) ? specifications.specification : [specifications.specification];
21024
21035
  for (const spec of specs) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@thatopen/components",
3
3
  "description": "Collection of core functionalities to author BIM apps.",
4
- "version": "3.2.1",
4
+ "version": "3.2.3",
5
5
  "author": "That Open Company",
6
6
  "contributors": [
7
7
  "Antonio Gonzalez Viegas (https://github.com/agviegas)",