From: Mercy Bickell <54828611+Mer-cat@users.noreply.github.com> Date: Mon, 7 Aug 2023 22:18:54 +0000 (-0600) Subject: fix: Add backgroundColor type on CoreScaleOptions (#11348) X-Git-Tag: v4.4.0~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a3fc84113e51ebc34d7b897623469f591218bf7d;p=thirdparty%2FChart.js.git fix: Add backgroundColor type on CoreScaleOptions (#11348) * Fix: add backgroundColor type on CartesianScaleOptions * Add instead on CoreScaleOptions * Remove redundant backgroundColor from RadialLinearScaleOptions --- diff --git a/src/types/index.d.ts b/src/types/index.d.ts index eeee5fa08..fb7a5a477 100644 --- a/src/types/index.d.ts +++ b/src/types/index.d.ts @@ -1166,6 +1166,10 @@ export interface CoreScaleOptions { * Align pixel values to device pixels */ alignToPixels: boolean; + /** + * Background color of the scale area. + */ + backgroundColor: Color; /** * Reverse the scale. * @default false @@ -3464,8 +3468,6 @@ export type RadialTickOptions = TickOptions & { } export type RadialLinearScaleOptions = CoreScaleOptions & { - backgroundColor: Color; - animate: boolean; startAngle: number;