Skip to content

Commit

Permalink
Add missing resizeDelay option to types (#9403)
Browse files Browse the repository at this point in the history
This option is defined in the documentation (https://www.chartjs.org/docs/master/configuration/responsive.html) and the native js code, but not listed in the types. This allows its use in typescript.
  • Loading branch information
drewsonne committed Jul 13, 2021
1 parent c3e709e commit f315daf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions types/index.esm.d.ts
Expand Up @@ -1412,6 +1412,11 @@ export interface CoreChartOptions<TType extends ChartType> extends ParsingOption
* @default true
*/
maintainAspectRatio: boolean;
/**
* Delay the resize update by give amount of milliseconds. This can ease the resize process by debouncing update of the elements.
* @default 0
*/
resizeDelay: number;

/**
* Canvas aspect ratio (i.e. width / height, a value of 1 representing a square canvas). Note that this option is ignored if the height is explicitly defined either as attribute or via the style.
Expand Down

0 comments on commit f315daf

Please sign in to comment.