mxdraw 0.1.4 → 0.1.8

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.
@@ -1,2 +1,2 @@
1
- import McGiWorldDraw from "./McGiWorldDraw";
1
+ import McGiWorldDraw from './McGiWorldDraw';
2
2
  export default McGiWorldDraw;
@@ -1,2 +1,2 @@
1
- import McGiWorldDrawType from "./McGiWorldDrawType";
1
+ import McGiWorldDrawType from './McGiWorldDrawType';
2
2
  export default McGiWorldDrawType;
@@ -79,7 +79,7 @@ export default class MrxDbgUiPrPoint {
79
79
  * @param retcall 回调参数status {@link MrxDbgUiPrBaseReturn | 状态值}
80
80
  * @returns void
81
81
  */
82
- go(retcall: (status: MrxDbgUiPrBaseReturn) => void): void;
82
+ go(retcall?: (status: MrxDbgUiPrBaseReturn) => void): Promise<THREE.Vector3 | null>;
83
83
  /**
84
84
  * 动态拖动,连续取点,直到ESC退出。
85
85
  * @param retcall 回调参数status {@link MrxDbgUiPrBaseReturn | 状态值}
@@ -35,7 +35,7 @@ export default class MxFun {
35
35
  * })
36
36
  * ```
37
37
  */
38
- createMxObject({ canvasId, cadFile, callback, isNewFile, useWebsocket }: {
38
+ createMxObject({ canvasId, cadFile, callback, isNewFile, useWebsocket, isAutoResize }: {
39
39
  canvasId?: string;
40
40
  cadFile?: string;
41
41
  callback?: (mxDraw: MxDrawObject, dom: {
@@ -44,6 +44,7 @@ export default class MxFun {
44
44
  }) => void;
45
45
  isNewFile?: boolean;
46
46
  useWebsocket?: boolean;
47
+ isAutoResize?: boolean;
47
48
  }): void;
48
49
  /**
49
50
  * 为程序设置服务器地址
@@ -6,7 +6,6 @@ export declare type stateType = {
6
6
  MxFun: MxFunType | null;
7
7
  Mxassembly: MxassemblyType | null;
8
8
  isCreateDrawObj: boolean;
9
- isLoadCanvasResizeListene: boolean;
10
9
  };
11
10
  declare const _default: Store<unknown>;
12
11
  export default _default;
@@ -18,4 +18,5 @@ import MxDbImage from './MxModule/MxDbImage/MxDbImage';
18
18
  import MxDbSVG from './MxModule/MxDbSVG/MxDbSVG';
19
19
  import MxDbLine from './MxModule/MxDbLine/MxDbLine';
20
20
  import MxDbRect from './MxModule/MxDbRect/MxDbRect';
21
- export { MxFun, MxThreeJS, MxDrawObject, MrxDbgUiPrPoint, McEdGetPointWorldDrawObject, MrxDbgUiPrBaseReturn, loadCoreCode, useCanvasResizeListener, McGiWorldDraw, McGiWorldDrawType, MxDbEntity, MxDbImage, MxDbSVG, MxDbLine, MxDbRect };
21
+ import MxFilters from './MxModule/MxFilters/MxFilters';
22
+ export { MxFun, MxThreeJS, MxDrawObject, MrxDbgUiPrPoint, McEdGetPointWorldDrawObject, MrxDbgUiPrBaseReturn, loadCoreCode, useCanvasResizeListener, McGiWorldDraw, McGiWorldDrawType, MxDbEntity, MxFilters, MxDbImage, MxDbSVG, MxDbLine, MxDbRect };
@@ -12,12 +12,13 @@ import MxDbSVG from './MxModule/MxDbSVG';
12
12
  import MxDbLine from './MxModule/MxDbLine';
13
13
  import MxDbRect from './MxModule/MxDbRect';
14
14
  import MxDbAlignedDimension from './MxModule/MxDbAlignedDimension';
15
+ import MxFilters from './MxModule/MxFilters';
15
16
  import McGiWorldDraw from './MxModule/McGiWorldDraw';
16
17
  import McGiWorldDrawType from './MxModule/McGiWorldDrawType';
17
18
  import MxType from './MxModule/MxType';
18
19
  import Mxassembly from './MxModule/Mxassembly';
19
20
  import McGeVector3d from './MxModule/McGeVector3d';
20
- export { MxFun, Mxassembly, MxThreeJS, McEdGetPointWorldDrawObject, MrxDbgUiPrPoint, McGeVector3d, MxDbEntity, MxDbImage, MxDbLine, MxDbSVG, MxDbRect, MxDbAlignedDimension, useCanvasResizeListener, loadCoreCode, store, McGiWorldDraw, McGiWorldDrawType, MrxDbgUiPrBaseReturn, MxType };
21
+ export { MxFun, Mxassembly, MxThreeJS, McEdGetPointWorldDrawObject, MrxDbgUiPrPoint, McGeVector3d, MxDbEntity, MxFilters, MxDbImage, MxDbLine, MxDbSVG, MxDbRect, MxDbAlignedDimension, useCanvasResizeListener, loadCoreCode, store, McGiWorldDraw, McGiWorldDrawType, MrxDbgUiPrBaseReturn, MxType };
21
22
  declare const _default: {
22
23
  MxFun: import("./doc").MxFun;
23
24
  Mxassembly: import("./MxModule/Mxassembly/Mxassembly").default;
@@ -25,6 +26,7 @@ declare const _default: {
25
26
  McEdGetPointWorldDrawObject: typeof McEdGetPointWorldDrawObject;
26
27
  MrxDbgUiPrPoint: typeof MrxDbgUiPrPoint;
27
28
  MxDbEntity: typeof MxDbEntity;
29
+ MxFilters: typeof MxFilters;
28
30
  MxDbImage: typeof MxDbImage;
29
31
  MxDbLine: typeof MxDbLine;
30
32
  MxDbSVG: typeof MxDbSVG;
@@ -24,11 +24,11 @@ export interface MxCADObject {
24
24
  * */
25
25
  saveFile(file: string, retfun?: (ret: Object) => void): void;
26
26
  /**
27
- * 获取打开的文件名称
28
- * @param file 文件路径
29
- * @param retfun 保存文件后的回调函数
30
- *
31
- * */
27
+ * 获取打开的文件名称
28
+ * @param file 文件路径
29
+ * @param retfun 保存文件后的回调函数
30
+ *
31
+ * */
32
32
  getFileName(): string;
33
33
  /**
34
34
  * 获取全部图层数据
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mxdraw",
3
- "version": "0.1.4",
3
+ "version": "0.1.8",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/mxdraw.umd.js",