]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Cleanup and reorganize core and canvas helpers
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Sat, 24 Jun 2017 09:46:06 +0000 (11:46 +0200)
committerEvert Timberg <evert.timberg+github@gmail.com>
Sat, 24 Jun 2017 17:28:52 +0000 (13:28 -0400)
commit5196e0506257c3242483c511bb558f3f96023f51
treed3dfd0c5ebbe87d8a33a608eb275d881b32fcf42
parent6c82c93853703caaa5522ff30292a7f8257845a6
Cleanup and reorganize core and canvas helpers

Move some of the "core" and "canvas" utils in `helpers.core.js` and `helpers.canvas.js` and introduce the new `isNullOrUndef` and `isObject` helpers. Deprecate `indexOf` and rename `drawRoundedRectangle` to `roundedRect` which now creates a simple `rect` path if radius is 0. Write missing unit tests for the moved helpers.
18 files changed:
.gitignore
src/chart.js
src/controllers/controller.line.js
src/core/core.controller.js
src/core/core.helpers.js
src/core/core.scale.js
src/elements/element.point.js
src/helpers/helpers.canvas.js [moved from src/core/core.canvasHelpers.js with 55% similarity]
src/helpers/helpers.core.js [new file with mode: 0644]
src/platforms/platform.dom.js
src/plugins/plugin.legend.js
src/scales/scale.category.js
test/jasmine.context.js
test/specs/core.helpers.tests.js
test/specs/element.point.tests.js
test/specs/global.deprecations.tests.js
test/specs/helpers.canvas.tests.js [new file with mode: 0644]
test/specs/helpers.core.tests.js [new file with mode: 0644]