From e4c7a73e31ae741f8965a00c4134876fd1410b28 Mon Sep 17 00:00:00 2001 From: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com> Date: Fri, 25 Jun 2021 14:07:11 +0200 Subject: [PATCH] resolves #9316 (#9317) --- docs/axes/index.md | 4 ++-- types/index.esm.d.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/axes/index.md b/docs/axes/index.md index 88000388d..b0d3a0735 100644 --- a/docs/axes/index.md +++ b/docs/axes/index.md @@ -157,8 +157,8 @@ Namespace: `options.scales[scaleId]` | `afterBuildTicks` | `axis` | Callback that runs after ticks are created. Useful for filtering ticks. | `beforeTickToLabelConversion` | `axis` | Callback that runs before ticks are converted into strings. | `afterTickToLabelConversion` | `axis` | Callback that runs after ticks are converted into strings. -| `beforeCalculateTickRotation` | `axis` | Callback that runs before tick rotation is determined. -| `afterCalculateTickRotation` | `axis` | Callback that runs after tick rotation is determined. +| `beforeCalculateLabelRotation` | `axis` | Callback that runs before tick rotation is determined. +| `afterCalculateLabelRotation` | `axis` | Callback that runs after tick rotation is determined. | `beforeFit` | `axis` | Callback that runs before the scale fits to the canvas. | `afterFit` | `axis` | Callback that runs after the scale fits to the canvas. | `afterUpdate` | `axis` | Callback that runs at the end of the update process. diff --git a/types/index.esm.d.ts b/types/index.esm.d.ts index c7c00d88c..e5f474d94 100644 --- a/types/index.esm.d.ts +++ b/types/index.esm.d.ts @@ -1137,11 +1137,11 @@ export interface CoreScaleOptions { /** * Callback that runs before tick rotation is determined. */ - beforeCalculateTickRotation(axis: Scale): void; + beforeCalculateLabelRotation(axis: Scale): void; /** * Callback that runs after tick rotation is determined. */ - afterCalculateTickRotation(axis: Scale): void; + afterCalculateLabelRotation(axis: Scale): void; /** * Callback that runs before the scale fits to the canvas. */ -- 2.47.2