@manycore/custom-sdk 1.11.1 → 1.12.2-alpha.1

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 +55 -1
  2. package/index.js +16 -16
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1003,6 +1003,24 @@ export declare class FittingDesignService extends BaseService {
1003
1003
  type: EElementType;
1004
1004
  }
1005
1005
 
1006
+ /**
1007
+ * 事件管理器
1008
+ */
1009
+ export declare interface IEvent<T = any> {
1010
+ /**
1011
+ * 添加事件监听
1012
+ */
1013
+ on: (fn: (evt: T) => void) => void;
1014
+ /**
1015
+ * 添加一次性事件监听
1016
+ */
1017
+ once: (fn: (evt: T) => void) => void;
1018
+ /**
1019
+ * 移除事件监听
1020
+ */
1021
+ off: (fn: (evt: T) => void) => void;
1022
+ }
1023
+
1006
1024
  /**
1007
1025
  * 自定义模式,hover触发模型高亮回调
1008
1026
  */
@@ -1138,6 +1156,18 @@ export declare class FittingDesignService extends BaseService {
1138
1156
  setHidden(isHidden: boolean): void;
1139
1157
  }
1140
1158
 
1159
+ /**
1160
+ * 获取交接面配置信息
1161
+ */
1162
+ export declare interface IGetModelIntersectedOption extends IBaseOptions {
1163
+ /**
1164
+ * 含义为交接面/体进行运算过程中的阈值容差;即两个平行面之间,生成交接信息时,最大距离
1165
+ * 默认值为 0.1mm
1166
+ * 单位:毫米
1167
+ */
1168
+ tolerance?: number;
1169
+ }
1170
+
1141
1171
  /**
1142
1172
  * 获取模型数据
1143
1173
  */
@@ -1887,6 +1917,22 @@ export declare class FittingDesignService extends BaseService {
1887
1917
  getRealPaths(): IPlankArea;
1888
1918
  }
1889
1919
 
1920
+ /**
1921
+ * 板面信息
1922
+ */
1923
+ export declare interface IPlankFace {
1924
+ /**
1925
+ * 板面ID
1926
+ *
1927
+ * @value 0-5为正确板面值,-1表示不处于任意板面上
1928
+ */
1929
+ id: number;
1930
+ /**
1931
+ * 板面所属模型
1932
+ */
1933
+ modelId: string;
1934
+ }
1935
+
1890
1936
  /**
1891
1937
  * 板件轮廓上的某条闭合路径,例如外轮廓、内部挖洞
1892
1938
  */
@@ -2703,7 +2749,7 @@ export declare class FittingDesignService extends BaseService {
2703
2749
  *
2704
2750
  * @param options
2705
2751
  */
2706
- getParamIntersected(options?: IBaseOptions): Promise<IIntersectedResult>;
2752
+ getParamIntersected(options?: IGetModelIntersectedOption): Promise<IIntersectedResult>;
2707
2753
  /**
2708
2754
  * 获取方案顶层模型列表
2709
2755
  * @param options
@@ -2834,6 +2880,14 @@ export declare class FittingDesignService extends BaseService {
2834
2880
  * @ignore
2835
2881
  */
2836
2882
  private hasWatchSelectionChange;
2883
+ /**
2884
+ * 板面点击事件管理器
2885
+ */
2886
+ plankFaceClickEvent: IEvent<IPlankFace>;
2887
+ /**
2888
+ * 板面hover事件管理器
2889
+ */
2890
+ plankFaceHoverEvent: IEvent<IPlankFace>;
2837
2891
  /**
2838
2892
  * 获取当前选中的数据
2839
2893
  */