Remove tooltip constructor fallbacks, this.chart and this._chart (#10612)

* remove tooltip fallbacks/backwards compatability in constructor

* increase size limit
This commit is contained in:
Jacco van den Berg 2022-08-22 21:17:40 +02:00 committed by GitHub
parent fc8a63e26b
commit 3c33d87dd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View 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

View 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.

View 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;