File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ Chart.Element = require('./core/core.element');
17
17
Chart . elements = require ( './elements/index' ) ;
18
18
Chart . Interaction = require ( './core/core.interaction' ) ;
19
19
Chart . layouts = require ( './core/core.layouts' ) ;
20
- Chart . LinearScaleBase = require ( './scales/scale.linearbase' ) ;
21
20
Chart . platform = require ( './platforms/platform' ) ;
22
21
Chart . plugins = require ( './core/core.plugins' ) ;
23
22
Chart . Scale = require ( './core/core.scale' ) ;
@@ -105,6 +104,15 @@ Chart.canvasHelpers = Chart.helpers.canvas;
105
104
*/
106
105
Chart . layoutService = Chart . layouts ;
107
106
107
+ /**
108
+ * Provided for backward compatibility, not available anymore.
109
+ * @namespace Chart.LinearScaleBase
110
+ * @deprecated since version 2.8
111
+ * @todo remove at version 3
112
+ * @private
113
+ */
114
+ Chart . LinearScaleBase = require ( './scales/scale.linearbase' ) ;
115
+
108
116
/**
109
117
* Provided for backward compatibility, instead we should create a new Chart
110
118
* by setting the type in the config (`new Chart(id, {type: '{chart-type}'}`).
Original file line number Diff line number Diff line change @@ -31,6 +31,14 @@ describe('Deprecations', function() {
31
31
expect ( typeof Chart . helpers . aliasPixel ) . toBe ( 'function' ) ;
32
32
} ) ;
33
33
} ) ;
34
+
35
+ describe ( 'Chart.LinearScaleBase' , function ( ) {
36
+ it ( 'should be defined and inherit from Chart.Scale' , function ( ) {
37
+ expect ( Chart . LinearScaleBase ) . toBeDefined ( ) ;
38
+ expect ( typeof Chart . LinearScaleBase ) . toBe ( 'function' ) ;
39
+ expect ( Chart . LinearScaleBase . prototype instanceof Chart . Scale ) . toBeTruthy ( ) ;
40
+ } ) ;
41
+ } ) ;
34
42
} ) ;
35
43
36
44
describe ( 'Version 2.7.3' , function ( ) {
You can’t perform that action at this time.
0 commit comments