mxcad 1.0.82 → 1.0.84
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 +43 -5
- package/dist/mxcad.es.js +828 -699
- package/dist/mxcad.umd.js +42 -42
- package/dist/wasm/2d/mxdrawassembly_min.js +770 -758
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_min.js +770 -757
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/package.json +2 -2
package/dist/mxcad.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export declare class McGePoint3d {
|
|
|
41
41
|
*/
|
|
42
42
|
constructor(dX?: number | object, dY?: number, dZ?: number);
|
|
43
43
|
toVector3(): THREE.Vector3;
|
|
44
|
+
setFromVector3(val: THREE.Vector3): this;
|
|
44
45
|
/**
|
|
45
46
|
* 复制对象的值
|
|
46
47
|
*/
|
|
@@ -256,6 +257,7 @@ export declare class McGeLongArray {
|
|
|
256
257
|
* 复制对象的值
|
|
257
258
|
*/
|
|
258
259
|
copy(val: McGeLongArray): this;
|
|
260
|
+
copyFormAryId(aryId: McObjectId[]): this;
|
|
259
261
|
/**
|
|
260
262
|
* 添加一个值
|
|
261
263
|
*/
|
|
@@ -272,6 +274,7 @@ export declare class McGeLongArray {
|
|
|
272
274
|
* 设置数据元素的值
|
|
273
275
|
*/
|
|
274
276
|
setAt(index: number, val: number): void;
|
|
277
|
+
clear(): void;
|
|
275
278
|
}
|
|
276
279
|
/**
|
|
277
280
|
* 表示字符串的数组
|
|
@@ -306,6 +309,7 @@ export declare class McGeStringArray {
|
|
|
306
309
|
* 遍历数组
|
|
307
310
|
*/
|
|
308
311
|
forEach(call: (val: string, index: number) => void, decodeFromGb2312?: boolean): void;
|
|
312
|
+
clear(): void;
|
|
309
313
|
}
|
|
310
314
|
/**
|
|
311
315
|
* 表示三维点的数组
|
|
@@ -336,6 +340,7 @@ export declare class McGePoint3dArray {
|
|
|
336
340
|
* 设置数据元素的值
|
|
337
341
|
*/
|
|
338
342
|
setAt(index: number, val: McGePoint3d): void;
|
|
343
|
+
clear(): void;
|
|
339
344
|
}
|
|
340
345
|
/**
|
|
341
346
|
* 表示一个 Rx 对象的基类。
|
|
@@ -405,7 +410,7 @@ export declare class McObjectId {
|
|
|
405
410
|
* @param id 对象的唯一标识符。
|
|
406
411
|
* @param type 对象的类型。
|
|
407
412
|
*/
|
|
408
|
-
constructor(id
|
|
413
|
+
constructor(id?: number, type?: McObjectIdType);
|
|
409
414
|
/**
|
|
410
415
|
* id是否有效.
|
|
411
416
|
*/
|
|
@@ -616,6 +621,7 @@ export declare class MxCADResbuf extends McRxObject {
|
|
|
616
621
|
*/
|
|
617
622
|
export declare class MxCADUtilityClass {
|
|
618
623
|
private imp;
|
|
624
|
+
MxCADAssist: any;
|
|
619
625
|
constructor();
|
|
620
626
|
/**
|
|
621
627
|
* eraseEntity 方法用于删除指定的图形对象
|
|
@@ -670,7 +676,15 @@ export declare enum MxCADSelectionSetStatus {
|
|
|
670
676
|
kKeyword = 4
|
|
671
677
|
}
|
|
672
678
|
export declare class MxCADSelectionSet extends McRxObject {
|
|
679
|
+
isWhileSelect: boolean;
|
|
680
|
+
isSelectHighlight: boolean;
|
|
681
|
+
private selectPt1;
|
|
682
|
+
private selectPt2;
|
|
673
683
|
constructor();
|
|
684
|
+
getSelectPoint(): {
|
|
685
|
+
pt1: McGePoint3d;
|
|
686
|
+
pt2: McGePoint3d;
|
|
687
|
+
};
|
|
674
688
|
allSelect(filter?: MxCADResbuf | null): number;
|
|
675
689
|
pointSelect(dX: number, dY: number, filter?: MxCADResbuf | null, dTol?: number): number;
|
|
676
690
|
crossingSelect(dX1: number, dY1: number, dX2: number, dY2: number, filter?: MxCADResbuf | null): number;
|
|
@@ -908,6 +922,27 @@ export declare class MxCADUiPrString extends MxCADUiPrBase {
|
|
|
908
922
|
*/
|
|
909
923
|
go(): Promise<string | null>;
|
|
910
924
|
}
|
|
925
|
+
export declare class MxCADUiPrEntity extends MxCADUiPrBase {
|
|
926
|
+
private filter?;
|
|
927
|
+
private id;
|
|
928
|
+
constructor();
|
|
929
|
+
setFilter(filter: MxCADResbuf): void;
|
|
930
|
+
getFilter(): MxCADResbuf | undefined;
|
|
931
|
+
go(): Promise<McObjectId>;
|
|
932
|
+
/**
|
|
933
|
+
* 得以获取对象时的输入点
|
|
934
|
+
*/
|
|
935
|
+
pickPoint(): McGePoint3d;
|
|
936
|
+
/**
|
|
937
|
+
* 得以获取对象时的id
|
|
938
|
+
*/
|
|
939
|
+
value(): McObjectId;
|
|
940
|
+
/**
|
|
941
|
+
* 得以获取对象时的输入点的CAD图纸坐标.
|
|
942
|
+
* @returns 点对象 MdGePoint3d
|
|
943
|
+
*/
|
|
944
|
+
getCADPickPoint(): McGePoint3d;
|
|
945
|
+
}
|
|
911
946
|
/**
|
|
912
947
|
* 表示数据库实体。
|
|
913
948
|
*/
|
|
@@ -2726,9 +2761,13 @@ export declare class McObject {
|
|
|
2726
2761
|
*/
|
|
2727
2762
|
GetMxCpp(): any;
|
|
2728
2763
|
/**
|
|
2729
|
-
* 当前绘图坐标到CAD
|
|
2764
|
+
* 当前绘图坐标到CAD图纸坐标.
|
|
2730
2765
|
*/
|
|
2731
|
-
|
|
2766
|
+
DocCoord2Cad(pt: McGePoint3d): McGePoint3d;
|
|
2767
|
+
/**
|
|
2768
|
+
* CAD图纸坐标到当前绘图坐标
|
|
2769
|
+
*/
|
|
2770
|
+
CadCoord2Doc(pt: McGePoint3d): McGePoint3d;
|
|
2732
2771
|
}
|
|
2733
2772
|
/**
|
|
2734
2773
|
* McAppType 类,提供了 MxCAD 的一些基本操作。
|
|
@@ -2824,10 +2863,9 @@ export declare class MxCppType {
|
|
|
2824
2863
|
/**
|
|
2825
2864
|
* 创建新的 McGePoint3d 实例
|
|
2826
2865
|
* @param {any} pt 点坐标
|
|
2827
|
-
* @param {boolean} isDoc 是否为文档坐标
|
|
2828
2866
|
* @returns {McGePoint3d} McGePoint3d 实例
|
|
2829
2867
|
*/
|
|
2830
|
-
NewMcGePoint3d(pt?: any
|
|
2868
|
+
NewMcGePoint3d(pt?: any): McGePoint3d;
|
|
2831
2869
|
/**
|
|
2832
2870
|
* 返回当前活动的CAD对象
|
|
2833
2871
|
*/
|