From e5d839ad71761447041403680990459d08a7f8a4 Mon Sep 17 00:00:00 2001 From: "Drew J. Sonne" Date: Tue, 13 Jul 2021 12:51:07 +0100 Subject: [PATCH] Add missing resizeDelay option to types 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. --- types/index.esm.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/index.esm.d.ts b/types/index.esm.d.ts index 8f95af2529d..5e5b12f5e43 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.