From f796c7b47563d69e90134c8b4eaebe52da2c577f Mon Sep 17 00:00:00 2001 From: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com> Date: Tue, 7 Jun 2022 14:59:41 +0200 Subject: [PATCH] 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 --- types/index.esm.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.47.2