From: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com> Date: Tue, 7 Jun 2022 12:59:41 +0000 (+0200) Subject: Add padding to pointLabels type, add type to scriptable context (#10404) X-Git-Tag: v3.8.1~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f796c7b47563d69e90134c8b4eaebe52da2c577f;p=thirdparty%2FChart.js.git Add padding to pointLabels type, add type to scriptable context (#10404) * Add padding to pointLabelTypings and add type field to context * Use correct scriptable helper * Remove trailing space --- diff --git a/types/index.esm.d.ts b/types/index.esm.d.ts index 913baee92..d95c91fd1 100644 --- a/types/index.esm.d.ts +++ b/types/index.esm.d.ts @@ -1349,6 +1349,7 @@ export interface ScriptableScalePointLabelContext { scale: Scale; index: number; label: string; + type: string; } @@ -3424,6 +3425,12 @@ export type RadialLinearScaleOptions = CoreScaleOptions & { */ callback: (label: string, index: number) => string | string[] | number | number[]; + /** + * Padding around the pointLabels + * @default 5 + */ + padding: Scriptable; + /** * if true, point labels are centered. * @default false