Skip to content

Commit

Permalink
fix: Add backgroundColor type on CoreScaleOptions (#11348)
Browse files Browse the repository at this point in the history
* Fix: add backgroundColor type on CartesianScaleOptions

* Add instead on CoreScaleOptions

* Remove redundant backgroundColor from RadialLinearScaleOptions
  • Loading branch information
Mer-cat authored Aug 7, 2023
1 parent 4c200b2 commit a3fc841
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -3464,8 +3468,6 @@ export type RadialTickOptions = TickOptions & {
}

export type RadialLinearScaleOptions = CoreScaleOptions & {
backgroundColor: Color;

animate: boolean;

startAngle: number;
Expand Down

0 comments on commit a3fc841

Please sign in to comment.