mxcad 1.0.121 → 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 CHANGED
@@ -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
@@ -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.121", 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) => {
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();