mxcad 1.0.33 → 1.0.34
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/mxcad.d.ts +4 -3
- package/dist/mxcad.es.js +2770 -2335
- package/dist/mxcad.umd.js +35 -33
- package/dist/mxdrawassembly_min.wasm +0 -0
- package/package.json +1 -1
package/dist/mxcad.d.ts
CHANGED
|
@@ -9,11 +9,9 @@ import { McGePoint3d } from 'mxdraw';
|
|
|
9
9
|
export declare function fetchAndInstantiate(url: string, importObject: WebAssembly.Imports): Promise<WebAssembly.WebAssemblyInstantiatedSource>;
|
|
10
10
|
export declare function b64Encode(str: string): string;
|
|
11
11
|
export declare function b64Decode(str: string): string;
|
|
12
|
-
export declare function setMcDbEntity(data: any): void;
|
|
13
12
|
export declare const MxTools: {
|
|
14
13
|
b64Encode: typeof b64Encode;
|
|
15
14
|
b64Decode: typeof b64Decode;
|
|
16
|
-
setMcDbEntity: typeof setMcDbEntity;
|
|
17
15
|
};
|
|
18
16
|
/** 绘制文字 */
|
|
19
17
|
export declare function drawText(): Promise<void>;
|
|
@@ -113,15 +111,18 @@ export declare class MdDbDatabase extends MdRxObject {
|
|
|
113
111
|
}
|
|
114
112
|
export declare class McObject {
|
|
115
113
|
private imp;
|
|
114
|
+
static _currentOpenWebFileName: string;
|
|
116
115
|
constructor(imp: any);
|
|
117
116
|
getImp(): any;
|
|
118
117
|
getMxCppImp(): any;
|
|
119
118
|
updateDisplay(modelViewMatrix: number[], projectionMatrix: number[]): void;
|
|
120
119
|
test(): void;
|
|
121
120
|
openWebFile(sFileUrl: string): boolean;
|
|
121
|
+
getCurrentOpenWebFileUrl(): string;
|
|
122
122
|
saveFileToUrl(sSaveProgramUrl: string): boolean;
|
|
123
|
+
/** 文件下载保存(另存为只支持 Chrome86 或 Edge 86 以及 Opera 72)兼容 iE10等较低版本的浏览器 */
|
|
123
124
|
private downloadFile;
|
|
124
|
-
saveFile(pszFilePath
|
|
125
|
+
saveFile(pszFilePath?: string, call?: (data: any) => void, isDownland?: boolean): boolean;
|
|
125
126
|
GetDatabase(): MdDbDatabase;
|
|
126
127
|
GetSysVarString(varName: string): string;
|
|
127
128
|
SetSysVarString(varName: string, val: string): any;
|