From a3fc84113e51ebc34d7b897623469f591218bf7d Mon Sep 17 00:00:00 2001 From: Mercy Bickell <54828611+Mer-cat@users.noreply.github.com> Date: Mon, 7 Aug 2023 16:18:54 -0600 Subject: [PATCH] fix: Add backgroundColor type on CoreScaleOptions (#11348) * Fix: add backgroundColor type on CartesianScaleOptions * Add instead on CoreScaleOptions * Remove redundant backgroundColor from RadialLinearScaleOptions --- src/types/index.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/types/index.d.ts b/src/types/index.d.ts index eeee5fa08e5..fb7a5a47796 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;