mxcad 1.0.84 → 1.0.85
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 +37 -4
- package/dist/mxcad.es.js +543 -420
- package/dist/mxcad.umd.js +37 -37
- package/dist/wasm/2d/mxdrawassembly_min.js +630 -621
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_min.js +632 -623
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/package.json +1 -1
package/dist/mxcad.d.ts
CHANGED
|
@@ -126,6 +126,7 @@ export declare class McGeVector3d {
|
|
|
126
126
|
dotProduct(vec: McGeVector3d): number;
|
|
127
127
|
crossProduct(vec: McGeVector3d): McGeVector3d;
|
|
128
128
|
isEqualTo(vec: McGeVector3d): boolean;
|
|
129
|
+
mult(val: number): this;
|
|
129
130
|
/**
|
|
130
131
|
* X 坐标。
|
|
131
132
|
*/
|
|
@@ -342,6 +343,37 @@ export declare class McGePoint3dArray {
|
|
|
342
343
|
setAt(index: number, val: McGePoint3d): void;
|
|
343
344
|
clear(): void;
|
|
344
345
|
}
|
|
346
|
+
/**
|
|
347
|
+
* 整数数组
|
|
348
|
+
*/
|
|
349
|
+
export declare class MdGeDoubleArray {
|
|
350
|
+
imp: any;
|
|
351
|
+
/**
|
|
352
|
+
* 构造函数。
|
|
353
|
+
*/
|
|
354
|
+
constructor(imp?: object);
|
|
355
|
+
/**
|
|
356
|
+
* 复制对象的值
|
|
357
|
+
*/
|
|
358
|
+
copy(val: MdGeDoubleArray): this;
|
|
359
|
+
/**
|
|
360
|
+
* 添加一个值
|
|
361
|
+
*/
|
|
362
|
+
append(val: number): void;
|
|
363
|
+
/**
|
|
364
|
+
* 返回数组长度
|
|
365
|
+
*/
|
|
366
|
+
length(): number;
|
|
367
|
+
/**
|
|
368
|
+
* 得到数据元素的值
|
|
369
|
+
*/
|
|
370
|
+
at(index: number): number;
|
|
371
|
+
/**
|
|
372
|
+
* 设置数据元素的值
|
|
373
|
+
*/
|
|
374
|
+
setAt(index: number, val: number): void;
|
|
375
|
+
clear(): void;
|
|
376
|
+
}
|
|
345
377
|
/**
|
|
346
378
|
* 表示一个 Rx 对象的基类。
|
|
347
379
|
*/
|
|
@@ -481,7 +513,7 @@ export declare class McDbObject extends McRxObject {
|
|
|
481
513
|
export declare class McDbObjectArray {
|
|
482
514
|
aryVal: McDbObject[];
|
|
483
515
|
constructor(imp?: any);
|
|
484
|
-
forEach(call: (val: McDbObject) => void): void;
|
|
516
|
+
forEach(call: (val: McDbObject, index: number) => void): void;
|
|
485
517
|
length(): number;
|
|
486
518
|
empty(): boolean;
|
|
487
519
|
}
|
|
@@ -1137,14 +1169,14 @@ export declare class McDbCurve extends McDbEntity {
|
|
|
1137
1169
|
/**
|
|
1138
1170
|
* 通过曲线参数得到曲线的一阶导数
|
|
1139
1171
|
*/
|
|
1140
|
-
|
|
1172
|
+
getFirstDerivFromParam(param: number): {
|
|
1141
1173
|
val: McGeVector3d;
|
|
1142
1174
|
ret: number;
|
|
1143
1175
|
};
|
|
1144
1176
|
/**
|
|
1145
1177
|
* 通过曲线上某点得到曲线的一阶导数
|
|
1146
1178
|
*/
|
|
1147
|
-
|
|
1179
|
+
getFirstDeriv(pt: McGePoint3d): {
|
|
1148
1180
|
val: McGeVector3d;
|
|
1149
1181
|
ret: number;
|
|
1150
1182
|
};
|
|
@@ -1162,7 +1194,8 @@ export declare class McDbCurve extends McDbEntity {
|
|
|
1162
1194
|
/**
|
|
1163
1195
|
* 打断曲线
|
|
1164
1196
|
*/
|
|
1165
|
-
splitCurves(
|
|
1197
|
+
splitCurves(pts: McGePoint3d[]): McDbObjectArray;
|
|
1198
|
+
splitCurvesFromParam(params: number[]): McDbObjectArray;
|
|
1166
1199
|
/**
|
|
1167
1200
|
* 计算面积
|
|
1168
1201
|
*/
|