Skip to content

Commit

Permalink
Add padding to pointLabels type, add type to scriptable context (#10404)
Browse files Browse the repository at this point in the history
* Add padding to pointLabelTypings and add type field to context

* Use correct scriptable helper

* Remove trailing space
  • Loading branch information
LeeLenaleee committed Jun 7, 2022
1 parent a0609d7 commit f796c7b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions types/index.esm.d.ts
Expand Up @@ -1349,6 +1349,7 @@ export interface ScriptableScalePointLabelContext {
scale: Scale;
index: number;
label: string;
type: string;
}


Expand Down Expand Up @@ -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<number, ScriptableScalePointLabelContext>;

/**
* if true, point labels are centered.
* @default false
Expand Down

0 comments on commit f796c7b

Please sign in to comment.