]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
fix: Add backgroundColor type on CoreScaleOptions (#11348)
authorMercy Bickell <54828611+Mer-cat@users.noreply.github.com>
Mon, 7 Aug 2023 22:18:54 +0000 (16:18 -0600)
committerGitHub <noreply@github.com>
Mon, 7 Aug 2023 22:18:54 +0000 (00:18 +0200)
* Fix: add backgroundColor type on CartesianScaleOptions

* Add instead on CoreScaleOptions

* Remove redundant backgroundColor from RadialLinearScaleOptions

src/types/index.d.ts

index eeee5fa08e5db60fe0ccfdf5c05284fd14fc4d45..fb7a5a477966ff5c71c8991cb1bdf405fb13fa68 100644 (file)
@@ -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;