@eclipse-scout/chart 22.0.0-beta.1 → 22.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2108,6 +2108,10 @@ class ChartJsRenderer extends _index__WEBPACK_IMPORTED_MODULE_0__.AbstractChartR
|
|
|
2108
2108
|
}
|
|
2109
2109
|
|
|
2110
2110
|
_renderTooltipLater(context) {
|
|
2111
|
+
if (!this.rendered || this.removing) {
|
|
2112
|
+
return;
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2111
2115
|
let tooltip = context.tooltip,
|
|
2112
2116
|
tooltipItems = tooltip._tooltipItems;
|
|
2113
2117
|
|
|
@@ -3136,7 +3140,7 @@ class ChartJsRenderer extends _index__WEBPACK_IMPORTED_MODULE_0__.AbstractChartR
|
|
|
3136
3140
|
let defaultGenerateLabels = defaultTypeGenerateLabels || chart_js_auto__WEBPACK_IMPORTED_MODULE_1__["default"].defaults.plugins.legend.labels.generateLabels;
|
|
3137
3141
|
let labels = defaultGenerateLabels.call(chart, chart);
|
|
3138
3142
|
|
|
3139
|
-
if (
|
|
3143
|
+
if (this.removing) {
|
|
3140
3144
|
return labels;
|
|
3141
3145
|
}
|
|
3142
3146
|
|
|
@@ -4017,10 +4021,10 @@ class ChartJsRenderer extends _index__WEBPACK_IMPORTED_MODULE_0__.AbstractChartR
|
|
|
4017
4021
|
_remove(afterRemoveFunc) {
|
|
4018
4022
|
if (this.rendered && !this.removing) {
|
|
4019
4023
|
this.removing = true;
|
|
4020
|
-
this.$canvas.remove();
|
|
4021
|
-
this.$canvas = null;
|
|
4022
4024
|
this.chartJs.destroy();
|
|
4023
4025
|
this.chartJs = null;
|
|
4026
|
+
this.$canvas.remove();
|
|
4027
|
+
this.$canvas = null;
|
|
4024
4028
|
}
|
|
4025
4029
|
|
|
4026
4030
|
super._remove(afterRemoveFunc);
|