@thatopen/components 2.4.1 → 2.4.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/core/Components/index.d.ts +1 -1
- package/dist/index.cjs +897 -66
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.mjs +3 -3
- package/dist/index.mjs +897 -66
- package/dist/namespace.d.ts +4092 -4061
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/section-generator.d.ts +31 -0
- package/package.json +6 -4
package/dist/utils/index.d.ts
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
import { Component } from "../core";
|
|
3
|
+
export declare class SectionGenerator extends Component {
|
|
4
|
+
/**
|
|
5
|
+
* A unique identifier for the component.
|
|
6
|
+
* This UUID is used to register the component within the Components system.
|
|
7
|
+
*/
|
|
8
|
+
static readonly uuid: "1a193b87-6376-46c8-9e65-62a1576fdb64";
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
private _inverseMatrix;
|
|
11
|
+
private _localPlane;
|
|
12
|
+
private _tempLine;
|
|
13
|
+
private _tempVector;
|
|
14
|
+
private _plane?;
|
|
15
|
+
private _plane2DCoordinateSystem;
|
|
16
|
+
private _precission;
|
|
17
|
+
private _planeAxis?;
|
|
18
|
+
get plane(): THREE.Plane;
|
|
19
|
+
set plane(plane: THREE.Plane);
|
|
20
|
+
createEdges(data: {
|
|
21
|
+
meshes: THREE.Mesh[];
|
|
22
|
+
posAttr: THREE.BufferAttribute;
|
|
23
|
+
}): {
|
|
24
|
+
indexes: number[];
|
|
25
|
+
index: number;
|
|
26
|
+
};
|
|
27
|
+
createFills(buffer: Float32Array, trianglesIndices: number[]): number[];
|
|
28
|
+
private computeFill;
|
|
29
|
+
private updatePlane2DCoordinateSystem;
|
|
30
|
+
private shapecast;
|
|
31
|
+
}
|
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": "2.4.
|
|
4
|
+
"version": "2.4.3",
|
|
5
5
|
"author": "That Open Company",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Antonio Gonzalez Viegas (https://github.com/agviegas)",
|
|
@@ -38,14 +38,16 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@thatopen/fragments": "~2.4.0",
|
|
41
|
-
"@thatopen/ui": "~2.
|
|
41
|
+
"@thatopen/ui": "~2.4.0",
|
|
42
|
+
"@types/earcut": "2.1.4",
|
|
42
43
|
"@types/three": "0.160.0",
|
|
43
44
|
"stats.js": "^0.17.0",
|
|
44
45
|
"three": "^0.160.1",
|
|
45
|
-
"web-ifc": "0.0.
|
|
46
|
+
"web-ifc": "0.0.66"
|
|
46
47
|
},
|
|
47
48
|
"dependencies": {
|
|
48
49
|
"camera-controls": "2.7.3",
|
|
50
|
+
"earcut": "2.2.4",
|
|
49
51
|
"fast-xml-parser": "4.4.1",
|
|
50
52
|
"jszip": "3.10.1",
|
|
51
53
|
"three-mesh-bvh": "0.7.0"
|
|
@@ -53,6 +55,6 @@
|
|
|
53
55
|
"peerDependencies": {
|
|
54
56
|
"@thatopen/fragments": "~2.4.0",
|
|
55
57
|
"three": "^0.160.1",
|
|
56
|
-
"web-ifc": "0.0.
|
|
58
|
+
"web-ifc": "0.0.66"
|
|
57
59
|
}
|
|
58
60
|
}
|