@manycore/custom-sdk 3.0.6 → 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 +50 -0
- package/index.js +15 -15
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -229,6 +229,7 @@ export declare class CustomModelService extends BaseService {
|
|
|
229
229
|
getAllCustomModels(): Promise<IParamModelLite[]>;
|
|
230
230
|
/**
|
|
231
231
|
* 根据id获取指定模型
|
|
232
|
+
* @warning 数据来源于当前拆单环境的模型数据,和设计工具模型数据不一定同步,请谨慎使用
|
|
232
233
|
* @param id 模型id
|
|
233
234
|
* @returns Promise<IParamModelLite | undefined>
|
|
234
235
|
*/
|
|
@@ -242,6 +243,7 @@ export declare class CustomModelService extends BaseService {
|
|
|
242
243
|
* // 保存模型改动
|
|
243
244
|
* ModelService.save({ models: [model] }});
|
|
244
245
|
* ```
|
|
246
|
+
* @warning 保存的模型改动仅生效于拆单环境的模型,请谨慎使用
|
|
245
247
|
* @param option
|
|
246
248
|
* @returns Promise<void>
|
|
247
249
|
*/
|
|
@@ -877,6 +879,24 @@ declare enum EParamUnitType {
|
|
|
877
879
|
NUMBER = 3
|
|
878
880
|
}
|
|
879
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
|
+
|
|
880
900
|
/**
|
|
881
901
|
* 线的类型
|
|
882
902
|
*/
|
|
@@ -3077,6 +3097,18 @@ export declare class FittingDesignService extends BaseService {
|
|
|
3077
3097
|
*/
|
|
3078
3098
|
paths: IPlankPath[];
|
|
3079
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
|
+
|
|
3080
3112
|
/**
|
|
3081
3113
|
* 对板件原始轮廓数据进行非直角端点处理、重合、偏移计算后的实际展示路径,高亮时会将轮廓中心点放置到 (0, 0)
|
|
3082
3114
|
* @param option.resetCenter 是否重置轮廓中心点为 (0, 0),默认为true
|
|
@@ -3090,6 +3122,24 @@ export declare class FittingDesignService extends BaseService {
|
|
|
3090
3122
|
getCenterPoint(): Number2_2 | undefined;
|
|
3091
3123
|
}
|
|
3092
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
|
+
|
|
3093
3143
|
/**
|
|
3094
3144
|
* 板面信息
|
|
3095
3145
|
*/
|