build-dxf 0.0.20 → 0.0.22
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/README.md +3 -0
- package/package.json +6 -4
- package/src/build.d.ts +6 -0
- package/src/build.js +1432 -1916
- package/src/index.css +1 -641
- package/src/index.js +7 -7
- package/src/index2.js +327 -528
- package/src/index3.js +2049 -1736
- package/src/selectLocalFile.js +1960 -3145
- package/src/utils/CommandManager/CommandFlow.d.ts +17 -0
- package/src/utils/CommandManager/CommandManager.d.ts +23 -0
- package/src/utils/DxfSystem/components/AngleCorrectionDxf.d.ts +13 -0
- package/src/utils/DxfSystem/components/Dxf.d.ts +36 -5
- package/src/utils/DxfSystem/components/LineAnalysis.d.ts +3 -1
- package/src/utils/DxfSystem/index.d.ts +2 -0
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/ClippingLine.d.ts +45 -0
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/CommandFlowComponent.d.ts +15 -1
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/ConnectionLine.d.ts +33 -0
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/Default.d.ts +2 -26
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/DeleteSelectLine.d.ts +28 -0
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/DeleteSelectWindow.d.ts +33 -0
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/DrawDoorLine.d.ts +22 -4
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/DrawLine.d.ts +20 -4
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/DrawWindow.d.ts +25 -2
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/IntersectionConnectionLine.d.ts +33 -0
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/MergeLine.d.ts +33 -0
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/PointDrag.d.ts +14 -1
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/SelectAll.d.ts +30 -0
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/VerticalCorrection.d.ts +75 -0
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/VerticalReferenceLine.d.ts +21 -0
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/ViewAngle.d.ts +21 -0
- package/src/utils/DxfSystem/plugin/Editor/components/Editor.d.ts +4 -1
- package/src/utils/DxfSystem/plugin/Editor/components/RenderManager.d.ts +4 -1
- package/src/utils/DxfSystem/plugin/Editor/components/index.d.ts +1 -0
- package/src/utils/DxfSystem/plugin/RenderPlugin/components/Renderer.d.ts +3 -0
- package/src/utils/PointVirtualGrid/index.d.ts +8 -0
- package/src/utils/Quadtree/LineSegment.d.ts +34 -2
- package/src/utils/Quadtree/Point.d.ts +9 -2
- package/src/utils/Quadtree/Quadtree.d.ts +1 -1
- package/src/utils/deepClone.d.ts +6 -0
package/README.md
CHANGED
|
@@ -31,6 +31,9 @@ detailsPoint.addEventListener("handleSuccess", () => {
|
|
|
31
31
|
// 下载白模,gltf或glb格式, 第二个参数为true时是glb,默认为true
|
|
32
32
|
whiteModel.downloadGltf("001.glb", true)
|
|
33
33
|
|
|
34
|
+
// 下载为图片
|
|
35
|
+
dxfSystem.AngleCorrectionDxf.downloadImage("001.jpg")
|
|
36
|
+
|
|
34
37
|
// desPoints 为射线点集合,根据需要使用
|
|
35
38
|
console.log("handleSuccess", detailsPoint.desPoints)
|
|
36
39
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "build-dxf",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"description": "线段构建双线墙壁的dxf版本",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
@@ -33,12 +33,14 @@
|
|
|
33
33
|
},
|
|
34
34
|
"style": "src/index.css",
|
|
35
35
|
"dependencies": {
|
|
36
|
+
"@tweenjs/tween.js": ">=25.0.0",
|
|
37
|
+
"build-dxf": "^0.0.20-21",
|
|
36
38
|
"clipper-lib": ">=6.4.2",
|
|
37
39
|
"dxf-writer": ">=1.18.4",
|
|
38
|
-
"
|
|
40
|
+
"obj2gltf": ">=3.1.6",
|
|
39
41
|
"vue": ">=3.0.0",
|
|
40
|
-
"
|
|
42
|
+
"canvas": "^3.2.0"
|
|
41
43
|
},
|
|
42
44
|
"author": "夏过初秋",
|
|
43
45
|
"license": "ISC"
|
|
44
|
-
}
|
|
46
|
+
}
|
package/src/build.d.ts
CHANGED
|
@@ -14,6 +14,9 @@ export declare function createEditor(dom: HTMLDivElement, camera?: THREE.Camera,
|
|
|
14
14
|
obj: File;
|
|
15
15
|
glb: File;
|
|
16
16
|
gltf: File;
|
|
17
|
+
json: File;
|
|
18
|
+
jpg: File;
|
|
19
|
+
correctionDxf: File;
|
|
17
20
|
}>;
|
|
18
21
|
}>;
|
|
19
22
|
/**
|
|
@@ -25,6 +28,9 @@ export declare function getFileAll(dxfSystem?: DxfSystem): Promise<{
|
|
|
25
28
|
obj: File;
|
|
26
29
|
glb: File;
|
|
27
30
|
gltf: File;
|
|
31
|
+
json: File;
|
|
32
|
+
jpg: File;
|
|
33
|
+
correctionDxf: File;
|
|
28
34
|
}>;
|
|
29
35
|
/** 获取全局DxfSystem
|
|
30
36
|
* @returns
|