mxcad 1.0.95 → 1.0.97
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 +51 -0
- package/dist/mxcad.es.js +620 -599
- package/dist/mxcad.umd.js +29 -29
- package/dist/wasm/2d/mxdrawassembly_min.js +925 -807
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_min.js +931 -812
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/package.json +2 -2
package/dist/mxcad.d.ts
CHANGED
|
@@ -464,6 +464,10 @@ export declare class McObjectId {
|
|
|
464
464
|
* 返回MxCAD McDbCurve 对象。
|
|
465
465
|
*/
|
|
466
466
|
getMcDbCurve(): McDbCurve | null;
|
|
467
|
+
/**
|
|
468
|
+
* 返回MxCAD McDbDimension 对象。
|
|
469
|
+
*/
|
|
470
|
+
getMcDbDimension(): McDbDimension | null;
|
|
467
471
|
clone(): McDbObject | null;
|
|
468
472
|
/**
|
|
469
473
|
* 返回id指向的对象名称.
|
|
@@ -648,6 +652,10 @@ export declare class MxCADResbuf extends McRxObject {
|
|
|
648
652
|
* @param lItem 数据项索引。
|
|
649
653
|
*/
|
|
650
654
|
Remove(lItem: number): void;
|
|
655
|
+
/**
|
|
656
|
+
* 调试输入信息
|
|
657
|
+
*/
|
|
658
|
+
PrintData(): void;
|
|
651
659
|
}
|
|
652
660
|
/**
|
|
653
661
|
* MxCADUtilityClass 类提供了一系列与绘图相关的工具方法
|
|
@@ -1090,6 +1098,36 @@ export declare class McDbEntity extends McDbObject {
|
|
|
1090
1098
|
maxPt: McGePoint3d;
|
|
1091
1099
|
ret: boolean;
|
|
1092
1100
|
};
|
|
1101
|
+
/**
|
|
1102
|
+
*得到对象的扩展数据
|
|
1103
|
+
*/
|
|
1104
|
+
GetxData(appName?: string): MxCADResbuf;
|
|
1105
|
+
/**
|
|
1106
|
+
*设置对象的扩展数据
|
|
1107
|
+
*/
|
|
1108
|
+
SetxData(xdata: MxCADResbuf): boolean;
|
|
1109
|
+
GetxDataString(appName: string): {
|
|
1110
|
+
val: string;
|
|
1111
|
+
ret: boolean;
|
|
1112
|
+
};
|
|
1113
|
+
SetxDataString(appName: string, val: string): boolean;
|
|
1114
|
+
GetxDataDouble(appName: string): {
|
|
1115
|
+
val: number;
|
|
1116
|
+
ret: boolean;
|
|
1117
|
+
};
|
|
1118
|
+
SetxDataDouble(appName: string, val: number): boolean;
|
|
1119
|
+
GetxDataLong(appName: string): {
|
|
1120
|
+
val: number;
|
|
1121
|
+
ret: boolean;
|
|
1122
|
+
};
|
|
1123
|
+
SetxDataLong(appName: string, val: number): boolean;
|
|
1124
|
+
GetxDataPoint(appName: string): {
|
|
1125
|
+
val: McGePoint3d;
|
|
1126
|
+
ret: boolean;
|
|
1127
|
+
};
|
|
1128
|
+
SetxDataPoint(appName: string, val: McGePoint3d): boolean;
|
|
1129
|
+
DeleteXData(appName: string): boolean;
|
|
1130
|
+
GetAllAppName(): McGeStringArray;
|
|
1093
1131
|
}
|
|
1094
1132
|
/**
|
|
1095
1133
|
* 表示数据库曲线。
|
|
@@ -1685,6 +1723,10 @@ export declare class McDbDimension extends McDbEntity {
|
|
|
1685
1723
|
* @param val 标注变量对象 ID
|
|
1686
1724
|
*/
|
|
1687
1725
|
setDimVarObjectId(iType: number, val: McObjectId): void;
|
|
1726
|
+
/**
|
|
1727
|
+
* 得到标注对象中的所有文字内容
|
|
1728
|
+
*/
|
|
1729
|
+
GetAllText(): McGeStringArray;
|
|
1688
1730
|
}
|
|
1689
1731
|
/**
|
|
1690
1732
|
* 对齐标注尺寸类
|
|
@@ -2443,6 +2485,13 @@ export declare class McObject {
|
|
|
2443
2485
|
* @returns 是否成功设置变量值
|
|
2444
2486
|
*/
|
|
2445
2487
|
SetSysVarPoint(varName: string, pt: McGePoint3d): boolean;
|
|
2488
|
+
/**
|
|
2489
|
+
* 设置系统变量的2维点数值
|
|
2490
|
+
* @param varName 变量名称
|
|
2491
|
+
* @param val 变量的点数值
|
|
2492
|
+
* @returns 是否成功设置变量值
|
|
2493
|
+
*/
|
|
2494
|
+
SetSysVarPoint2d(varName: string, pt: McGePoint3d): boolean;
|
|
2446
2495
|
/**
|
|
2447
2496
|
* 设置系统变量的浮点数值
|
|
2448
2497
|
* @param varName 变量名称
|
|
@@ -2861,6 +2910,7 @@ export declare class McObject {
|
|
|
2861
2910
|
export declare class McAppType {
|
|
2862
2911
|
private imp;
|
|
2863
2912
|
MxCADAssist: any;
|
|
2913
|
+
private objectIdToObjectCalls;
|
|
2864
2914
|
/**
|
|
2865
2915
|
* 初始化 McAppType 对象。
|
|
2866
2916
|
* @param imp 传入的 imp 对象。
|
|
@@ -2909,6 +2959,7 @@ export declare class McAppType {
|
|
|
2909
2959
|
* 判断一个对象id是否指类类型名对象
|
|
2910
2960
|
*/
|
|
2911
2961
|
ObjectIdIsKindOf(lIdIndex: number, className: string): boolean;
|
|
2962
|
+
private initObjectIdToObjectCalls;
|
|
2912
2963
|
/**
|
|
2913
2964
|
* 将对象 id 转换为 McDbObject 对象。
|
|
2914
2965
|
* @param lIdIndex 对象的 id。
|