mxdraw 0.1.363 → 0.1.365

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
@@ -1383,6 +1383,16 @@ declare class MxFunClass {
1383
1383
  * ```
1384
1384
  */
1385
1385
  addCommand: (cmdName: string, fun: Function, cmdFlag?: number) => void;
1386
+ /**
1387
+ * 删除一个已经注册的命令
1388
+ * @param cmdName 命令名
1389
+ * @return void
1390
+ * @example
1391
+ * ``` typescript
1392
+ * })
1393
+ * ```
1394
+ */
1395
+ removeCommand: (cmdName: string) => void;
1386
1396
  /**
1387
1397
  * 执行命令
1388
1398
  * @param cmdName 命令名
@@ -1929,7 +1939,7 @@ interface MxDrawObjectType {
1929
1939
  removeViewObject(obj: THREE.Object3D): void;
1930
1940
  removeObject(obj: THREE.Object3D, isRemoveSelectObject?: boolean): void;
1931
1941
  saveMxEntityToJson(isSaveToDWG?: boolean): object;
1932
- loadMxEntityFromJson(dataString: object): Promise<boolean>;
1942
+ loadMxEntityFromJson(dataString: object, isClear: boolean): Promise<boolean>;
1933
1943
  eraseAllMxEntity(): void;
1934
1944
  makeCurrent(): void;
1935
1945
  getViewCenterDocCoord(): THREE.Vector3;