Add color Parameter

This commit is contained in:
2022-04-08 17:39:26 +08:00
parent 3b255245f2
commit 8cc8819cd3
3 changed files with 46 additions and 1 deletions
+17
View File
@@ -14,6 +14,7 @@ type IMapBasicParamTypeKeyToType = {
"number": number;
"string": string;
"boolean": boolean;
"option": string;
}
type IMapObjectParamTypeKeyToType = {
@@ -25,6 +26,7 @@ type IMapObjectParamTypeKeyToType = {
type IMapVectorParamTypeKeyToType = {
"vec": number[];
"color": number[];
}
/**
@@ -100,6 +102,21 @@ interface IParameterOptionItem<T extends IParamType = IParamType> {
* 图标名字
*/
iconName?: string;
/**
* 图标是否显示为红色
*/
iconRed?: boolean;
/**
* 颜色是否进行归一化
*/
colorNormal?: boolean;
/**
* 全部选项
*/
allOption?: string[];
}
interface IParameter {