build-dxf 0.1.21 → 0.1.23
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 +1 -1
- package/src/DomEventRegister.js +4 -5
- package/src/build.d.ts +3 -0
- package/src/build.js +6764 -3142
- package/src/components/DragContainer.vue.d.ts +44 -0
- package/src/index.css +111 -66
- package/src/index.js +10 -10
- package/src/index2.js +0 -2
- package/src/index3.js +658 -226
- package/src/utils/DxfSystem/components/CorrectionDxf.d.ts +1 -1
- package/src/utils/DxfSystem/components/Dxf.d.ts +1 -1
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/Default.d.ts +1 -1
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/PropertiesPanel.d.ts +33 -0
- package/src/utils/DxfSystem/plugin/Editor/components/index.d.ts +1 -0
- package/src/utils/DxfSystem/plugin/Editor/pages/EditorTool.vue.d.ts +1 -4
- package/src/utils/DxfSystem/plugin/Editor/pages/PropertiesPanel.vue.d.ts +16 -0
- package/src/utils/DxfSystem/plugin/Editor/pages/components/Input.vue.d.ts +13 -0
- package/src/utils/DxfSystem/plugin/RenderPlugin/components/DomEventRegister.d.ts +1 -2
- package/src/utils/DxfSystem/type.d.ts +31 -27
- package/src/utils/DxfSystem/utils/BoundExt.d.ts +0 -4
- package/src/utils/DxfSystem/utils/BoundExt02.d.ts +46 -0
- package/src/utils/DxfSystem/utils/DoorFind.d.ts +4 -3
- package/src/utils/DxfSystem/utils/index.d.ts +1 -1
- package/src/utils/DxfSystem/utils/lineSegmentClipping.d.ts +1 -1
- package/src/utils/LineSegment.d.ts +1 -1
- package/src/utils/OBB.d.ts +30 -0
- package/src/utils/{PointCloud.d.ts → PCSparseOctree.d.ts} +2 -29
- package/src/utils/StorageHelper.d.ts +6 -0
- package/src/utils/index.d.ts +2 -0
- package/src/utils/isMobile.d.ts +1 -0
- package/src/utils/modelScenario/scenario.d.ts +2 -1
package/package.json
CHANGED
package/src/DomEventRegister.js
CHANGED
|
@@ -425,14 +425,16 @@ class DomEventRegister extends Component {
|
|
|
425
425
|
document.body.style.cursor = bodyCursor ?? "";
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
|
-
/**
|
|
429
|
-
*
|
|
428
|
+
/**
|
|
430
429
|
* @param callBack
|
|
431
430
|
*/
|
|
432
431
|
addCancelDefaultBehavior(callBack) {
|
|
433
432
|
this.cancelDefaultBehaviorList.push(callBack);
|
|
434
433
|
return this;
|
|
435
434
|
}
|
|
435
|
+
destroy() {
|
|
436
|
+
this.canceEventRecord("destory");
|
|
437
|
+
}
|
|
436
438
|
/**
|
|
437
439
|
*
|
|
438
440
|
* @param el
|
|
@@ -461,9 +463,6 @@ class DomEventRegister extends Component {
|
|
|
461
463
|
el.removeEventListener("mousedown", onMousedown);
|
|
462
464
|
};
|
|
463
465
|
}
|
|
464
|
-
destroy() {
|
|
465
|
-
this.canceEventRecord("destory");
|
|
466
|
-
}
|
|
467
466
|
}
|
|
468
467
|
export {
|
|
469
468
|
DomEventRegister as D,
|
package/src/build.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare function createEditor(dom: HTMLDivElement, camera?: THREE.Camera,
|
|
|
15
15
|
dxfSystem: DxfSystem;
|
|
16
16
|
getFileAll: () => Promise<{
|
|
17
17
|
dxf: File;
|
|
18
|
+
obj: File;
|
|
18
19
|
glb: File;
|
|
19
20
|
gltf: File;
|
|
20
21
|
json: File;
|
|
@@ -37,6 +38,7 @@ type HandleJsonOption = {
|
|
|
37
38
|
itemInfo?: string | Record<string, any>;
|
|
38
39
|
axisAlignCorr?: boolean;
|
|
39
40
|
axisAlignCorrOption?: SetDataOption;
|
|
41
|
+
doorFind?: boolean;
|
|
40
42
|
download?: {
|
|
41
43
|
json?: string;
|
|
42
44
|
dxf?: string;
|
|
@@ -59,6 +61,7 @@ export declare function buildJson(opt: HandleJsonOption): Promise<{
|
|
|
59
61
|
*/
|
|
60
62
|
export declare function getFileAll(dxfSystem?: DxfSystem): Promise<{
|
|
61
63
|
dxf: File;
|
|
64
|
+
obj: File;
|
|
62
65
|
glb: File;
|
|
63
66
|
gltf: File;
|
|
64
67
|
json: File;
|