@manycore/custom-sdk 1.11.0-alpha.0 → 1.12.0

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.
Files changed (3) hide show
  1. package/index.d.ts +44 -1
  2. package/index.js +22 -22
  3. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -1138,6 +1138,17 @@ export declare class FittingDesignService extends BaseService {
1138
1138
  setHidden(isHidden: boolean): void;
1139
1139
  }
1140
1140
 
1141
+ /**
1142
+ * 获取交接面配置信息
1143
+ */
1144
+ export declare interface IGetModelIntersectedOption extends IBaseOptions {
1145
+ /**
1146
+ * 含义为交接面/体进行运算过程中的阈值容差;即两个平行面之间,生成交接信息时,最大距离
1147
+ * 默认值为 0.001m
1148
+ */
1149
+ tolerance?: number;
1150
+ }
1151
+
1141
1152
  /**
1142
1153
  * 获取模型数据
1143
1154
  */
@@ -1497,6 +1508,25 @@ export declare class FittingDesignService extends BaseService {
1497
1508
  */
1498
1509
  export declare type IModelHintOption = Record<string, IHintPlank>;
1499
1510
 
1511
+ export declare interface IModelValidateResult {
1512
+ /**
1513
+ * 元件总数量
1514
+ */
1515
+ total: number;
1516
+ /**
1517
+ * 验证不通过的总数量
1518
+ */
1519
+ invalidateTotal: number;
1520
+ /**
1521
+ * 是否验证通过
1522
+ */
1523
+ validate: boolean;
1524
+ /**
1525
+ * 验证不通过的元件ID列表
1526
+ */
1527
+ invalidateList: string[];
1528
+ }
1529
+
1500
1530
  /**
1501
1531
  * 获取交接信息
1502
1532
  *
@@ -2684,7 +2714,7 @@ export declare class FittingDesignService extends BaseService {
2684
2714
  *
2685
2715
  * @param options
2686
2716
  */
2687
- getParamIntersected(options?: IBaseOptions): Promise<IIntersectedResult>;
2717
+ getParamIntersected(options?: IGetModelIntersectedOption): Promise<IIntersectedResult>;
2688
2718
  /**
2689
2719
  * 获取方案顶层模型列表
2690
2720
  * @param options
@@ -2694,6 +2724,19 @@ export declare class FittingDesignService extends BaseService {
2694
2724
  getParamModelPhotoById(modelId: string | string[]): Promise<IParamModelPhotoResponse[]>;
2695
2725
  }
2696
2726
 
2727
+ /**
2728
+ * 模型检测服务
2729
+ */
2730
+ export declare class ModelValidateService extends BaseService {
2731
+ /**
2732
+ * 检测当前展示模型的元件ID是否稳定
2733
+ * @param option
2734
+ */
2735
+ stable(option: {
2736
+ modelId: string;
2737
+ }): Promise<IModelValidateResult | undefined>;
2738
+ }
2739
+
2697
2740
  /**
2698
2741
  * 主要是用来与场景交互的,监听当前选中的对象, 获取选中的内容
2699
2742
  *