@manycore/custom-sdk 1.12.0 → 1.13.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.
- package/index.d.ts +44 -1
- package/index.js +17 -17
- 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
|
*/
|
|
@@ -1144,7 +1162,8 @@ export declare class FittingDesignService extends BaseService {
|
|
|
1144
1162
|
export declare interface IGetModelIntersectedOption extends IBaseOptions {
|
|
1145
1163
|
/**
|
|
1146
1164
|
* 含义为交接面/体进行运算过程中的阈值容差;即两个平行面之间,生成交接信息时,最大距离
|
|
1147
|
-
* 默认值为 0.
|
|
1165
|
+
* 默认值为 0.1mm
|
|
1166
|
+
* 单位:毫米
|
|
1148
1167
|
*/
|
|
1149
1168
|
tolerance?: number;
|
|
1150
1169
|
}
|
|
@@ -1898,6 +1917,22 @@ export declare class FittingDesignService extends BaseService {
|
|
|
1898
1917
|
getRealPaths(): IPlankArea;
|
|
1899
1918
|
}
|
|
1900
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
|
+
|
|
1901
1936
|
/**
|
|
1902
1937
|
* 板件轮廓上的某条闭合路径,例如外轮廓、内部挖洞
|
|
1903
1938
|
*/
|
|
@@ -2845,6 +2880,14 @@ export declare class FittingDesignService extends BaseService {
|
|
|
2845
2880
|
* @ignore
|
|
2846
2881
|
*/
|
|
2847
2882
|
private hasWatchSelectionChange;
|
|
2883
|
+
/**
|
|
2884
|
+
* 板面点击事件管理器
|
|
2885
|
+
*/
|
|
2886
|
+
plankFaceClickEvent: IEvent<IPlankFace>;
|
|
2887
|
+
/**
|
|
2888
|
+
* 板面hover事件管理器
|
|
2889
|
+
*/
|
|
2890
|
+
plankFaceHoverEvent: IEvent<IPlankFace>;
|
|
2848
2891
|
/**
|
|
2849
2892
|
* 获取当前选中的数据
|
|
2850
2893
|
*/
|