]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Remove unused layouts.defaults (#7264)
authorBen McCann <322311+benmccann@users.noreply.github.com>
Sat, 11 Apr 2020 12:46:33 +0000 (05:46 -0700)
committerGitHub <noreply@github.com>
Sat, 11 Apr 2020 12:46:33 +0000 (08:46 -0400)
* Remove unused layouts.defaults
* Add to migration guide

docs/getting-started/v3-migration.md
src/core/core.layouts.js
test/specs/core.layouts.tests.js

index dddab3924a25cd9f0a4bd54c752835f3e71c54c4..b030404be57988d0f2e9e4c12cff4d05b196d7d8 100644 (file)
@@ -221,6 +221,10 @@ The following properties and methods were removed:
 * `helpers.scaleMerge`
 * `helpers.where`
 
+#### Layout
+
+* `Layout.defaults`
+
 #### Scales
 
 * `LogarithmicScale.minNotZero`
index d1261d63f9f23765dcec7d4950af5c7d20197be3..585bedd6799f260b3ff35686dd84ac7c352cde39 100644 (file)
@@ -230,7 +230,6 @@ defaults.set('layout', {
 // Scales, Legends and Plugins all rely on the layout service and can easily register to be placed anywhere they need
 // It is this service's responsibility of carrying out that layout.
 export default {
-       defaults: {},
 
        /**
         * Register a box to a chart.
index 6c161b6c6b5419cbd37cd8137ed95ad35c1877d5..7efceaa183bae1b6e2f6110af68acfc5009d8949 100644 (file)
@@ -6,7 +6,6 @@ describe('Chart.layouts', function() {
        it('should be exposed through Chart.layouts', function() {
                expect(Chart.layouts).toBeDefined();
                expect(typeof Chart.layouts).toBe('object');
-               expect(Chart.layouts.defaults).toBeDefined();
                expect(Chart.layouts.addBox).toBeDefined();
                expect(Chart.layouts.removeBox).toBeDefined();
                expect(Chart.layouts.configure).toBeDefined();