@thatopen/components 2.1.26 → 2.1.27
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/ifc/IfcRelationsIndexer/index.d.ts +12 -0
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +28 -1
- package/dist/namespace.d.ts +1482 -1470
- package/package.json +2 -2
|
@@ -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.
|
|
9
|
+
static readonly release = "2.1.27";
|
|
10
10
|
/** {@link Disposable.onDisposed} */
|
|
11
11
|
readonly onDisposed: Event<void>;
|
|
12
12
|
/**
|
|
@@ -139,6 +139,18 @@ export declare class IfcRelationsIndexer extends Component implements Disposable
|
|
|
139
139
|
getRelationsMapFromJSON(json: string): RelationsMap;
|
|
140
140
|
/** {@link Disposable.dispose} */
|
|
141
141
|
dispose(): void;
|
|
142
|
+
/**
|
|
143
|
+
* Retrieves the entities within a given model that have a specific relation with a given entity.
|
|
144
|
+
*
|
|
145
|
+
* @param model - The BIM model to search for related entities.
|
|
146
|
+
* @param inv - The IFC schema inverse attribute of the relation to search for (e.g., "IsDefinedBy", "ContainsElements").
|
|
147
|
+
* @param expressID - The expressID of the entity within the model.
|
|
148
|
+
*
|
|
149
|
+
* @returns A `Set` with the expressIDs of the entities that have the specified relation with the given entity.
|
|
150
|
+
*
|
|
151
|
+
* @throws An error if the model relations are not indexed or if the inverse attribute name is invalid.
|
|
152
|
+
*/
|
|
153
|
+
getEntitiesWithRelation(model: FragmentsGroup, inv: InverseAttribute, expressID: number): Set<number>;
|
|
142
154
|
/**
|
|
143
155
|
* Adds relations between an entity and other entities in a BIM model.
|
|
144
156
|
*
|