mxdraw 0.1.129 → 0.1.130
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/index.d.ts +9 -0
- package/dist/lib/MxModule/MxDrawObject/index.js +1 -1
- package/dist/lib/MxModule/MxFun/index.d.ts +19 -18
- package/dist/lib/MxModule/MxFun/index.js +1 -1
- package/dist/lib/MxModule/loadCoreCode/mxfun.es5.js +1 -1
- package/dist/lib/MxModule.d.ts +28 -18
- package/dist/mxdraw.es.js +1 -1
- package/dist/mxdraw.umd.js +1 -1
- package/package.json +1 -1
package/dist/lib/MxModule.d.ts
CHANGED
|
@@ -1818,6 +1818,15 @@ declare class MxDrawObject {
|
|
|
1818
1818
|
* ```
|
|
1819
1819
|
*/
|
|
1820
1820
|
isWebgl2(): boolean;
|
|
1821
|
+
/**
|
|
1822
|
+
* 返回对象的ID.
|
|
1823
|
+
* @example
|
|
1824
|
+
* ```typescript
|
|
1825
|
+
*
|
|
1826
|
+
*
|
|
1827
|
+
* ```
|
|
1828
|
+
*/
|
|
1829
|
+
getId(): number;
|
|
1821
1830
|
}
|
|
1822
1831
|
|
|
1823
1832
|
/**
|
|
@@ -2001,7 +2010,7 @@ interface CmdMangerType {
|
|
|
2001
2010
|
getMrxDbgUiPrPointClass(): any;
|
|
2002
2011
|
}
|
|
2003
2012
|
interface MxFunType {
|
|
2004
|
-
createMxObject(canvasId: string, arg1: string | string[], arg2: (mxDraw: MxDrawObjectType) => void, is2d: boolean | undefined, isNewCreate?: boolean, isStaticLoad?: boolean, mapBox?: any): void;
|
|
2013
|
+
createMxObject(canvasId: string, arg1: string | string[], arg2: (mxDraw: MxDrawObjectType) => void, is2d: boolean | undefined, isNewCreate?: boolean, isStaticLoad?: boolean, mapBox?: any, isCPPMxCAD?: boolean): void;
|
|
2005
2014
|
setMxServer(MXSERVER: string): void;
|
|
2006
2015
|
addCommand(cmdName: string, fun: Function): void;
|
|
2007
2016
|
sendStringToExecute(sCmd: string, ...params: any[]): boolean;
|
|
@@ -2064,7 +2073,7 @@ declare class MxFunClass {
|
|
|
2064
2073
|
* })
|
|
2065
2074
|
* ```
|
|
2066
2075
|
*/
|
|
2067
|
-
createMxObject({ canvasId, cadFile, callback, isNewFile, useWebsocket, isAutoResize, mapBox, isMxCAD, userIdentitySign }: {
|
|
2076
|
+
createMxObject({ canvasId, cadFile, callback, isNewFile, useWebsocket, isAutoResize, mapBox, isMxCAD, userIdentitySign, isCPPMxCAD }: {
|
|
2068
2077
|
canvasId?: string;
|
|
2069
2078
|
cadFile?: string | string[];
|
|
2070
2079
|
callback?: (mxDraw: MxDrawObject, dom: {
|
|
@@ -2077,6 +2086,7 @@ declare class MxFunClass {
|
|
|
2077
2086
|
mapBox?: any;
|
|
2078
2087
|
isMxCAD?: boolean;
|
|
2079
2088
|
userIdentitySign?: string;
|
|
2089
|
+
isCPPMxCAD?: boolean;
|
|
2080
2090
|
}): void;
|
|
2081
2091
|
/**
|
|
2082
2092
|
* 为程序设置服务器地址
|
|
@@ -2570,24 +2580,24 @@ declare class MxFunClass {
|
|
|
2570
2580
|
*/
|
|
2571
2581
|
getMxEntity(id: number): MxDbEntity | undefined;
|
|
2572
2582
|
/**
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2583
|
+
* 得到当前鼠标位置,返回的是屏幕坐标 。
|
|
2584
|
+
* @returns 返MxDbEntity
|
|
2585
|
+
* @example
|
|
2586
|
+
* ```typescript
|
|
2587
|
+
*
|
|
2588
|
+
*
|
|
2589
|
+
* ```
|
|
2590
|
+
*/
|
|
2581
2591
|
getCurrentMousePostion(): THREE.Vector3;
|
|
2582
2592
|
/**
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2593
|
+
* 停止运行当前命令
|
|
2594
|
+
* @returns
|
|
2595
|
+
* @example
|
|
2596
|
+
* ```typescript
|
|
2597
|
+
*
|
|
2598
|
+
*
|
|
2599
|
+
* ```
|
|
2600
|
+
*/
|
|
2591
2601
|
stopRunCommand(): any;
|
|
2592
2602
|
}
|
|
2593
2603
|
/**
|