]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Enhance the rounded rectangle implementation (#5597) 5610/head
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Tue, 26 Jun 2018 15:58:32 +0000 (17:58 +0200)
committerGitHub <noreply@github.com>
Tue, 26 Jun 2018 15:58:32 +0000 (17:58 +0200)
commit88308c600cbbd38458bc94549ca6139698508c58
treea2a6609de3e7e45067e7db19acf0449b8a52a45a
parent6f90e0799e7a8a080f5ecc76928bebb76c672946
Enhance the rounded rectangle implementation (#5597)

Use `arcTo` instead of `quadraticCurveTo` (both methods have the same compatibility level) because it generates better results when the final rect is a circle but also when it's actually a rectangle and not a square. This change is needed by the datalabels plugin where the user can configure the `borderRadius` and thus generate circle from a rounded rectangle.
src/helpers/helpers.canvas.js
test/jasmine.context.js
test/specs/element.point.tests.js
test/specs/helpers.canvas.tests.js