mxcad 1.0.112 → 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 +25 -2
- package/dist/mxcad.es.js +2145 -1973
- package/dist/mxcad.umd.js +47 -46
- 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
|
@@ -22,6 +22,8 @@ export declare function saveAsFileDialog({ blob, filename, types }: {
|
|
|
22
22
|
export declare function downloadFile(blob: any, filename: string): void;
|
|
23
23
|
export declare function downloadFileFromUrl(url: string, filename: string): void;
|
|
24
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;
|
|
25
27
|
export declare const MxTools: {
|
|
26
28
|
b64Encode: typeof b64Encode;
|
|
27
29
|
b64Decode: typeof b64Decode;
|
|
@@ -29,6 +31,8 @@ export declare const MxTools: {
|
|
|
29
31
|
downloadFile: typeof downloadFile;
|
|
30
32
|
downloadFileFromUrl: typeof downloadFileFromUrl;
|
|
31
33
|
getJsonFormurl: (url: string) => Promise<any>;
|
|
34
|
+
_ML_String: typeof _ML_String;
|
|
35
|
+
IsZero: typeof IsZero;
|
|
32
36
|
};
|
|
33
37
|
/**
|
|
34
38
|
* 表示三维点的对象。
|
|
@@ -340,6 +344,10 @@ export declare class McGePoint3dArray {
|
|
|
340
344
|
* 返回数组长度
|
|
341
345
|
*/
|
|
342
346
|
length(): number;
|
|
347
|
+
/**
|
|
348
|
+
* 返回数组为空
|
|
349
|
+
*/
|
|
350
|
+
isEmpty(): boolean;
|
|
343
351
|
/**
|
|
344
352
|
* 得到数据元素的值
|
|
345
353
|
*/
|
|
@@ -737,7 +745,7 @@ export declare class MxCADUtilityClass {
|
|
|
737
745
|
*/
|
|
738
746
|
getCurrentSelect(filter?: MxCADResbuf | null): McObjectId[];
|
|
739
747
|
userSelect(strPrompt?: string, filter?: MxCADResbuf | null): Promise<McObjectId[]>;
|
|
740
|
-
|
|
748
|
+
init(): void;
|
|
741
749
|
getCorner(strPrompt?: string, pt1?: McGePoint3d, detailedResult?: Function, drawSelectCroner?: boolean, isDisableAllTrace?: boolean): Promise<{
|
|
742
750
|
pt1: McGePoint3d;
|
|
743
751
|
pt2: McGePoint3d;
|
|
@@ -746,6 +754,10 @@ export declare class MxCADUtilityClass {
|
|
|
746
754
|
minPt: McGePoint3d;
|
|
747
755
|
maxPt: McGePoint3d;
|
|
748
756
|
} | undefined;
|
|
757
|
+
calcBulge(pt1: McGePoint3d, pt2: McGePoint3d, pt3: McGePoint3d): {
|
|
758
|
+
val: number;
|
|
759
|
+
ret: boolean;
|
|
760
|
+
};
|
|
749
761
|
}
|
|
750
762
|
export declare let MxCADUtility: MxCADUtilityClass;
|
|
751
763
|
export declare enum MxCADSelectionSetStatus {
|
|
@@ -798,6 +810,11 @@ export declare class MxCADUiPrBase {
|
|
|
798
810
|
* @returns 选择的关键字
|
|
799
811
|
*/
|
|
800
812
|
clearLastInputPoint(): void;
|
|
813
|
+
/**
|
|
814
|
+
* 设置上一次的输入点。
|
|
815
|
+
* @returns 选择的关键字
|
|
816
|
+
*/
|
|
817
|
+
setLastInputPoint(pt: McGePoint3d): void;
|
|
801
818
|
/**
|
|
802
819
|
* 提示字符串
|
|
803
820
|
* @returns 提示消息
|
|
@@ -1187,6 +1204,7 @@ export declare class McDbEntity extends McDbObject {
|
|
|
1187
1204
|
set linetypeId(id: McObjectId);
|
|
1188
1205
|
get textStyleId(): McObjectId;
|
|
1189
1206
|
set textStyleId(id: McObjectId);
|
|
1207
|
+
IntersectWith(intersectObject: McDbEntity, exOption: McDb.Intersect): McGePoint3dArray;
|
|
1190
1208
|
}
|
|
1191
1209
|
/**
|
|
1192
1210
|
* 表示数据库曲线。
|
|
@@ -2071,6 +2089,12 @@ export declare namespace McDb {
|
|
|
2071
2089
|
/** 自适应 */
|
|
2072
2090
|
kTextFit = 5
|
|
2073
2091
|
}
|
|
2092
|
+
enum Intersect {
|
|
2093
|
+
kOnBothOperands = 0,
|
|
2094
|
+
kExtendThis = 1,
|
|
2095
|
+
kExtendArg = 2,
|
|
2096
|
+
kExtendBoth = 3
|
|
2097
|
+
}
|
|
2074
2098
|
/**
|
|
2075
2099
|
* 文本垂直对齐方式枚举。
|
|
2076
2100
|
* @public
|
|
@@ -3468,7 +3492,6 @@ export declare function drawText(): Promise<void>;
|
|
|
3468
3492
|
export declare function drawCircle(): void;
|
|
3469
3493
|
export declare function drawLine(): Promise<void>;
|
|
3470
3494
|
export declare function drawMText(): Promise<void>;
|
|
3471
|
-
/**绘制多义线段*/
|
|
3472
3495
|
export declare function drawPolyLine(): Promise<void>;
|
|
3473
3496
|
export declare function drawPolygon(): Promise<void>;
|
|
3474
3497
|
export declare function drawArc(): Promise<void>;
|