mxdraw 0.1.65 → 0.1.68

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,10 +1,10 @@
1
1
  import MxDrawObject from '../MxDrawObject';
2
2
  import { MeshLambertMaterial } from 'three';
3
3
  import MxDbEntity from '../MxDbEntity';
4
- import mxUiData from '../loadCoreCode/mxUiData';
5
4
  import { MxDrawObjectType } from '../MxDrawObject/MxDrawObject';
6
5
  import MxDbDatabase from '../MxDbDatabase';
7
6
  import MxCADObject from '../MxCADObject';
7
+ declare let mxUiData: import("../loadCoreCode/mxUiData").MxVueInterface;
8
8
  interface CanvasParent extends HTMLElement {
9
9
  tabindex?: number;
10
10
  }
@@ -17,7 +17,7 @@ export interface MxFunType {
17
17
  setMxServer(MXSERVER: string): void;
18
18
  addCommand(cmdName: string, fun: Function): void;
19
19
  sendStringToExecute(sCmd: string, ...params: any[]): boolean;
20
- call(cmd: string, param: any, retfun?: Function): void;
20
+ call(cmd: string, param?: any, retfun?: Function): void;
21
21
  getCurrentDraw(): MxDrawObjectType;
22
22
  screenCoordLong2World(len: number): number;
23
23
  screenCoordLong2Doc(len: number): number;
@@ -166,7 +166,7 @@ export default class MxFun {
166
166
  * })
167
167
  * ```
168
168
  */
169
- call(funName: string, param: any, retfun?: Function): void;
169
+ call(funName: string, param?: any, retfun?: Function): void;
170
170
  /**
171
171
  * 获取当前绘图控件对象
172
172
  * @return MxDrawObjectType 当前绘图控件对象
@@ -452,6 +452,15 @@ export default class MxFun {
452
452
  * ```
453
453
  */
454
454
  initUiDataObject(uiDataObj: typeof mxUiData): void;
455
+ /**
456
+ * 获取UI数据对象
457
+ * @param uiDataObj
458
+ * @return mxUiData
459
+ * @example
460
+ * ``` typescript
461
+ * ```
462
+ */
463
+ getUIData(): import("../loadCoreCode/mxUiData").MxVueInterface;
455
464
  /**
456
465
  * 梦想开发测试
457
466
  * @param p
@@ -1,4 +1,5 @@
1
1
  declare class MxVueComandLine {
2
+ [x: string]: any;
2
3
  msCmdText: string;
3
4
  msCmdDisplay: string;
4
5
  msCmdTip: string;
@@ -23,6 +24,7 @@ declare class MxVueComandLine {
23
24
  getCmdTip: () => string;
24
25
  }
25
26
  declare class MxDynamicInput {
27
+ [x: string]: any;
26
28
  mType: number;
27
29
  mPos: number[];
28
30
  mTip: string;
@@ -61,6 +63,7 @@ declare class MxDynamicInput {
61
63
  } | undefined;
62
64
  }
63
65
  export declare class MxVueInterface {
66
+ [x: string]: any;
64
67
  mSetCoordFun: ((coordTip: string) => void) | undefined;
65
68
  mUpdateCursorFun: ((cursorType: string) => void) | undefined;
66
69
  mOnKeydownEvent: ((arg0: any) => void) | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mxdraw",
3
- "version": "0.1.65",
3
+ "version": "0.1.68",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/mxdraw.umd.js",