From: Moses Mendoza Date: Thu, 8 Apr 2021 04:21:03 +0000 (-0700) Subject: Include `grace` in LinearScaleOptions type definition (#8847) X-Git-Tag: v3.1.0~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efc1902da7213cd3dbdba02ac6609388e4a2ce2f;p=thirdparty%2FChart.js.git Include `grace` in LinearScaleOptions type definition (#8847) This commit adds the `grace` option, to the LinearScaleOptions type definition as documented here, https://www.chartjs.org/docs/latest/axes/cartesian/linear.html#grace. Without this commit the TS compiler does not allow the option. Signed-off-by: Moses Mendoza --- diff --git a/types/index.esm.d.ts b/types/index.esm.d.ts index 709b2034b..4c3dde692 100644 --- a/types/index.esm.d.ts +++ b/types/index.esm.d.ts @@ -2821,6 +2821,10 @@ export type LinearScaleOptions = CartesianScaleOptions & { * Adjustment used when calculating the minimum data value. */ suggestedMax?: number; + /** + * Percentage (string ending with %) or amount (number) for added room in the scale range above and below data. + */ + grace?: string | number; ticks: { /**