mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
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
This commit is contained in:
parent
a0609d77ff
commit
f796c7b475
7
types/index.esm.d.ts
vendored
7
types/index.esm.d.ts
vendored
@ -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<number, ScriptableScalePointLabelContext>;
|
||||
|
||||
/**
|
||||
* if true, point labels are centered.
|
||||
* @default false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user