build-dxf 0.1.129 → 0.1.131
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/package.json +49 -50
- package/src/build.js +3 -3
package/package.json
CHANGED
|
@@ -1,50 +1,49 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "build-dxf",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "./src/index.js",
|
|
6
|
-
"types": "./src/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
-
},
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"import": {
|
|
13
|
-
"types": "./src/build.d.ts",
|
|
14
|
-
"default": "./src/index.js",
|
|
15
|
-
"style": "./src/index.css"
|
|
16
|
-
},
|
|
17
|
-
"require": {
|
|
18
|
-
"types": "./src/build.d.ts",
|
|
19
|
-
"default": "./src/index.js"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"./RenderPlugin": {
|
|
23
|
-
"import": {
|
|
24
|
-
"types": "./src/utils/DxfSystem/plugin/RenderPlugin/index.d.ts",
|
|
25
|
-
"default": "./src/index2.js"
|
|
26
|
-
},
|
|
27
|
-
"require": {
|
|
28
|
-
"types": "./src/index.d.ts",
|
|
29
|
-
"default": "./src/index2.js"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"./index.css": "./src/index.css"
|
|
33
|
-
},
|
|
34
|
-
"style": "src/index.css",
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"@tweenjs/tween.js": ">=25.0.0",
|
|
37
|
-
"clipper-lib": ">=6.4.2",
|
|
38
|
-
"dxf-writer": ">=1.18.4",
|
|
39
|
-
"vue": ">=3.0.0",
|
|
40
|
-
"canvas": "3.2.0",
|
|
41
|
-
"three-mesh-bvh": "^0.6.6",
|
|
42
|
-
"three-bvh-csg": ">=0.0.17",
|
|
43
|
-
"three-csg-ts": ">=3.2.0",
|
|
44
|
-
"three": ">=0.181.0",
|
|
45
|
-
"node-three-gltf": "2.1.0"
|
|
46
|
-
},
|
|
47
|
-
"author": "夏过初秋",
|
|
48
|
-
"license": "UNLICENSED"
|
|
49
|
-
}
|
|
50
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "build-dxf",
|
|
3
|
+
"version": "0.1.131",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "./src/index.js",
|
|
6
|
+
"types": "./src/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
+
},
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": {
|
|
13
|
+
"types": "./src/build.d.ts",
|
|
14
|
+
"default": "./src/index.js",
|
|
15
|
+
"style": "./src/index.css"
|
|
16
|
+
},
|
|
17
|
+
"require": {
|
|
18
|
+
"types": "./src/build.d.ts",
|
|
19
|
+
"default": "./src/index.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"./RenderPlugin": {
|
|
23
|
+
"import": {
|
|
24
|
+
"types": "./src/utils/DxfSystem/plugin/RenderPlugin/index.d.ts",
|
|
25
|
+
"default": "./src/index2.js"
|
|
26
|
+
},
|
|
27
|
+
"require": {
|
|
28
|
+
"types": "./src/index.d.ts",
|
|
29
|
+
"default": "./src/index2.js"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"./index.css": "./src/index.css"
|
|
33
|
+
},
|
|
34
|
+
"style": "src/index.css",
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@tweenjs/tween.js": ">=25.0.0",
|
|
37
|
+
"clipper-lib": ">=6.4.2",
|
|
38
|
+
"dxf-writer": ">=1.18.4",
|
|
39
|
+
"vue": ">=3.0.0",
|
|
40
|
+
"canvas": "3.2.0",
|
|
41
|
+
"three-mesh-bvh": "^0.6.6",
|
|
42
|
+
"three-bvh-csg": ">=0.0.17",
|
|
43
|
+
"three-csg-ts": ">=3.2.0",
|
|
44
|
+
"three": ">=0.181.0",
|
|
45
|
+
"node-three-gltf": "2.1.0"
|
|
46
|
+
},
|
|
47
|
+
"author": "夏过初秋",
|
|
48
|
+
"license": "UNLICENSED"
|
|
49
|
+
}
|
package/src/build.js
CHANGED
|
@@ -10791,7 +10791,7 @@ function innerWallLine(lines, trajectory2) {
|
|
|
10791
10791
|
const lud = new LineSegmentUndirectedGraph(option.lines), temLine = new LineSegment();
|
|
10792
10792
|
let singleLine = [];
|
|
10793
10793
|
const wallWidths = [];
|
|
10794
|
-
lud.forEachPathLine((start, end,
|
|
10794
|
+
lud.forEachPathLine((start, end, _line, index2, endType, indxeList) => {
|
|
10795
10795
|
temLine.start.copy(start);
|
|
10796
10796
|
temLine.end.copy(end);
|
|
10797
10797
|
const wallWidth = DEFAULT_WALL_WIDTH;
|
|
@@ -22149,8 +22149,8 @@ class SceneAutoGenerat {
|
|
|
22149
22149
|
}
|
|
22150
22150
|
static itemParse(item) {
|
|
22151
22151
|
const contourData = item.quadContour ?? item.contour;
|
|
22152
|
-
if (!Array.isArray(contourData) || contourData.length) return null;
|
|
22153
|
-
const contour = Point.fromByList(contourData), rectangle = new Polygon(Qa(contour.map((p2) => [p2.x, p2.y])).map((p2) => Point.from(p2)));
|
|
22152
|
+
if (!Array.isArray(contourData) || !contourData.length) return null;
|
|
22153
|
+
const contour = Point.fromByList(contourData ?? []), rectangle = new Polygon(Qa(contour.map((p2) => [p2.x, p2.y])).map((p2) => Point.from(p2)));
|
|
22154
22154
|
rectangle.pop();
|
|
22155
22155
|
const z = item.box.min.z, height = Math.abs(item.box.max.z - z), max = rectangle.getMaxLengthInfo(), min = rectangle.getMinLengthInfo(), direction = max.start.y < max.end.y ? max.start.directionFrom(max.end) : max.end.directionFrom(max.start), shape = new THREE.Shape();
|
|
22156
22156
|
rectangle.forEach((p2, i) => {
|