]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Fix #10749 - backdrops with rotated labels (#10759)
authorcmcnulty <cmcnulty@kznf.com>
Wed, 12 Oct 2022 11:08:22 +0000 (06:08 -0500)
committerGitHub <noreply@github.com>
Wed, 12 Oct 2022 11:08:22 +0000 (07:08 -0400)
commitfbf3427ca2f7a1817abf93b10c6b8c30404a509a
tree206da3114544561d61a853a5a520b7b5e407cce1
parentb0160e138acf8f0b1a65cf2d90b074b799e35ff2
Fix #10749 - backdrops with rotated labels (#10759)

* Fix #10749 - backdrops with rotated labels

* remove translation adjustment
Because backdrop now occurs after translation, we don't want to double-adjust the position.

* increase tolerance slightly due to anti-aliasing

Co-authored-by: Charles McNulty <charles.mcnulty@tasconline.com>
src/core/core.scale.js
src/helpers/helpers.canvas.js
test/fixtures/core.scale/tick-backdrop-rotation.js [new file with mode: 0644]
test/fixtures/core.scale/tick-backdrop-rotation.png [new file with mode: 0644]