mxdraw 0.1.2 → 0.1.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/lib/MxModule/McGeVector3d/McGeVector3d.js +2 -0
- package/dist/lib/MxModule/McGeVector3d/index.js +3 -0
- package/dist/lib/MxModule/MxDbAlignedDimension/MxDbAlignedDimension.js +213 -0
- package/dist/lib/MxModule/MxDbAlignedDimension/index.js +5 -0
- package/dist/lib/MxModule/MxDbEntity/MxDbEntity.js +45 -19
- package/dist/lib/MxModule/MxDbImage/MxDbImage.js +150 -0
- package/dist/lib/MxModule/MxDbImage/index.js +5 -0
- package/dist/lib/MxModule/MxDbSVG/MxDbSVG.js +208 -0
- package/dist/lib/MxModule/MxDbSVG/index.js +5 -0
- package/dist/lib/MxModule/MxDrawObject/MxDrawObject.js +41 -44
- package/dist/lib/MxModule/MxFun/MxFun.js +66 -29
- package/dist/lib/MxModule/MxThreeJS/MxThreeJS.js +6 -1
- package/dist/lib/MxModule/MxThreeJS/MxThreeJS.mixin.js +2 -2
- package/dist/lib/MxModule/MxThreeJS/SVGLoader.js +4 -4
- package/dist/lib/MxModule/Mxassembly/Mxassembly.js +18 -0
- package/dist/lib/MxModule/Mxassembly/index.js +9 -0
- package/dist/lib/MxModule/loadCoreCode/loadCoreCode.js +14 -0
- package/dist/lib/MxModule/loadCoreCode/mxcadassembly_es5.js +1519 -0
- package/dist/lib/MxModule/loadCoreCode/mxfun.es5.js +83 -80
- package/dist/lib/MxModule/store/store.js +1 -0
- package/dist/lib/mxdraw.js +15 -2
- package/dist/lib/types/Mxassembly.js +2 -0
- package/dist/mxdraw.es5.js +3 -3
- package/dist/mxdraw.es5.js.map +1 -1
- package/dist/mxdraw.umd.js +3 -3
- package/dist/mxdraw.umd.js.map +1 -1
- package/dist/types/MxModule/McGeVector3d/McGeVector3d.d.ts +17 -0
- package/dist/types/MxModule/McGeVector3d/index.d.ts +3 -0
- package/dist/types/MxModule/McGiWorldDraw/McGiWorldDraw.d.ts +61 -65
- package/dist/types/MxModule/MxDbAlignedDimension/MxDbAlignedDimension.d.ts +21 -0
- package/dist/types/MxModule/MxDbAlignedDimension/index.d.ts +3 -0
- package/dist/types/MxModule/MxDbEntity/MxDbEntity.d.ts +46 -25
- package/dist/types/MxModule/MxDbImage/MxDbImage.d.ts +28 -0
- package/dist/types/MxModule/MxDbImage/index.d.ts +3 -0
- package/dist/types/MxModule/MxDbSVG/MxDbSVG.d.ts +42 -0
- package/dist/types/MxModule/MxDbSVG/index.d.ts +3 -0
- package/dist/types/MxModule/MxDrawObject/MxDrawObject.d.ts +38 -39
- package/dist/types/MxModule/MxFun/MxFun.d.ts +57 -26
- package/dist/types/MxModule/MxThreeJS/MxThreeJS.d.ts +2 -2
- package/dist/types/MxModule/MxType/index.d.ts +1 -1
- package/dist/types/MxModule/Mxassembly/Mxassembly.d.ts +11 -0
- package/dist/types/MxModule/Mxassembly/index.d.ts +3 -0
- package/dist/types/MxModule/loadCoreCode/mxcadassembly_es5.d.ts +1 -0
- package/dist/types/MxModule/store/store.d.ts +2 -0
- package/dist/types/mxdraw.d.ts +11 -1
- package/dist/types/types/MxDrawObject.d.ts +2 -2
- package/dist/types/types/MxFun.d.ts +7 -4
- package/dist/types/types/Mxassembly.d.ts +3 -0
- package/package.json +3 -3
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { MxFunType } from '../../types/MxFun';
|
|
2
|
+
import { MxassemblyType } from '../../types/Mxassembly';
|
|
2
3
|
import Store from './StoreClass';
|
|
3
4
|
export declare type stateType = {
|
|
4
5
|
[x: string]: any;
|
|
5
6
|
MxFun: MxFunType | null;
|
|
7
|
+
Mxassembly: MxassemblyType | null;
|
|
6
8
|
isCreateDrawObj: boolean;
|
|
7
9
|
isLoadCanvasResizeListene: boolean;
|
|
8
10
|
};
|
package/dist/types/mxdraw.d.ts
CHANGED
|
@@ -7,17 +7,27 @@ import McEdGetPointWorldDrawObject from './MxModule/McEdGetPointWorldDrawObject'
|
|
|
7
7
|
import useCanvasResizeListener from './MxModule/useCanvasResizeListener';
|
|
8
8
|
import MrxDbgUiPrBaseReturn from './MxModule/MrxDbgUiPrBaseReturn';
|
|
9
9
|
import MxDbEntity from './MxModule/MxDbEntity';
|
|
10
|
+
import MxDbImage from './MxModule/MxDbImage';
|
|
11
|
+
import MxDbSVG from './MxModule/MxDbSVG';
|
|
12
|
+
import MxDbAlignedDimension from './MxModule/MxDbAlignedDimension';
|
|
10
13
|
import McGiWorldDraw from './MxModule/McGiWorldDraw';
|
|
11
14
|
import McGiWorldDrawType from './MxModule/McGiWorldDrawType';
|
|
12
15
|
import MxType from './MxModule/MxType';
|
|
16
|
+
import MxassemblyModule from './MxModule/Mxassembly/Mxassembly';
|
|
17
|
+
import McGeVector3d from './MxModule/McGeVector3d';
|
|
13
18
|
declare const MxFun: MxFunModule;
|
|
14
|
-
|
|
19
|
+
declare const Mxassembly: MxassemblyModule;
|
|
20
|
+
export { MxFun, Mxassembly, MxThreeJS, McEdGetPointWorldDrawObject, MrxDbgUiPrPoint, McGeVector3d, MxDbEntity, MxDbImage, MxDbSVG, MxDbAlignedDimension, useCanvasResizeListener, loadCoreCode, store, McGiWorldDraw, McGiWorldDrawType, MrxDbgUiPrBaseReturn, MxType };
|
|
15
21
|
declare const _default: {
|
|
16
22
|
MxFun: MxFunModule;
|
|
23
|
+
Mxassembly: MxassemblyModule;
|
|
17
24
|
MxThreeJS: import("./doc").MxThreeJS;
|
|
18
25
|
McEdGetPointWorldDrawObject: typeof McEdGetPointWorldDrawObject;
|
|
19
26
|
MrxDbgUiPrPoint: typeof MrxDbgUiPrPoint;
|
|
20
27
|
MxDbEntity: typeof MxDbEntity;
|
|
28
|
+
MxDbImage: typeof MxDbImage;
|
|
29
|
+
MxDbSVG: typeof MxDbSVG;
|
|
30
|
+
MxDbAlignedDimension: typeof MxDbAlignedDimension;
|
|
21
31
|
useCanvasResizeListener: typeof useCanvasResizeListener;
|
|
22
32
|
loadCoreCode: typeof loadCoreCode;
|
|
23
33
|
store: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import MxDbEntity from
|
|
1
|
+
import MxDbEntity from '../MxModule/MxDbEntity';
|
|
2
2
|
export interface MxDrawObjectType {
|
|
3
3
|
renderer: THREE.WebGLRenderer;
|
|
4
4
|
addEvent(arg0: string, arg1: (...parmes: any) => any): void;
|
|
@@ -41,7 +41,7 @@ export interface MxDrawObjectType {
|
|
|
41
41
|
addMxCurrentSelect(id: number): void;
|
|
42
42
|
clearMxCurrentSelect(): boolean;
|
|
43
43
|
getMxEntityUserObject(id: number): MxDbEntity;
|
|
44
|
-
findMxEntityAtPoint(ptMouse: THREE.Vector3
|
|
44
|
+
findMxEntityAtPoint(ptMouse: THREE.Vector3): Array<MxDbEntity>;
|
|
45
45
|
setMouseMiddlePan(isPan: boolean): void;
|
|
46
46
|
resetThreeJSControls(): void;
|
|
47
47
|
getAllMxEntity(): Array<MxDbEntity>;
|
|
@@ -9,14 +9,16 @@ export interface MxFunType {
|
|
|
9
9
|
call(cmd: string, param: any, retfun?: Function): void;
|
|
10
10
|
getCurrentDraw(): MxDrawObjectType;
|
|
11
11
|
screenCoordLong2World(len: number): number;
|
|
12
|
+
screenCoordLong2Doc(len: number): number;
|
|
12
13
|
worldCoordLong2Doc(len: number): number;
|
|
13
14
|
docCoordLong2World(len: number): number;
|
|
15
|
+
docCoordLong2Screen(len: number): number;
|
|
14
16
|
screenCoord2World(x: number | THREE.Vector3, y?: number, z?: number): THREE.Vector3;
|
|
15
17
|
worldCoord2Screen(x: number | THREE.Vector3, y?: number, z?: number): THREE.Vector3;
|
|
16
|
-
docCoord2World(x: number, y
|
|
17
|
-
worldCoord2Doc(x: number, y
|
|
18
|
-
screenCoord2Doc(x: number, y
|
|
19
|
-
docCoord2Screen(x: number, y
|
|
18
|
+
docCoord2World(x: number | THREE.Vector3, y?: number, z?: number): THREE.Vector3;
|
|
19
|
+
worldCoord2Doc(x: number | THREE.Vector3, y?: number, z?: number): THREE.Vector3;
|
|
20
|
+
screenCoord2Doc(x: number | THREE.Vector3, y?: number, z?: number): THREE.Vector3;
|
|
21
|
+
docCoord2Screen(x: number | THREE.Vector3, y?: number, z?: number): THREE.Vector3;
|
|
20
22
|
updateDisplay(): void;
|
|
21
23
|
addWindowsEvent(fun: (type: string, event: any) => number): void;
|
|
22
24
|
isRunningCommand(): boolean;
|
|
@@ -34,4 +36,5 @@ export interface MxFunType {
|
|
|
34
36
|
pointInPolyline(pt: THREE.Vector3, vecPolyline: Array<THREE.Vector3>): boolean;
|
|
35
37
|
calcArea(aryPoint: Array<THREE.Vector3>): number;
|
|
36
38
|
initMxDbEntityType(userObject: any): void;
|
|
39
|
+
openFile(sFile: string): boolean;
|
|
37
40
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mxdraw",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"main": "dist/mxdraw.umd.js",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@types/node": "^10.11.0",
|
|
82
82
|
"@types/offscreencanvas": "^2019.6.4",
|
|
83
83
|
"babel-jest": "^27.4.2",
|
|
84
|
-
"babel-loader": "^8.2.
|
|
84
|
+
"babel-loader": "^8.2.3",
|
|
85
85
|
"babel-plugin-component": "^1.1.1",
|
|
86
86
|
"babel-plugin-import": "^1.13.3",
|
|
87
87
|
"babel-plugin-lodash": "^3.3.4",
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"vue-loader": "^15.9.8",
|
|
137
137
|
"vue-style-loader": "^4.1.3",
|
|
138
138
|
"vue-template-compiler": "^2.6.14",
|
|
139
|
-
"webpack": "^5.
|
|
139
|
+
"webpack": "^5.64.4",
|
|
140
140
|
"webpack-dev-middleware": "^5.2.2",
|
|
141
141
|
"webpack-hot-middleware": "^2.25.1"
|
|
142
142
|
},
|