Skip to content

Commit

Permalink
Add fit method to LegendElement interface (#11796)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelHMachado authored May 31, 2024
1 parent ff74078 commit 4ee6c9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2344,6 +2344,7 @@ export interface LegendElement<TType extends ChartType> extends Element<AnyObjec
ctx: CanvasRenderingContext2D;
legendItems?: LegendItem[];
options: LegendOptions<TType>;
fit(): void;
}

export interface LegendOptions<TType extends ChartType> {
Expand Down

0 comments on commit 4ee6c9e

Please sign in to comment.