@manycore/custom-sdk 1.12.0 → 1.12.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.
- package/index.d.ts +42 -0
- package/index.js +11 -11
- 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
|
*/
|
|
@@ -1898,6 +1916,22 @@ export declare class FittingDesignService extends BaseService {
|
|
|
1898
1916
|
getRealPaths(): IPlankArea;
|
|
1899
1917
|
}
|
|
1900
1918
|
|
|
1919
|
+
/**
|
|
1920
|
+
* 板面信息
|
|
1921
|
+
*/
|
|
1922
|
+
export declare interface IPlankFace {
|
|
1923
|
+
/**
|
|
1924
|
+
* 板面ID
|
|
1925
|
+
*
|
|
1926
|
+
* @value 0-5为正确板面值,-1表示不处于任意板面上
|
|
1927
|
+
*/
|
|
1928
|
+
id: number;
|
|
1929
|
+
/**
|
|
1930
|
+
* 板面所属模型
|
|
1931
|
+
*/
|
|
1932
|
+
modelId: string;
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1901
1935
|
/**
|
|
1902
1936
|
* 板件轮廓上的某条闭合路径,例如外轮廓、内部挖洞
|
|
1903
1937
|
*/
|
|
@@ -2845,6 +2879,14 @@ export declare class FittingDesignService extends BaseService {
|
|
|
2845
2879
|
* @ignore
|
|
2846
2880
|
*/
|
|
2847
2881
|
private hasWatchSelectionChange;
|
|
2882
|
+
/**
|
|
2883
|
+
* 板面点击事件管理器
|
|
2884
|
+
*/
|
|
2885
|
+
plankFaceClickEvent: IEvent<IPlankFace>;
|
|
2886
|
+
/**
|
|
2887
|
+
* 板面hover事件管理器
|
|
2888
|
+
*/
|
|
2889
|
+
plankFaceHoverEvent: IEvent<IPlankFace>;
|
|
2848
2890
|
/**
|
|
2849
2891
|
* 获取当前选中的数据
|
|
2850
2892
|
*/
|