mxcad 1.0.371 → 1.0.373

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
@@ -635,6 +635,13 @@ export declare class McDbObject extends McRxObject {
635
635
  */
636
636
  getGripPoints(): McGePoint3dArray;
637
637
  /**
638
+ * 获取对象的夹点对应的编辑基点索引。
639
+ * @example
640
+ * ```ts
641
+ * ```
642
+ */
643
+ getGripEditBasePointsIndex(): number[];
644
+ /**
638
645
  * @internal
639
646
  * MxCAD辅助,内部使用
640
647
  * ```
@@ -14659,6 +14666,11 @@ export declare abstract class McDbCustomEntity extends McDbEntity {
14659
14666
  * @returns 夹点对象数组
14660
14667
  */
14661
14668
  getGripPoints(): McGePoint3dArray;
14669
+ /**
14670
+ * 获取自定义对象的夹点。
14671
+ * @returns 夹点对象数组
14672
+ */
14673
+ getGripEditBasePointsIndex(): number[];
14662
14674
  /**
14663
14675
  * 获取自定义对象矩阵坐标变换
14664
14676
  */
package/dist/mxcad.es.js CHANGED
@@ -15080,7 +15080,7 @@ win.McDrawObjectEvent_asciiToUTF8 = function (hexstr) {
15080
15080
  return MxG2312Obj.decodeFromGb2312Imp(hexstr);
15081
15081
  };
15082
15082
 
15083
- const version$1 = "1.0.370";
15083
+ const version$1 = "1.0.372";
15084
15084
 
15085
15085
  var isSharedArrayBuffer = "SharedArrayBuffer" in window;
15086
15086
  var isCdn = document.currentScript && /unpkg\.com\/mxcad/.test(document.currentScript.src);
@@ -15635,6 +15635,17 @@ var McDbObject = /*#__PURE__*/function (_McRxObject) {
15635
15635
  value: function getGripPoints() {
15636
15636
  return new McGePoint3dArray(this.imp.getGripPoints());
15637
15637
  }
15638
+ }, {
15639
+ key: "getGripEditBasePointsIndex",
15640
+ value: function getGripEditBasePointsIndex() {
15641
+ var ret = [];
15642
+ var aryIndex = this.imp.getGripEditBasePointsIndex();
15643
+ var iLen = aryIndex.length();
15644
+ for (var i = 0; i < iLen; i++) {
15645
+ ret.push(aryIndex.at(i));
15646
+ }
15647
+ return ret;
15648
+ }
15638
15649
  }, {
15639
15650
  key: "tempRelationObject",
15640
15651
  value: function tempRelationObject() {
@@ -20101,6 +20112,11 @@ var McDbCustomEntity = /*#__PURE__*/function (_McDbEntity) {
20101
20112
  value: function getGripPoints() {
20102
20113
  return new McGePoint3dArray();
20103
20114
  }
20115
+ }, {
20116
+ key: "getGripEditBasePointsIndex",
20117
+ value: function getGripEditBasePointsIndex() {
20118
+ return [];
20119
+ }
20104
20120
  }, {
20105
20121
  key: "transformBy",
20106
20122
  value: function transformBy(_mat) {