@manycore/custom-sdk 3.0.7 → 3.0.8
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 +48 -0
- package/index.js +15 -15
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -879,6 +879,24 @@ declare enum EParamUnitType {
|
|
|
879
879
|
NUMBER = 3
|
|
880
880
|
}
|
|
881
881
|
|
|
882
|
+
/**
|
|
883
|
+
* 板件面ID
|
|
884
|
+
*/
|
|
885
|
+
export declare enum EPlankFaceId {
|
|
886
|
+
/** 顶面 */
|
|
887
|
+
TOP = 0,
|
|
888
|
+
/** 左侧面 */
|
|
889
|
+
LEFT,
|
|
890
|
+
/** 正面 */
|
|
891
|
+
FRONT,
|
|
892
|
+
/** 右侧面 */
|
|
893
|
+
RIGHT,
|
|
894
|
+
/** 背面 */
|
|
895
|
+
BACK,
|
|
896
|
+
/** 底面 */
|
|
897
|
+
BOT,
|
|
898
|
+
}
|
|
899
|
+
|
|
882
900
|
/**
|
|
883
901
|
* 线的类型
|
|
884
902
|
*/
|
|
@@ -3079,6 +3097,18 @@ export declare class FittingDesignService extends BaseService {
|
|
|
3079
3097
|
*/
|
|
3080
3098
|
paths: IPlankPath[];
|
|
3081
3099
|
|
|
3100
|
+
/**
|
|
3101
|
+
* 设置轮廓关联的模型面高亮,面形状根据轮廓路径定义
|
|
3102
|
+
* @param option
|
|
3103
|
+
*/
|
|
3104
|
+
setFaceHint(option: IPlankAreaHintOption): void;
|
|
3105
|
+
|
|
3106
|
+
/**
|
|
3107
|
+
* 清除轮廓关联的模型面高亮
|
|
3108
|
+
* @param id
|
|
3109
|
+
*/
|
|
3110
|
+
removeFaceHint(id: EPlankFaceId.TOP | EPlankFaceId.BOT): void;
|
|
3111
|
+
|
|
3082
3112
|
/**
|
|
3083
3113
|
* 对板件原始轮廓数据进行非直角端点处理、重合、偏移计算后的实际展示路径,高亮时会将轮廓中心点放置到 (0, 0)
|
|
3084
3114
|
* @param option.resetCenter 是否重置轮廓中心点为 (0, 0),默认为true
|
|
@@ -3092,6 +3122,24 @@ export declare class FittingDesignService extends BaseService {
|
|
|
3092
3122
|
getCenterPoint(): Number2_2 | undefined;
|
|
3093
3123
|
}
|
|
3094
3124
|
|
|
3125
|
+
/**
|
|
3126
|
+
* 轮廓高亮面配置
|
|
3127
|
+
*/
|
|
3128
|
+
export declare interface IPlankAreaHintOption {
|
|
3129
|
+
/** 高亮面ID */
|
|
3130
|
+
id: EPlankFaceId.TOP | EPlankFaceId.BOT;
|
|
3131
|
+
/**
|
|
3132
|
+
* 高亮面颜色
|
|
3133
|
+
* @default #ecfdf0
|
|
3134
|
+
*/
|
|
3135
|
+
color?: string;
|
|
3136
|
+
/**
|
|
3137
|
+
* 高亮面不透明度
|
|
3138
|
+
* @default 1
|
|
3139
|
+
*/
|
|
3140
|
+
opacity?: number;
|
|
3141
|
+
}
|
|
3142
|
+
|
|
3095
3143
|
/**
|
|
3096
3144
|
* 板面信息
|
|
3097
3145
|
*/
|