@thatopen/components 2.1.8 → 2.1.9

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.
@@ -6,7 +6,7 @@ export declare class Components implements Disposable {
6
6
  /**
7
7
  * The version of the @thatopen/components library.
8
8
  */
9
- static readonly release = "2.1.8";
9
+ static readonly release = "2.1.9";
10
10
  /** {@link Disposable.onDisposed} */
11
11
  readonly onDisposed: Event<void>;
12
12
  /**
@@ -128,7 +128,9 @@ export declare class Classifier extends Component implements Disposable {
128
128
  * Classifies fragments based on their spatial structure in the IFC model.
129
129
  *
130
130
  * @param model - The FragmentsGroup containing the fragments to be classified.
131
- * @param config - The configuration for the classifier. It includes "useProperties" (if false, the classification will use the expressIDs instead of the names)
131
+ * @param config - The configuration for the classifier. It includes "useProperties", which is true by default
132
+ * (if false, the classification will use the expressIDs instead of the names), and "isolate", which will make
133
+ * the classifier just pick the WEBIFC categories provided.
132
134
  *
133
135
  * @remarks
134
136
  * This method iterates through the relations of the fragments in the provided group,
@@ -138,8 +140,9 @@ export declare class Classifier extends Component implements Disposable {
138
140
  *
139
141
  * @throws Will throw an error if the fragment ID is not found or if the model relations do not exist.
140
142
  */
141
- bySpatialStructure(model: FRAGS.FragmentsGroup, config?: {
142
- useProperties: boolean;
143
+ bySpatialStructure(model: FRAGS.FragmentsGroup, config: {
144
+ useProperties?: boolean;
145
+ isolate?: Set<number>;
143
146
  }): Promise<void>;
144
147
  /**
145
148
  * Sets the color of the specified fragments.
@@ -2,3 +2,4 @@ export * from "./ifc-fragment-settings";
2
2
  export * from "./spatial-structure";
3
3
  export * from "./civil-reader";
4
4
  export * from "./ifc-metadata-reader";
5
+ export * from "./spatial-ids-finder";
@@ -0,0 +1,5 @@
1
+ import * as FRAGS from "@thatopen/fragments";
2
+ import * as WEBIFC from "web-ifc";
3
+ export declare class SpatialIdsFinder {
4
+ static get(model: FRAGS.FragmentsGroup, webIfc: WEBIFC.IfcAPI): void;
5
+ }