mxdraw 0.1.16 → 0.1.17

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.
@@ -490,6 +490,11 @@ export default class MxFun {
490
490
  * @param msCmdText 用户输入的数据 input输入框输入的文本信息
491
491
  * @param keyCode 按键Code input输入框的onKeydown事件的event事件对象的keyCode属性
492
492
  * */
493
- setCommandLineInputData(msCmdText: string, keyCode: string): void;
493
+ setCommandLineInputData(msCmdText: string, keyCode: number): void;
494
+ /**
495
+ * 监听指针(鼠标光标)移动变化的坐标信息
496
+ * @parma callback 回调函数中返回坐标信息
497
+ * */
498
+ listenForCoordTip(callback: (coordTip: string) => {}): void;
494
499
  }
495
500
  export {};
@@ -61,7 +61,7 @@ declare class MxDynamicInput {
61
61
  } | undefined;
62
62
  }
63
63
  export declare class MxVueInterface {
64
- mSetCoordFun: ((arg0: any) => void) | undefined;
64
+ mSetCoordFun: ((coordTip: string) => {}) | undefined;
65
65
  mUpdateCursorFun: (() => void) | undefined;
66
66
  mOnKeydownEvent: ((arg0: any) => void) | undefined;
67
67
  mCursorType: string;
@@ -81,10 +81,10 @@ export declare class MxVueInterface {
81
81
  mTitleButtonBarData: any;
82
82
  mLayerComboxData: any;
83
83
  mColorComboxData: any;
84
- mountSetCoordFun: (fun: ((arg0: any) => void) | undefined) => void;
84
+ mountSetCoordFun: (fun: ((coordTip: string) => {}) | undefined) => void;
85
85
  mountUpdateCursorFun: (fun: (() => void) | undefined) => void;
86
86
  mountKeydownEvent: (fun: ((arg0: any) => void) | undefined) => void;
87
- onKeydown: (keyCode: any) => void;
87
+ onKeydown: (keyCode: number) => void;
88
88
  setTipCoord: (str: any) => void;
89
89
  getCursorType: () => string;
90
90
  setCursorType: (curtype: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mxdraw",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/mxdraw.umd.js",