mxdraw 0.1.145 → 0.1.147
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
|
@@ -1687,7 +1687,7 @@ declare class MxDrawObject {
|
|
|
1687
1687
|
*/
|
|
1688
1688
|
resetRenderer(): any;
|
|
1689
1689
|
/**
|
|
1690
|
-
*
|
|
1690
|
+
* 设置服务器发送文件请求时,需要带的参数.注意:带参数后,可能会出现跨域访问失败
|
|
1691
1691
|
* @return
|
|
1692
1692
|
* @example
|
|
1693
1693
|
* ``` typescript
|
|
@@ -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
|
/**
|