mxcad 1.0.111 → 1.0.113
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 +34 -2
- package/dist/mxcad.es.js +2221 -2027
- package/dist/mxcad.umd.js +47 -46
- package/dist/mxkey.json.frontpage.json +1 -0
- package/dist/wasm/2d/mxdrawassembly_min.js +978 -969
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_min.js +975 -966
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/package.json +1 -1
package/dist/mxcad.d.ts
CHANGED
|
@@ -21,12 +21,18 @@ 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>;
|
|
25
|
+
export declare function _ML_String(strId: string, str: string): string;
|
|
26
|
+
export declare function IsZero(val: number): boolean;
|
|
24
27
|
export declare const MxTools: {
|
|
25
28
|
b64Encode: typeof b64Encode;
|
|
26
29
|
b64Decode: typeof b64Decode;
|
|
27
30
|
saveAsFileDialog: typeof saveAsFileDialog;
|
|
28
31
|
downloadFile: typeof downloadFile;
|
|
29
32
|
downloadFileFromUrl: typeof downloadFileFromUrl;
|
|
33
|
+
getJsonFormurl: (url: string) => Promise<any>;
|
|
34
|
+
_ML_String: typeof _ML_String;
|
|
35
|
+
IsZero: typeof IsZero;
|
|
30
36
|
};
|
|
31
37
|
/**
|
|
32
38
|
* 表示三维点的对象。
|
|
@@ -338,6 +344,10 @@ export declare class McGePoint3dArray {
|
|
|
338
344
|
* 返回数组长度
|
|
339
345
|
*/
|
|
340
346
|
length(): number;
|
|
347
|
+
/**
|
|
348
|
+
* 返回数组为空
|
|
349
|
+
*/
|
|
350
|
+
isEmpty(): boolean;
|
|
341
351
|
/**
|
|
342
352
|
* 得到数据元素的值
|
|
343
353
|
*/
|
|
@@ -735,7 +745,7 @@ export declare class MxCADUtilityClass {
|
|
|
735
745
|
*/
|
|
736
746
|
getCurrentSelect(filter?: MxCADResbuf | null): McObjectId[];
|
|
737
747
|
userSelect(strPrompt?: string, filter?: MxCADResbuf | null): Promise<McObjectId[]>;
|
|
738
|
-
|
|
748
|
+
init(): void;
|
|
739
749
|
getCorner(strPrompt?: string, pt1?: McGePoint3d, detailedResult?: Function, drawSelectCroner?: boolean, isDisableAllTrace?: boolean): Promise<{
|
|
740
750
|
pt1: McGePoint3d;
|
|
741
751
|
pt2: McGePoint3d;
|
|
@@ -744,6 +754,10 @@ export declare class MxCADUtilityClass {
|
|
|
744
754
|
minPt: McGePoint3d;
|
|
745
755
|
maxPt: McGePoint3d;
|
|
746
756
|
} | undefined;
|
|
757
|
+
calcBulge(pt1: McGePoint3d, pt2: McGePoint3d, pt3: McGePoint3d): {
|
|
758
|
+
val: number;
|
|
759
|
+
ret: boolean;
|
|
760
|
+
};
|
|
747
761
|
}
|
|
748
762
|
export declare let MxCADUtility: MxCADUtilityClass;
|
|
749
763
|
export declare enum MxCADSelectionSetStatus {
|
|
@@ -796,6 +810,11 @@ export declare class MxCADUiPrBase {
|
|
|
796
810
|
* @returns 选择的关键字
|
|
797
811
|
*/
|
|
798
812
|
clearLastInputPoint(): void;
|
|
813
|
+
/**
|
|
814
|
+
* 设置上一次的输入点。
|
|
815
|
+
* @returns 选择的关键字
|
|
816
|
+
*/
|
|
817
|
+
setLastInputPoint(pt: McGePoint3d): void;
|
|
799
818
|
/**
|
|
800
819
|
* 提示字符串
|
|
801
820
|
* @returns 提示消息
|
|
@@ -1185,6 +1204,7 @@ export declare class McDbEntity extends McDbObject {
|
|
|
1185
1204
|
set linetypeId(id: McObjectId);
|
|
1186
1205
|
get textStyleId(): McObjectId;
|
|
1187
1206
|
set textStyleId(id: McObjectId);
|
|
1207
|
+
IntersectWith(intersectObject: McDbEntity, exOption: McDb.Intersect): McGePoint3dArray;
|
|
1188
1208
|
}
|
|
1189
1209
|
/**
|
|
1190
1210
|
* 表示数据库曲线。
|
|
@@ -2069,6 +2089,12 @@ export declare namespace McDb {
|
|
|
2069
2089
|
/** 自适应 */
|
|
2070
2090
|
kTextFit = 5
|
|
2071
2091
|
}
|
|
2092
|
+
enum Intersect {
|
|
2093
|
+
kOnBothOperands = 0,
|
|
2094
|
+
kExtendThis = 1,
|
|
2095
|
+
kExtendArg = 2,
|
|
2096
|
+
kExtendBoth = 3
|
|
2097
|
+
}
|
|
2072
2098
|
/**
|
|
2073
2099
|
* 文本垂直对齐方式枚举。
|
|
2074
2100
|
* @public
|
|
@@ -3147,6 +3173,10 @@ export declare class McObject {
|
|
|
3147
3173
|
* 初始化用户注册数据.
|
|
3148
3174
|
*/
|
|
3149
3175
|
initRegist(sRegist: string): void;
|
|
3176
|
+
/**
|
|
3177
|
+
* 当前程序是否是试用版本.
|
|
3178
|
+
*/
|
|
3179
|
+
isTryVersion(): boolean;
|
|
3150
3180
|
}
|
|
3151
3181
|
/**
|
|
3152
3182
|
* McAppType 类,提供了 MxCAD 的一些基本操作。
|
|
@@ -3263,6 +3293,7 @@ export interface MxCADUI {
|
|
|
3263
3293
|
mxfilepath: string;
|
|
3264
3294
|
saveUrl: string;
|
|
3265
3295
|
};
|
|
3296
|
+
setRegistData: (sData: string) => void;
|
|
3266
3297
|
}
|
|
3267
3298
|
export declare let MxCpp: MxCppType;
|
|
3268
3299
|
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 +3358,8 @@ export interface MxCadConfig {
|
|
|
3327
3358
|
middlePan?: number | boolean;
|
|
3328
3359
|
/**注册数据 */
|
|
3329
3360
|
registdata?: string;
|
|
3361
|
+
/**注册文件 */
|
|
3362
|
+
registfile?: string;
|
|
3330
3363
|
}
|
|
3331
3364
|
/** 创建MxCad实例
|
|
3332
3365
|
* @example
|
|
@@ -3459,7 +3492,6 @@ export declare function drawText(): Promise<void>;
|
|
|
3459
3492
|
export declare function drawCircle(): void;
|
|
3460
3493
|
export declare function drawLine(): Promise<void>;
|
|
3461
3494
|
export declare function drawMText(): Promise<void>;
|
|
3462
|
-
/**绘制多义线段*/
|
|
3463
3495
|
export declare function drawPolyLine(): Promise<void>;
|
|
3464
3496
|
export declare function drawPolygon(): Promise<void>;
|
|
3465
3497
|
export declare function drawArc(): Promise<void>;
|