mxcad 1.0.363 → 1.0.365

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
@@ -2656,7 +2656,7 @@ export declare class MxCADUtilityClass {
2656
2656
  * @param dX - 坐标点的 X 坐标值
2657
2657
  * @param dY - 坐标点的 Y 坐标值
2658
2658
  * @param dZ - 坐标点的 Z 坐标值
2659
- * @param dSearhRange - 查找范围,默认为 -1(表示查找整个绘图区域)
2659
+ * @param dSearhRange - 设置选取范围,默认为 -1 表示自适应,或者输入对应的CAD坐标长度
2660
2660
  * @param filter - 过滤器,用于过滤查找到的图形对象,默认为 null(表示不进行过滤)
2661
2661
  * @returns 返回查找到的图形对象的 ID
2662
2662
  * @example
@@ -8853,6 +8853,92 @@ export declare class McDbRay extends McDbEntity {
8853
8853
  */
8854
8854
  get unitDir(): McGeVector3d;
8855
8855
  }
8856
+ /**
8857
+ * 表示面域对象。
8858
+ * @example
8859
+ * ```ts
8860
+ * ```
8861
+ */
8862
+ export declare class McDbMxRegion extends McDbEntity {
8863
+ /**
8864
+ * 构造函数。
8865
+ * @param imp 内部对象。
8866
+ * @example
8867
+ * ```ts
8868
+ * ```
8869
+ */
8870
+ constructor(imp?: any);
8871
+ /**
8872
+ * 得到面域的边界数目
8873
+ * @example
8874
+ * ```ts
8875
+ * ```
8876
+ */
8877
+ getContourCount(): number;
8878
+ /**
8879
+ * 得到面域的边界坐标
8880
+ * @example
8881
+ * ```ts
8882
+ * ```
8883
+ */
8884
+ getContour(index: number): McGePoint3dArray;
8885
+ /**
8886
+ * 给面域添加边界坐标
8887
+ * @example
8888
+ * ```ts
8889
+ * ```
8890
+ */
8891
+ addContour(points: McGePoint3dArray): boolean;
8892
+ /**
8893
+ * 从一个曲线对象数据给面域添加边界坐标
8894
+ * @example
8895
+ * ```ts
8896
+ * ```
8897
+ */
8898
+ addEntityContour(entity: McDbEntity, approxEps?: number): boolean;
8899
+ /**
8900
+ * 面域与面域之前进行bool运行
8901
+ * @example
8902
+ * ```ts
8903
+ * ```
8904
+ */
8905
+ booleanOption(type: McDb.BooleanOptionType, other: McDbMxRegion): McDbMxRegion[];
8906
+ /**
8907
+ * 偏移面域边界
8908
+ * @example
8909
+ * ```ts
8910
+ * ```
8911
+ */
8912
+ inflatePaths(delta: number, joinType?: number, endType?: number): McDbMxRegion;
8913
+ /**
8914
+ * 三角化面域
8915
+ * @example
8916
+ * ```ts
8917
+ * ```
8918
+ */
8919
+ triangulate(useDelaunay?: boolean): McDbMxRegion;
8920
+ /**
8921
+ * 面域数据是否为空
8922
+ * @example
8923
+ * ```ts
8924
+ * ```
8925
+ */
8926
+ isEmpty(): boolean;
8927
+ /**
8928
+ * 清除面域数据
8929
+ * @example
8930
+ * ```ts
8931
+ * ```
8932
+ */
8933
+ clearData(): boolean;
8934
+ /**
8935
+ * 从另一个面域数据拷贝数据
8936
+ * @example
8937
+ * ```ts
8938
+ * ```
8939
+ */
8940
+ copyData(fromRegion: McDbMxRegion): boolean;
8941
+ }
8856
8942
  /**
8857
8943
  * Dxf组码
8858
8944
  * @public
@@ -8898,6 +8984,16 @@ export declare namespace McDb {
8898
8984
  /** 3D Polyline */
8899
8985
  k3dPolyline = 2
8900
8986
  }
8987
+ /**
8988
+ * 面域bool运行类型
8989
+ * @public
8990
+ */
8991
+ enum BooleanOptionType {
8992
+ Intersection = 0,
8993
+ Union = 1,
8994
+ Difference = 2,
8995
+ Xor = 3
8996
+ }
8901
8997
  /**
8902
8998
  * 文本水平对齐方式枚举。
8903
8999
  * @public
@@ -12072,7 +12168,7 @@ export declare class McObject {
12072
12168
  * mxcad.addCurrentSelect(id);
12073
12169
  * ```
12074
12170
  */
12075
- addCurrentSelect(id: McObjectId | McObjectId[], isDisplayGrid?: boolean): void;
12171
+ addCurrentSelect(id: McObjectId | McObjectId[], isDisplayGrid?: boolean, fireSelectEvent?: boolean): void;
12076
12172
  /**
12077
12173
  * 清除当前所有选择
12078
12174
  * @example
@@ -12084,6 +12180,16 @@ export declare class McObject {
12084
12180
  * ```
12085
12181
  */
12086
12182
  clearMxCurrentSelect(): void;
12183
+ /**
12184
+ * 清除显示的夹点
12185
+ * @returns void
12186
+ * @example
12187
+ * ```typescript
12188
+ *
12189
+ *
12190
+ * ```
12191
+ */
12192
+ clearGripDisplay(): void;
12087
12193
  /**
12088
12194
  * 把当前显示范围移到指定的显示范围
12089
12195
  * @param minPt 坐标1 McGePoint3d