@thatopen/components 2.2.0 → 2.2.2

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.
@@ -12,7 +12,7 @@ export interface ShadowedSceneConfig extends SimpleSceneConfig {
12
12
  };
13
13
  }
14
14
  /**
15
- * A scene that supports efficient cast shadows.
15
+ * A scene that supports efficient cast shadows. 📕 [Tutorial](https://docs.thatopen.com/Tutorials/Components/Core/ShadowedScene). 📘 [API](https://docs.thatopen.com/api/@thatopen/components/classes/ShadowedScene).
16
16
  */
17
17
  export declare class ShadowedScene extends SimpleScene implements Disposable {
18
18
  private _distanceRenderer?;
@@ -259,7 +259,7 @@ export declare class IfcPropertiesManager extends Component implements Disposabl
259
259
  * @throws Will throw an error if the attribute has a badly defined handle.
260
260
  */
261
261
  setAttributeListener(model: FragmentsGroup, expressID: number, attributeName: string): Promise<Event<String | Number | Boolean>>;
262
- private increaseMaxID;
262
+ private getNewExpressID;
263
263
  private newGUID;
264
264
  private getOwnerHistory;
265
265
  private registerChange;
@@ -0,0 +1,4 @@
1
+ import * as WEBIFC from "web-ifc";
2
+ import { IfcSchema } from "@thatopen/fragments";
3
+ import { IfcRelName } from "./types";
4
+ export declare const createIfcRel: (rel: IfcRelName, relatedID: number, relatingIDs: number[], schema?: IfcSchema) => WEBIFC.IFC4X3.IfcRelAssignsToActor | WEBIFC.IFC4X3.IfcRelAssignsToControl | WEBIFC.IFC4X3.IfcRelAssignsToGroup | WEBIFC.IFC4X3.IfcRelAssignsToProcess | WEBIFC.IFC4X3.IfcRelAssignsToProduct | WEBIFC.IFC4X3.IfcRelAssignsToResource | WEBIFC.IFC4X3.IfcRelAssociatesApproval | WEBIFC.IFC4X3.IfcRelAssociatesClassification | WEBIFC.IFC4X3.IfcRelAssociatesConstraint | WEBIFC.IFC4X3.IfcRelAssociatesDocument | WEBIFC.IFC4X3.IfcRelAssociatesLibrary | WEBIFC.IFC4X3.IfcRelAssociatesMaterial | WEBIFC.IFC4X3.IfcRelAssociatesProfileDef | null;
@@ -33,6 +33,22 @@ export type InverseAttributes = [
33
33
  "Nests"
34
34
  ];
35
35
  export type InverseAttribute = InverseAttributes[number];
36
+ export type IfcRelationNames = [
37
+ "IfcRelAssignsToActor",
38
+ "IfcRelAssignsToControl",
39
+ "IfcRelAssignsToGroup",
40
+ "IfcRelAssignsToProcess",
41
+ "IfcRelAssignsToProduct",
42
+ "IfcRelAssignsToResource",
43
+ "IfcRelAssociatesApproval",
44
+ "IfcRelAssociatesClassification",
45
+ "IfcRelAssociatesConstraint",
46
+ "IfcRelAssociatesDocument",
47
+ "IfcRelAssociatesLibrary",
48
+ "IfcRelAssociatesMaterial",
49
+ "IfcRelAssociatesProfileDef"
50
+ ];
51
+ export type IfcRelName = IfcRelationNames[number];
36
52
  /**
37
53
  * Type alias for an array of IfcRelation types from WebIfc.
38
54
  */