build-dxf 0.0.57 → 0.0.58
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 +2 -2
- package/src/DomEventRegister.js +3117 -1926
- package/src/build.d.ts +33 -0
- package/src/build.js +12327 -5002
- package/src/constants.d.ts +7 -0
- package/src/index.css +773 -1
- package/src/index.js +12 -9
- package/src/index2.js +516 -327
- package/src/index3.js +2755 -1739
- package/src/pages/Test.vue.d.ts +2 -0
- package/src/pages/buildJson.vue.d.ts +4 -0
- package/src/pages/modelCarrier/index.vue.d.ts +2 -0
- package/src/utils/Debouncing.d.ts +7 -0
- package/src/utils/DxfSystem/DxfSystem.d.ts +4 -5
- package/src/utils/DxfSystem/components/CorrectionDxf.d.ts +126 -0
- package/src/utils/DxfSystem/components/Dxf.d.ts +2 -3
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/Default.d.ts +16 -6
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/DeleteSelectLine.d.ts +2 -6
- package/src/utils/DxfSystem/plugin/Editor/components/RenderManager.d.ts +2 -2
- package/src/utils/DxfSystem/plugin/ModelDataPlugin/components/WhiteModel.d.ts +1 -1
- package/src/utils/DxfSystem/type.d.ts +4 -1
- package/src/utils/DxfSystem/utils/AxisAlignCorr.d.ts +2 -2
- package/src/utils/DxfSystem/utils/CAD.d.ts +149 -5
- package/src/utils/DxfSystem/utils/LineGroupType.d.ts +11 -0
- package/src/utils/DxfSystem/utils/getWinDrawData.d.ts +18 -0
- package/src/utils/Map.d.ts +3 -0
- package/src/utils/Point.d.ts +3 -2
- package/src/utils/Polygon.d.ts +17 -1
- package/src/utils/Rectangle.d.ts +1 -0
- package/src/utils/modelScenario/scenario.d.ts +64 -0
- package/src/utils/DxfSystem/components/AngleCorrectionDxf.d.ts +0 -13
package/src/build.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { DxfSystem } from './utils/DxfSystem';
|
|
2
|
+
import { OriginalDataItem, SetDataOption } from './utils/DxfSystem/type';
|
|
3
|
+
import { WhiteModel } from './utils/DxfSystem/plugin/ModelDataPlugin/components/WhiteModel';
|
|
2
4
|
import * as THREE from "three";
|
|
3
5
|
export { Dxf } from './utils/DxfSystem/components/Dxf';
|
|
4
6
|
export * from './utils/DxfSystem/DxfSystem';
|
|
@@ -21,6 +23,37 @@ export declare function createEditor(dom: HTMLDivElement, camera?: THREE.Camera,
|
|
|
21
23
|
correctionDxf: File;
|
|
22
24
|
}>;
|
|
23
25
|
}>;
|
|
26
|
+
/**
|
|
27
|
+
* @param originData
|
|
28
|
+
* @param trajectory
|
|
29
|
+
*/
|
|
30
|
+
export declare function getModels(originData: OriginalDataItem[], trajectory: any): Promise<{
|
|
31
|
+
obj: File;
|
|
32
|
+
glb: File;
|
|
33
|
+
gltf: File;
|
|
34
|
+
}>;
|
|
35
|
+
type HandleJsonOption = {
|
|
36
|
+
/** json数据或路径 */
|
|
37
|
+
json: string | OriginalDataItem[];
|
|
38
|
+
trajectory?: string | Record<string, any>;
|
|
39
|
+
axisAlignCorrOption?: SetDataOption;
|
|
40
|
+
download?: {
|
|
41
|
+
json?: string;
|
|
42
|
+
dxf?: string;
|
|
43
|
+
image?: string;
|
|
44
|
+
correctionJson?: string;
|
|
45
|
+
correctionDxf?: string;
|
|
46
|
+
correctionImage?: string;
|
|
47
|
+
gltf?: string;
|
|
48
|
+
glb?: string;
|
|
49
|
+
obj?: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export declare function buildJson(opt: HandleJsonOption): Promise<{
|
|
53
|
+
dxfSystem: DxfSystem;
|
|
54
|
+
threeVJia: import('./utils').Component<{}> | null;
|
|
55
|
+
whiteModel: WhiteModel | null;
|
|
56
|
+
}>;
|
|
24
57
|
/** 获取所有文件数据
|
|
25
58
|
* @param dxfSystem
|
|
26
59
|
*/
|