mxcad 1.0.120 → 1.0.122
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 +17 -7
- package/dist/mxcad.es.js +10 -4
- package/dist/mxcad.umd.js +1 -1
- package/dist/wasm/2d/mxdrawassembly_min.js +1031 -1027
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_min.js +1029 -1025
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/package.json +1 -1
package/dist/mxcad.d.ts
CHANGED
|
@@ -1205,6 +1205,13 @@ export declare class McDbEntity extends McDbObject {
|
|
|
1205
1205
|
get textStyleId(): McObjectId;
|
|
1206
1206
|
set textStyleId(id: McObjectId);
|
|
1207
1207
|
IntersectWith(intersectObject: McDbEntity, exOption: McDb.Intersect): McGePoint3dArray;
|
|
1208
|
+
/**
|
|
1209
|
+
* 计算面积
|
|
1210
|
+
*/
|
|
1211
|
+
getArea(): {
|
|
1212
|
+
val: number;
|
|
1213
|
+
ret: boolean;
|
|
1214
|
+
};
|
|
1208
1215
|
}
|
|
1209
1216
|
/**
|
|
1210
1217
|
* 表示数据库曲线。
|
|
@@ -1325,13 +1332,6 @@ export declare class McDbCurve extends McDbEntity {
|
|
|
1325
1332
|
*/
|
|
1326
1333
|
splitCurves(pts: McGePoint3d[]): McDbObjectArray;
|
|
1327
1334
|
splitCurvesFromParam(params: number[]): McDbObjectArray;
|
|
1328
|
-
/**
|
|
1329
|
-
* 计算面积
|
|
1330
|
-
*/
|
|
1331
|
-
getArea(): {
|
|
1332
|
-
val: number;
|
|
1333
|
-
ret: boolean;
|
|
1334
|
-
};
|
|
1335
1335
|
/**
|
|
1336
1336
|
* 把曲线离散成一堆点
|
|
1337
1337
|
*/
|
|
@@ -1613,6 +1613,12 @@ export declare class McDbPolyline extends McDbCurve {
|
|
|
1613
1613
|
* @param bulge 凸度
|
|
1614
1614
|
*/
|
|
1615
1615
|
setBulgeAt(index: number, bulge: number): boolean;
|
|
1616
|
+
/**
|
|
1617
|
+
* 修改线段的开始宽度,和结束宽度
|
|
1618
|
+
* @param index 位置
|
|
1619
|
+
* @param bulge 凸度
|
|
1620
|
+
*/
|
|
1621
|
+
setWidthsAt(index: number, dStartWdith: number, dEntWdith: number): boolean;
|
|
1616
1622
|
}
|
|
1617
1623
|
/**
|
|
1618
1624
|
* 表示一个 CAD 图块引用实体。
|
|
@@ -3294,6 +3300,10 @@ export declare class MxCppType {
|
|
|
3294
3300
|
* 返回当前活动的CAD对象的数据库对象.
|
|
3295
3301
|
*/
|
|
3296
3302
|
getCurrentDatabase(): McDbDatabase;
|
|
3303
|
+
/**
|
|
3304
|
+
* 把hex格式的Gb2312编码的转成utf8
|
|
3305
|
+
*/
|
|
3306
|
+
decodeFromGb2312(str: string): string;
|
|
3297
3307
|
}
|
|
3298
3308
|
/**
|
|
3299
3309
|
* MxCADUI 模块提供插件程序使用的接口.
|
package/dist/mxcad.es.js
CHANGED
|
@@ -1735,6 +1735,9 @@ class Le extends Be {
|
|
|
1735
1735
|
IntersectWith(e, t) {
|
|
1736
1736
|
return new Oi(this.imp.IntersectWith(e.imp, t));
|
|
1737
1737
|
}
|
|
1738
|
+
getArea() {
|
|
1739
|
+
return { val: this.imp.getArea(), ret: u.getCallResult() == 0 };
|
|
1740
|
+
}
|
|
1738
1741
|
}
|
|
1739
1742
|
class Ne extends Le {
|
|
1740
1743
|
constructor(e) {
|
|
@@ -1823,9 +1826,6 @@ class Ne extends Le {
|
|
|
1823
1826
|
let r = this.imp.splitCurves(t.getImp());
|
|
1824
1827
|
return new lt(r);
|
|
1825
1828
|
}
|
|
1826
|
-
getArea() {
|
|
1827
|
-
return { val: this.imp.getArea(), ret: u.getCallResult() == 0 };
|
|
1828
|
-
}
|
|
1829
1829
|
getSamplePoints(e) {
|
|
1830
1830
|
let t = this.imp.getSamplePoints(e);
|
|
1831
1831
|
return new ie(t);
|
|
@@ -2019,6 +2019,9 @@ class Se extends Ne {
|
|
|
2019
2019
|
setBulgeAt(e, t) {
|
|
2020
2020
|
return this.imp.setBulgeAt(e, t);
|
|
2021
2021
|
}
|
|
2022
|
+
setWidthsAt(e, t, r) {
|
|
2023
|
+
return this.imp.setWidthsAt(e, t, r);
|
|
2024
|
+
}
|
|
2022
2025
|
}
|
|
2023
2026
|
class Vt extends Le {
|
|
2024
2027
|
constructor(e) {
|
|
@@ -2804,8 +2807,11 @@ class Wi {
|
|
|
2804
2807
|
getCurrentDatabase() {
|
|
2805
2808
|
return this.App.getCurrentMxCAD().getDatabase();
|
|
2806
2809
|
}
|
|
2810
|
+
decodeFromGb2312(e) {
|
|
2811
|
+
return _.decodeFromGb2312(e);
|
|
2812
|
+
}
|
|
2807
2813
|
}
|
|
2808
|
-
const ri = "1.0.
|
|
2814
|
+
const ri = "1.0.122", cn = "SharedArrayBuffer" in window, St = document.currentScript && /unpkg\.com\/mxcad/.test(document.currentScript.src), mn = (i, e = self.location.href) => St ? `https://unpkg.com/mxcad@${ri}/dist/wasm/2d-st/${i}` : e + i, hn = (i, e = self.location.href) => St ? `https://unpkg.com/mxcad@${ri}/dist/wasm/2d/${i}` : e + i, dn = (i, e = self.location.href) => St ? `https://unpkg.com/mxcad@${ri}/dist/wasm/3d/${i}` : e + i, Hi = (i) => new Promise((e, t) => {
|
|
2809
2815
|
const r = document.createElement("script");
|
|
2810
2816
|
r.src = i, r.type = "text/javascript", r.crossOrigin = "anonymous", document.body.appendChild(r), r.onload = () => {
|
|
2811
2817
|
e();
|