mxdraw 0.1.146 → 0.1.148
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.d.ts
CHANGED
|
@@ -1830,6 +1830,19 @@ declare class MxDrawObject {
|
|
|
1830
1830
|
* ```
|
|
1831
1831
|
*/
|
|
1832
1832
|
getId(): number;
|
|
1833
|
+
/**
|
|
1834
|
+
* 添加鼠标键盘响应事件.
|
|
1835
|
+
* @example
|
|
1836
|
+
* ```typescript
|
|
1837
|
+
* // mousedown,touchstart,mouseup,mousemove,touchend,touchmove
|
|
1838
|
+
* //事件返回0,事件会继续传递,返回1事件不再被后续程序处理.
|
|
1839
|
+
* mxobj.addControlsEvent("touchstart",(event)=>{
|
|
1840
|
+
* return 0;
|
|
1841
|
+
* })
|
|
1842
|
+
*
|
|
1843
|
+
* ```
|
|
1844
|
+
*/
|
|
1845
|
+
addControlsEvent(type: string, call: (event: any) => number, isFront?: boolean): number;
|
|
1833
1846
|
}
|
|
1834
1847
|
|
|
1835
1848
|
/**
|