Skip to content

Commit dc263b8

Browse files
committed
feat: add colorFormat to property decorator
1 parent f40fd36 commit dc263b8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/layaAir/Decorators.ts

+6
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,12 @@ export interface FPropertyDescriptor {
279279
*/
280280
colorNullable: boolean;
281281

282+
/**
283+
* @en Applicable to color type properties. When storing hexadecimal color values, this property determines the position of each channel. If the color value does not include an alpha channel, the default value is 'rgb'; if it does, the default value is 'argb'.
284+
* @zh 对颜色类型属性适用。存储十六进制颜色值时,这个属性决定每个通道的位置。如果颜色值不包含alpha通道,则默认值是'rgb';如果包含,则默认值是'argb'。
285+
*/
286+
colorFormat?: 'rgb' | 'argb' | 'abgr';
287+
282288
/**
283289
* @en Applicable to object type properties. If true, hide the object's title, and the display indentation of the properties under the object will be reduced by one level.
284290
* @zh 对对象类型属性适用。如果为true,隐藏对象的标题,同时对象下的属性的显示缩进会减少一级。

0 commit comments

Comments
 (0)