mxcad 1.0.57 → 1.0.59
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 +29 -0
- package/dist/mxcad.es.js +331 -308
- package/dist/mxcad.umd.js +37 -37
- package/dist/wasm/2d/mxdrawassembly_min.js +514 -511
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_min.js +514 -511
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/dist/wasm/3d/mxdraw3d_min.js +28 -28
- package/dist/wasm/3d/mxdraw3d_min.wasm +0 -0
- package/package.json +4 -2
package/dist/mxcad.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare const MxTools: {
|
|
|
29
29
|
* 表示三维点的对象。
|
|
30
30
|
*/
|
|
31
31
|
export declare class McGePoint3d {
|
|
32
|
+
static kOrigin: McGePoint3d;
|
|
32
33
|
imp: any;
|
|
33
34
|
/**
|
|
34
35
|
* 构造函数。
|
|
@@ -41,6 +42,30 @@ export declare class McGePoint3d {
|
|
|
41
42
|
* 复制对象的值
|
|
42
43
|
*/
|
|
43
44
|
copy(val: McGePoint3d): this;
|
|
45
|
+
/**
|
|
46
|
+
* 使用矩阵变换该点
|
|
47
|
+
*/
|
|
48
|
+
transformBy(leftSide: McGeMatrix3d): this;
|
|
49
|
+
/**
|
|
50
|
+
* 计算点加上向量后的新位置
|
|
51
|
+
*/
|
|
52
|
+
addvec(vec: McGeVector3d): this;
|
|
53
|
+
/**
|
|
54
|
+
* 计算点减去向量后的新位置
|
|
55
|
+
*/
|
|
56
|
+
subvec(vec: McGeVector3d): this;
|
|
57
|
+
/**
|
|
58
|
+
* 返回两点相减后得到的一个新的向量
|
|
59
|
+
*/
|
|
60
|
+
sub(pt: McGePoint3d): McGeVector3d;
|
|
61
|
+
/**
|
|
62
|
+
* 计算两点距离
|
|
63
|
+
*/
|
|
64
|
+
distanceTo(pnt: McGePoint3d): number;
|
|
65
|
+
/**
|
|
66
|
+
* 判断两个点是否相等
|
|
67
|
+
*/
|
|
68
|
+
isEqualTo(pnt: McGePoint3d): boolean;
|
|
44
69
|
/**
|
|
45
70
|
* 刻隆一个对对象
|
|
46
71
|
*/
|
|
@@ -65,6 +90,9 @@ export declare class McGePoint3d {
|
|
|
65
90
|
* 表示三维向量的对象。
|
|
66
91
|
*/
|
|
67
92
|
export declare class McGeVector3d {
|
|
93
|
+
static kXAxis: McGeVector3d;
|
|
94
|
+
static kYAxis: McGeVector3d;
|
|
95
|
+
static kZAxis: McGeVector3d;
|
|
68
96
|
imp: any;
|
|
69
97
|
/**
|
|
70
98
|
* 构造函数。
|
|
@@ -110,6 +138,7 @@ export declare class McGeVector3d {
|
|
|
110
138
|
set z(val: number);
|
|
111
139
|
}
|
|
112
140
|
export declare class McGeMatrix3d {
|
|
141
|
+
static kIdentity: McGeMatrix3d;
|
|
113
142
|
imp: any;
|
|
114
143
|
/**
|
|
115
144
|
* 构造函数。
|