]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Remove tooltip constructor fallbacks, `this.chart` and `this._chart` (#10612)
authorJacco van den Berg <jaccoberg2281@gmail.com>
Mon, 22 Aug 2022 19:17:40 +0000 (21:17 +0200)
committerGitHub <noreply@github.com>
Mon, 22 Aug 2022 19:17:40 +0000 (21:17 +0200)
* remove tooltip fallbacks/backwards compatability in constructor

* increase size limit

.size-limit.cjs
docs/migration/v4-migration.md
src/plugins/plugin.tooltip.js

index e201a0ca6a5f8093957099872b213db4531ae57e..c9b0b3fef144745eddd6a6d031f588b4a336ee82 100644 (file)
@@ -41,7 +41,7 @@ module.exports = [
   },
   {
     path: 'dist/chart.js',
-    limit: '22 KB',
+    limit: '22.2 KB',
     import: '{ CategoryScale, LinearScale, LogarithmicScale, RadialLinearScale, TimeScale, TimeSeriesScale }',
     running: false,
     modifyWebpackConfig
index bfbaaa9f0fccae39bff2378b58bf68405e9204d3..566f2e080105dd1adffe7a92f951fc81f3804f15 100644 (file)
@@ -31,3 +31,5 @@ A number of changes were made to the configuration options passed to the `Chart`
 
 ### General
 * Removed fallback to `fontColor` for the legend text and strikethrough color.
+* Removed `config._chart` fallback for `this.chart` in the filler plugin.
+* Removed `this._chart` in the filler plugin.
index a6df147a4a6ceb25447c83b4085dda64210a5ae6..f1b0e9115daf2a386d929afb03aa5c2c23cd9c9d 100644 (file)
@@ -465,9 +465,7 @@ export class Tooltip extends Element {
     this._tooltipItems = [];
     this.$animations = undefined;
     this.$context = undefined;
-    // TODO: V4, remove config._chart and this._chart backward compatibility aliases
-    this.chart = config.chart || config._chart;
-    this._chart = this.chart;
+    this.chart = config.chart;
     this.options = config.options;
     this.dataPoints = undefined;
     this.title = undefined;