From: Drew J. Sonne Date: Tue, 13 Jul 2021 17:43:21 +0000 (+0100) Subject: Add missing resizeDelay option to types (#9403) X-Git-Tag: v3.5.0~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f315daf5cfc443b3bab32510c5d34079691ba288;p=thirdparty%2FChart.js.git Add missing resizeDelay option to types (#9403) 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. --- diff --git a/types/index.esm.d.ts b/types/index.esm.d.ts index 8f95af252..5e5b12f5e 100644 --- a/types/index.esm.d.ts +++ b/types/index.esm.d.ts @@ -1412,6 +1412,11 @@ export interface CoreChartOptions 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.