mxcad 1.0.268 → 1.0.270

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
@@ -2267,6 +2267,13 @@ export declare class MxCADResbuf extends McRxObject {
2267
2267
  * ```
2268
2268
  */
2269
2269
  GetCount(): number;
2270
+ /**
2271
+ * 获取 resbuf 中所有点数据。
2272
+ * @example
2273
+ * ```ts
2274
+ * ```
2275
+ */
2276
+ GetPoints(): McGePoint3dArray;
2270
2277
  /**
2271
2278
  * 获取 resbuf 数据项中的 double 类型值。
2272
2279
  * @param lItem 数据项索引。
@@ -2458,6 +2465,10 @@ export declare class MxCADResbuf extends McRxObject {
2458
2465
  * ```
2459
2466
  */
2460
2467
  AddString(str: string, lDataType?: number, decodeFromGb2312?: boolean): number;
2468
+ /**
2469
+ * 添加扩展数据名,用选择集过滤使用
2470
+ */
2471
+ AddAppName(str: string, decodeFromGb2312?: boolean): number;
2461
2472
  /**
2462
2473
  * 添加实体类型,用于选择集过滤使用
2463
2474
  * @param str 多个类型用,连接 例如: "TEXT,MTEXT"
@@ -2734,6 +2745,12 @@ export declare class MxCADUtilityClass {
2734
2745
  val: number;
2735
2746
  ret: boolean;
2736
2747
  };
2748
+ /** 判断一个点是否在闭合区域内
2749
+ * @example
2750
+ * ```ts
2751
+ * ```
2752
+ * */
2753
+ pointInPolygon(aryPoint: McGePoint3dArray, x: number, y: Number): boolean;
2737
2754
  /** 通过一个点坐标填充对应位置实体的填充
2738
2755
  * @param pt 点对象
2739
2756
  * @returns 返回一个填充对象
@@ -2769,7 +2786,19 @@ export declare enum MxCADSelectionSetStatus {
2769
2786
  }
2770
2787
  /**
2771
2788
  * 选择集 用于选择实体
2772
- */
2789
+ * @example
2790
+ * ```ts
2791
+ * 比如:通过扩展数据名DataName过滤选择图上所有PL线对象
2792
+ * let ss = new MxCADSelectionSet();
2793
+ * ss.allSelect(new MxCADResbuf([DxfCode.kAppName,0,1001,"DataName",DxfCode.kEntityType, "LWPOLYLINE"]));
2794
+ * ss.forEach(id=>{
2795
+ * let ent = id.getMcDbEntity();
2796
+ * if(ent){
2797
+ * console.log(ent.getxDataString("DataName") );
2798
+ * }
2799
+ * })
2800
+ * ```
2801
+ * */
2773
2802
  export declare class MxCADSelectionSet extends McRxObject {
2774
2803
  /**
2775
2804
  * 是否循环选择
@@ -6257,6 +6286,13 @@ export declare class McDbPolyline extends McDbCurve {
6257
6286
  * ```
6258
6287
  */
6259
6288
  setBulgeAt(index: number, bulge: number): boolean;
6289
+ /**
6290
+ * 判断一个点是否在多线段组成闭合区域内
6291
+ * @example
6292
+ * ```ts
6293
+ * ```
6294
+ */
6295
+ pointInPolygon(x: number, y: number): boolean;
6260
6296
  /**
6261
6297
  * 修改线段的开始宽度,和结束宽度
6262
6298
  * @param index 位置
@@ -8521,7 +8557,7 @@ export declare class McCmColor {
8521
8557
  * const green_color:McCmColor = new McCmColor(colorObj);
8522
8558
  * ```
8523
8559
  */
8524
- constructor(red?: number | object, green?: number, blue?: number);
8560
+ constructor(red?: number | object, green?: number, blue?: number, n?: number);
8525
8561
  /**
8526
8562
  * 获取内部实现对象
8527
8563
  * @return 内部实现对象
@@ -14524,6 +14560,11 @@ export declare namespace MdGe {
14524
14560
  Orientation_INTERNAL = 2,
14525
14561
  Orientation_EXTERNAL = 3
14526
14562
  }
14563
+ enum MxTransitionMode {
14564
+ Mx_Transformed = 0,
14565
+ Mx_RightCorner = 1,
14566
+ Mx_RoundCorner = 2
14567
+ }
14527
14568
  }
14528
14569
  export type EventType = string | symbol;
14529
14570
  export type PubSubEvent = Record<EventType, (...ages: any) => any>;
@@ -19899,6 +19940,18 @@ export declare class Mx3dMkPipe extends Mx3dMkObject {
19899
19940
  */
19900
19941
  IsDone(): boolean;
19901
19942
  }
19943
+ /**
19944
+ *
19945
+ */
19946
+ export declare class Mx3dMkPipeShell extends Mx3dMkObject {
19947
+ constructor(Spine: Mx3dShapeWire);
19948
+ SetTransitionMode(Mode: MdGe.MxTransitionMode): void;
19949
+ Add(Profile: Mx3dShapeObject): void;
19950
+ Build(): void;
19951
+ MakeSolid(): boolean;
19952
+ Shape(): Mx3dShapeObject;
19953
+ IsDone(): boolean;
19954
+ }
19902
19955
  /**
19903
19956
  * 表示建模拉伸扫掠体的类,继承自 Mx3dMkObject。
19904
19957
  */