Function: getPaintCostReasons()
function 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:55
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;
}>[]