From: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com> Date: Fri, 25 Jun 2021 12:07:11 +0000 (+0200) Subject: resolves #9316 (#9317) X-Git-Tag: v3.4.0~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4c7a73e31ae741f8965a00c4134876fd1410b28;p=thirdparty%2FChart.js.git resolves #9316 (#9317) --- 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. */