Search Docs
Loading...
Skip to content

Type Alias: AssetStylePresetScalableProperty

type AssetStylePresetScalableProperty =
| "stroke/width"
| "dropShadow/offset/x"
| "dropShadow/offset/y"
| "dropShadow/blurRadius/x"
| "dropShadow/blurRadius/y"
| "backgroundColor/cornerRadius";

A length property a style preset may scale with the block’s font size (see AssetStylePreset.scaleWithFontSize). Restricted to the decoration lengths for which scaling is meaningful — stroke width, drop-shadow offset/blur and the caption background corner radius — not arbitrary numeric properties like rotation or opacity.