mxcad 1.0.111 → 1.0.112
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 +9 -0
- package/dist/mxcad.es.js +922 -900
- package/dist/mxcad.umd.js +25 -25
- package/dist/mxkey.json.frontpage.json +1 -0
- package/dist/wasm/2d/mxdrawassembly_min.js +635 -635
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_min.js +629 -629
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/package.json +1 -1
package/dist/mxcad.d.ts
CHANGED
|
@@ -21,12 +21,14 @@ export declare function saveAsFileDialog({ blob, filename, types }: {
|
|
|
21
21
|
}) | undefined>;
|
|
22
22
|
export declare function downloadFile(blob: any, filename: string): void;
|
|
23
23
|
export declare function downloadFileFromUrl(url: string, filename: string): void;
|
|
24
|
+
export declare const getJsonFormurl: (url: string) => Promise<any>;
|
|
24
25
|
export declare const MxTools: {
|
|
25
26
|
b64Encode: typeof b64Encode;
|
|
26
27
|
b64Decode: typeof b64Decode;
|
|
27
28
|
saveAsFileDialog: typeof saveAsFileDialog;
|
|
28
29
|
downloadFile: typeof downloadFile;
|
|
29
30
|
downloadFileFromUrl: typeof downloadFileFromUrl;
|
|
31
|
+
getJsonFormurl: (url: string) => Promise<any>;
|
|
30
32
|
};
|
|
31
33
|
/**
|
|
32
34
|
* 表示三维点的对象。
|
|
@@ -3147,6 +3149,10 @@ export declare class McObject {
|
|
|
3147
3149
|
* 初始化用户注册数据.
|
|
3148
3150
|
*/
|
|
3149
3151
|
initRegist(sRegist: string): void;
|
|
3152
|
+
/**
|
|
3153
|
+
* 当前程序是否是试用版本.
|
|
3154
|
+
*/
|
|
3155
|
+
isTryVersion(): boolean;
|
|
3150
3156
|
}
|
|
3151
3157
|
/**
|
|
3152
3158
|
* McAppType 类,提供了 MxCAD 的一些基本操作。
|
|
@@ -3263,6 +3269,7 @@ export interface MxCADUI {
|
|
|
3263
3269
|
mxfilepath: string;
|
|
3264
3270
|
saveUrl: string;
|
|
3265
3271
|
};
|
|
3272
|
+
setRegistData: (sData: string) => void;
|
|
3266
3273
|
}
|
|
3267
3274
|
export declare let MxCpp: MxCppType;
|
|
3268
3275
|
export declare function loadMxCADassembly(call?: (MxCpp: MxCppType) => void, locateFile?: (fileName: string, base?: string | URL) => string, wasmBinary?: ArrayBuffer, fontspath?: string, networkFonts?: string[]): Promise<MxCppType>;
|
|
@@ -3327,6 +3334,8 @@ export interface MxCadConfig {
|
|
|
3327
3334
|
middlePan?: number | boolean;
|
|
3328
3335
|
/**注册数据 */
|
|
3329
3336
|
registdata?: string;
|
|
3337
|
+
/**注册文件 */
|
|
3338
|
+
registfile?: string;
|
|
3330
3339
|
}
|
|
3331
3340
|
/** 创建MxCad实例
|
|
3332
3341
|
* @example
|