]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Corrected spacing in pie/doughnut/polarArea (Fixes #10059) (#12238) master
authorDaniel Cohen Gindi <Danielgindi@gmail.com>
Thu, 16 Apr 2026 11:49:43 +0000 (14:49 +0300)
committerGitHub <noreply@github.com>
Thu, 16 Apr 2026 11:49:43 +0000 (13:49 +0200)
commitab79c3bfbdb45d5652c0e8c76a3c8e7ddd48b4bf
tree822e2009a75f0903e22952b28e3c7c5563e72799
parenta153556861074e827358446ec937555ac58c3d11
Corrected spacing in pie/doughnut/polarArea (Fixes #10059) (#12238)

* same spacing between pie slieces

* introduce spacingMode

* some typing issues

* updated test fixtures

* improvements to self join when combined with spacing or borders

* updated docs

* tolerances for firefox differences in antialiasing
27 files changed:
docs/charts/doughnut.md
docs/charts/polar.md
src/controllers/controller.doughnut.js
src/controllers/controller.polarArea.js
src/elements/element.arc.ts
src/types.ts
src/types/index.d.ts
test/fixtures/controller.doughnut/borderJoinStyle/bevel-default.js
test/fixtures/controller.doughnut/borderJoinStyle/bevel-default.png
test/fixtures/controller.doughnut/borderJoinStyle/miter.js
test/fixtures/controller.doughnut/borderJoinStyle/miter.png
test/fixtures/controller.doughnut/borderJoinStyle/round.js
test/fixtures/controller.doughnut/borderJoinStyle/round.png
test/fixtures/controller.doughnut/doughnut-spacing-and-offset.js
test/fixtures/controller.doughnut/doughnut-spacing-and-offset.png
test/fixtures/controller.doughnut/doughnut-spacing-parallel.js [new file with mode: 0644]
test/fixtures/controller.doughnut/doughnut-spacing-parallel.png [new file with mode: 0644]
test/fixtures/controller.doughnut/doughnut-spacing.js
test/fixtures/controller.doughnut/doughnut-spacing.png
test/fixtures/controller.doughnut/selfJoin/single-slice-360-border-no-selfjoin.js [new file with mode: 0644]
test/fixtures/controller.doughnut/selfJoin/single-slice-360-border-no-selfjoin.png [new file with mode: 0644]
test/fixtures/controller.doughnut/selfJoin/single-slice-360-border-selfjoin.js [new file with mode: 0644]
test/fixtures/controller.doughnut/selfJoin/single-slice-360-border-selfjoin.png [new file with mode: 0644]
test/specs/controller.doughnut.tests.js
test/specs/controller.polarArea.tests.js
test/specs/element.arc.tests.js
test/types/options.ts