Search Docs
Loading...
Skip to content

Type Alias: AssetStylePresetProperties

type AssetStylePresetProperties = { [K in BoolPropertyName as string extends K ? never : K]?: boolean } & { [K in IntPropertyName as string extends K ? never : K]?: number } & { [K in FloatPropertyName as string extends K ? never : K]?: number } & { [K in DoublePropertyName as string extends K ? never : K]?: number } & { [K in StringPropertyName as string extends K ? never : K]?: string } & { [K in EnumPropertyName as string extends K ? never : K]?: string } & { [K in ColorPropertyName as string extends K ? never : K]?: RGBColor | RGBAColor } & object & object;

The look of an AssetStylePreset: a map of property paths to values. Known paths are value-checked and autocomplete (e.g. stroke/enabled must be a boolean, stroke/width a number, fill/solid/color a color); any other property path is still accepted with the broader AssetStylePresetPropertyValue. Keys without a / are namespaced to the block (text/ or caption/); keys with a / are used verbatim.

Type Declaration#

NameTypeDescription
text/path?stringnull