Skip to main content

Function: getPaintCostReasons()

getPaintCostReasons(propertyName: string, value: string, thresholds?: PaintCostThresholds): readonly Readonly<{ actual: number; kind: "filter-blur" | "filter-functions" | "shadow-blur" | "shadow-layers"; max: number; }>[]

Defined in: _internal/paint-cost-analysis.ts:51

Return paint budget reasons for values that are meaningfully expensive.

Parametersโ€‹

propertyNameโ€‹

string

valueโ€‹

string

thresholds?โ€‹

PaintCostThresholds = defaultPaintCostThresholds

Returnsโ€‹

readonly Readonly<{ actual: number; kind: "filter-blur" | "filter-functions" | "shadow-blur" | "shadow-layers"; max: number; }>[]