bimatter-viewer-react 1.0.2 → 1.0.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.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Scene, Vector3, type Camera } from "three";
|
|
2
|
-
import { type
|
|
2
|
+
import { type IfcElementCreationType } from "./createElements";
|
|
3
3
|
export type ElementCreationPreviewState = {
|
|
4
4
|
height: number;
|
|
5
5
|
points: Vector3[];
|
|
6
|
-
type:
|
|
6
|
+
type: IfcElementCreationType;
|
|
7
7
|
width: number;
|
|
8
8
|
};
|
|
9
9
|
export declare class ElementCreationPreview {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { BufferGeometry } from "three";
|
|
2
|
-
import type { BmtElementProps, BmtGeomData, BmtModelData, BmtModelStructure, BmtModelStructureNode } from "../../Loaders/BmtLoader";
|
|
3
|
-
export type IfcElementType =
|
|
4
|
-
export type
|
|
2
|
+
import type { BmtElementProps, BmtGeomData, BmtModelData, BmtModelStructure, BmtModelStructureNode, BmtPropertyValue } from "../../Loaders/BmtLoader";
|
|
3
|
+
export type IfcElementType = `Ifc${string}`;
|
|
4
|
+
export type IfcElementCreationType = "IfcWall" | "IfcSlab";
|
|
5
|
+
export type BmtElementType = IfcElementType;
|
|
5
6
|
export type IfcElementQuantities = Record<string, {
|
|
6
7
|
kind: "length" | "area" | "volume";
|
|
7
8
|
value: number;
|
|
8
9
|
}>;
|
|
10
|
+
export type IfcElementCreationProps = Record<string, Record<string, BmtPropertyValue>>;
|
|
9
11
|
export type CreatedBmtElement = {
|
|
10
12
|
geometry: BmtGeomData;
|
|
11
13
|
props: BmtElementProps;
|
|
@@ -14,6 +16,7 @@ export type CreatedBmtElement = {
|
|
|
14
16
|
export type CreateIfcElementOptions = {
|
|
15
17
|
coordinationMatrix?: string;
|
|
16
18
|
name?: string;
|
|
19
|
+
props?: IfcElementCreationProps;
|
|
17
20
|
quantities?: IfcElementQuantities;
|
|
18
21
|
};
|
|
19
22
|
export declare function createIfcGuid(): string;
|