mxdraw 0.1.46 → 0.1.47
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/MxDrawObject/MxDrawObject.js +1 -1
- package/dist/lib/MxModule/loadCoreCode/loadCoreCode.js +1 -1
- package/dist/lib/MxModule/loadCoreCode/mxfun.es5.js +1 -1
- package/dist/mxdraw.es5.js +1 -1
- package/dist/mxdraw.umd.js +1 -1
- package/dist/types/MxModule/MxDrawObject/MxDrawObject.d.ts +20 -0
- package/package.json +1 -1
|
@@ -297,6 +297,26 @@ export default class MxDrawObject {
|
|
|
297
297
|
* ```
|
|
298
298
|
*/
|
|
299
299
|
addEvent(eventNaem: string, fun: (...parmes: any) => any): void;
|
|
300
|
+
/**
|
|
301
|
+
* 控件对象的事件监听
|
|
302
|
+
* @param eventNaem 事件名称
|
|
303
|
+
* @param fun 回调函数
|
|
304
|
+
* @returns void
|
|
305
|
+
* @example
|
|
306
|
+
* ```typescript
|
|
307
|
+
* Mx.MxFun.getCurrentDraw().on("addResizeEvent", ()=> {})
|
|
308
|
+
* Mx.MxFun.getCurrentDraw().on("viewchange", ()=> {})
|
|
309
|
+
* 图纸加载完成
|
|
310
|
+
* Mx.MxFun.getCurrentDraw().on("loadComplete", ()=> {})
|
|
311
|
+
* 视区重绘事件.
|
|
312
|
+
* Mx.MxFun.getCurrentDraw().on("render", (renderer)=> {})
|
|
313
|
+
* 视区大小被修改事件.,viewsize={viewWidth:viewWidth,viewHeight:viewHeight}
|
|
314
|
+
* Mx.MxFun.getCurrentDraw().on("viewsizechange", (viewsize)=> {})
|
|
315
|
+
* 实体选择状态发生改变的事件.
|
|
316
|
+
* Mx.MxFun.getCurrentDraw().on("MxEntitySelectChange", (aryId:Array<number>)=> {})
|
|
317
|
+
* ```
|
|
318
|
+
*/
|
|
319
|
+
on(eventNaem: string, fun: (...parmes: any) => any): void;
|
|
300
320
|
/**
|
|
301
321
|
* INI设置
|
|
302
322
|
* @param options { EnableOsnapFunction: boolean; }
|