mxdraw 0.1.385 → 0.1.387

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/mxdraw.d.ts CHANGED
@@ -1380,9 +1380,25 @@ declare class MxFunClass {
1380
1380
  * Mx.MxFun.addCommand("draw", ()=> {
1381
1381
  * console.log("draw")
1382
1382
  * })
1383
+ * 或
1384
+ * MxFun.addCommand("Mx_EditSystemVariable", Mx_EditSystemVariable,MxType.MxCommandFlag.MCRX_CMD_NO_RECORD_PRVCMD | MxType.MxCommandFlag.MCRX_CMD_TRANSPARENT);
1383
1385
  * ```
1384
1386
  */
1385
1387
  addCommand: (cmdName: string, fun: Function, cmdFlag?: number) => void;
1388
+ /**
1389
+ * 注册一个自定义命令返回的回调,在执行一个未知命令时,会调用该回调函数,修改到新的命令上调用。
1390
+ * @param cmdName 命令名
1391
+ * @param fun 回调函数
1392
+ * @return void
1393
+ * @example
1394
+ * ``` typescript
1395
+ * })
1396
+ * ```
1397
+ */
1398
+ registGetCustomCommandCall: (fun: (cmdName: string) => undefined | {
1399
+ cmd_name: string;
1400
+ param?: Object;
1401
+ }) => void;
1386
1402
  /**
1387
1403
  * 删除一个已经注册的命令
1388
1404
  * @param cmdName 命令名