mxdraw 0.1.39 → 0.1.42
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/MxDbSVG/MxDbSVG.js +1 -1
- package/dist/lib/MxModule/MxFun/MxFun.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/MxDbSVG/MxDbSVG.d.ts +5 -0
- package/dist/types/MxModule/MxFun/MxFun.d.ts +3 -2
- package/package.json +1 -1
|
@@ -79,6 +79,11 @@ export default class MxDbSVG extends MxDbEntity {
|
|
|
79
79
|
* @param color 颜色值
|
|
80
80
|
* */
|
|
81
81
|
setColor(color: number | string | THREE.Color): void;
|
|
82
|
+
/**
|
|
83
|
+
* 设置svg对象
|
|
84
|
+
* */
|
|
85
|
+
setSvg(svg: any): void;
|
|
86
|
+
private calcSvgBoxSize;
|
|
82
87
|
reComputeSVG(): void;
|
|
83
88
|
protected onViewChange(): boolean;
|
|
84
89
|
}
|
|
@@ -51,7 +51,7 @@ interface CmdMangerType {
|
|
|
51
51
|
getMrxDbgUiPrPointClass(): any;
|
|
52
52
|
}
|
|
53
53
|
export interface MxFunType {
|
|
54
|
-
createMxObject(canvasId: string, arg1: string | string[], arg2: (mxDraw: MxDrawObjectType) => void, is2d: boolean | undefined, isNewCreate?: boolean, isStaticLoad?: boolean): void;
|
|
54
|
+
createMxObject(canvasId: string, arg1: string | string[], arg2: (mxDraw: MxDrawObjectType) => void, is2d: boolean | undefined, isNewCreate?: boolean, isStaticLoad?: boolean, mapBox?: any): void;
|
|
55
55
|
setMxServer(MXSERVER: string): void;
|
|
56
56
|
addCommand(cmdName: string, fun: Function): void;
|
|
57
57
|
sendStringToExecute(sCmd: string, ...params: any[]): boolean;
|
|
@@ -121,7 +121,7 @@ export default class MxFun {
|
|
|
121
121
|
* })
|
|
122
122
|
* ```
|
|
123
123
|
*/
|
|
124
|
-
createMxObject({ canvasId, cadFile, callback, isNewFile, useWebsocket, isAutoResize }: {
|
|
124
|
+
createMxObject({ canvasId, cadFile, callback, isNewFile, useWebsocket, isAutoResize, mapBox }: {
|
|
125
125
|
canvasId?: string;
|
|
126
126
|
cadFile?: string | string[];
|
|
127
127
|
callback?: (mxDraw: MxDrawObject, dom: {
|
|
@@ -131,6 +131,7 @@ export default class MxFun {
|
|
|
131
131
|
isNewFile?: boolean;
|
|
132
132
|
useWebsocket?: boolean;
|
|
133
133
|
isAutoResize?: boolean;
|
|
134
|
+
mapBox?: any;
|
|
134
135
|
}): void;
|
|
135
136
|
/**
|
|
136
137
|
* 为程序设置服务器地址
|