mxcad 1.0.195 → 1.0.197

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
@@ -229,6 +229,18 @@ export declare class McDbObject extends McRxObject {
229
229
  * 得到对象拥用者的id
230
230
  */
231
231
  getOwnerID(): number;
232
+ /**
233
+ * 得到对象的扩展字典数据.
234
+ */
235
+ getExtensionDictionary(): McDbDictionary;
236
+ /**
237
+ * 是否有扩展字典数据.
238
+ */
239
+ isHaveExtensionDictionary(): boolean;
240
+ /**
241
+ * 创建对象的扩展字典数据.
242
+ */
243
+ createExtensionDictionary(): boolean;
232
244
  getDatabaseIndexId(): number;
233
245
  moveGripPointsAt(iIndex: number, dXOffset: number, dYOffset: number, dZOffset: number): any;
234
246
  getGripPoints(): McGePoint3dArray;
@@ -1894,6 +1906,14 @@ export declare class McDbPolyline extends McDbCurve {
1894
1906
  * @param bulge 凸度
1895
1907
  */
1896
1908
  setWidthsAt(index: number, dStartWdith: number, dEntWdith: number): boolean;
1909
+ /**
1910
+ * 设置多线段类型
1911
+ */
1912
+ getType(): McDb.PolylineType;
1913
+ /**
1914
+ * 返回多线段类型
1915
+ */
1916
+ setType(type: McDb.PolylineType): boolean;
1897
1917
  }
1898
1918
  /**
1899
1919
  * 表示一个 CAD 图块引用实体。
@@ -2513,6 +2533,16 @@ export declare class McDbRasterImage extends McDbEntity {
2513
2533
  * @public
2514
2534
  */
2515
2535
  export declare namespace McDb {
2536
+ /**
2537
+ * 多线类型
2538
+ * @public
2539
+ */
2540
+ enum PolylineType {
2541
+ /** LW Polyline */
2542
+ kLwPolyline = 0,
2543
+ /** 3D Polyline */
2544
+ k3dPolyline = 2
2545
+ }
2516
2546
  /**
2517
2547
  * 文本水平对齐方式枚举。
2518
2548
  * @public
package/dist/mxcad.es.js CHANGED
@@ -14145,7 +14145,7 @@ win.McDrawObjectEvent_asciiToUTF8 = function (hexstr) {
14145
14145
  return MxG2312Obj.decodeFromGb2312(hexstr);
14146
14146
  };
14147
14147
 
14148
- const version$1 = "1.0.195";
14148
+ const version$1 = "1.0.197";
14149
14149
 
14150
14150
  var isSharedArrayBuffer = ("SharedArrayBuffer" in window);
14151
14151
  var isCdn = document.currentScript && /unpkg\.com\/mxcad/.test(document.currentScript.src);
@@ -14584,6 +14584,21 @@ var McDbObject = /*#__PURE__*/function (_McRxObject) {
14584
14584
  value: function getOwnerID() {
14585
14585
  return this.imp.GetOwnerID();
14586
14586
  }
14587
+ }, {
14588
+ key: "getExtensionDictionary",
14589
+ value: function getExtensionDictionary() {
14590
+ return new McDbDictionary(this.imp.GetExtensionDictionary());
14591
+ }
14592
+ }, {
14593
+ key: "isHaveExtensionDictionary",
14594
+ value: function isHaveExtensionDictionary() {
14595
+ return this.imp.IsHaveExtensionDictionary();
14596
+ }
14597
+ }, {
14598
+ key: "createExtensionDictionary",
14599
+ value: function createExtensionDictionary() {
14600
+ return this.imp.createExtensionDictionary();
14601
+ }
14587
14602
  }, {
14588
14603
  key: "getDatabaseIndexId",
14589
14604
  value: function getDatabaseIndexId() {
@@ -15874,6 +15889,10 @@ function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeRefl
15874
15889
  function _isNativeReflectConstruct$4() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
15875
15890
  var McDb;
15876
15891
  (function (McDb2) {
15892
+ (function (PolylineType2) {
15893
+ PolylineType2[PolylineType2["kLwPolyline"] = 0] = "kLwPolyline";
15894
+ PolylineType2[PolylineType2["k3dPolyline"] = 2] = "k3dPolyline";
15895
+ })(McDb2.PolylineType || (McDb2.PolylineType = {}));
15877
15896
  (function (TextHorzMode2) {
15878
15897
  TextHorzMode2[TextHorzMode2["kTextLeft"] = 0] = "kTextLeft";
15879
15898
  TextHorzMode2[TextHorzMode2["kTextCenter"] = 1] = "kTextCenter";
@@ -17828,6 +17847,16 @@ var McDbPolyline = /*#__PURE__*/function (_McDbCurve3) {
17828
17847
  value: function setWidthsAt(index, dStartWdith, dEntWdith) {
17829
17848
  return this.imp.setWidthsAt(index, dStartWdith, dEntWdith);
17830
17849
  }
17850
+ }, {
17851
+ key: "getType",
17852
+ value: function getType() {
17853
+ return this.imp.getType();
17854
+ }
17855
+ }, {
17856
+ key: "setType",
17857
+ value: function setType(type) {
17858
+ return this.imp.setType(type);
17859
+ }
17831
17860
  }]);
17832
17861
  return McDbPolyline;
17833
17862
  }(McDbCurve);