@eclipse-scout/chart 22.0.0-beta.1 → 22.0.0-beta.10
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.
- package/dist/eclipse-scout-chart-theme-dark.css.map +1 -1
- package/dist/eclipse-scout-chart-theme.css.map +1 -1
- package/dist/eclipse-scout-chart.js +9 -3
- package/dist/eclipse-scout-chart.js.map +1 -1
- package/package.json +3 -3
- package/src/chart/Chart.js +2 -0
- package/src/chart/ChartJsRenderer.js +6 -3
|
@@ -953,6 +953,8 @@ class Chart extends _eclipse_scout_core__WEBPACK_IMPORTED_MODULE_1__.Widget {
|
|
|
953
953
|
if (this._updateChartOpts) {
|
|
954
954
|
// Inherit 'true' values from previously scheduled updates
|
|
955
955
|
opts.requestAnimation = opts.requestAnimation || this._updateChartOpts.requestAnimation;
|
|
956
|
+
opts.onlyUpdateData = opts.onlyUpdateData || this._updateChartOpts.onlyUpdateData;
|
|
957
|
+
opts.onlyRefresh = opts.onlyRefresh || this._updateChartOpts.onlyRefresh;
|
|
956
958
|
}
|
|
957
959
|
|
|
958
960
|
this._updateChartTimeoutId = null;
|
|
@@ -2108,6 +2110,10 @@ class ChartJsRenderer extends _index__WEBPACK_IMPORTED_MODULE_0__.AbstractChartR
|
|
|
2108
2110
|
}
|
|
2109
2111
|
|
|
2110
2112
|
_renderTooltipLater(context) {
|
|
2113
|
+
if (!this.rendered || this.removing) {
|
|
2114
|
+
return;
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2111
2117
|
let tooltip = context.tooltip,
|
|
2112
2118
|
tooltipItems = tooltip._tooltipItems;
|
|
2113
2119
|
|
|
@@ -3136,7 +3142,7 @@ class ChartJsRenderer extends _index__WEBPACK_IMPORTED_MODULE_0__.AbstractChartR
|
|
|
3136
3142
|
let defaultGenerateLabels = defaultTypeGenerateLabels || chart_js_auto__WEBPACK_IMPORTED_MODULE_1__["default"].defaults.plugins.legend.labels.generateLabels;
|
|
3137
3143
|
let labels = defaultGenerateLabels.call(chart, chart);
|
|
3138
3144
|
|
|
3139
|
-
if (
|
|
3145
|
+
if (this.removing) {
|
|
3140
3146
|
return labels;
|
|
3141
3147
|
}
|
|
3142
3148
|
|
|
@@ -4017,10 +4023,10 @@ class ChartJsRenderer extends _index__WEBPACK_IMPORTED_MODULE_0__.AbstractChartR
|
|
|
4017
4023
|
_remove(afterRemoveFunc) {
|
|
4018
4024
|
if (this.rendered && !this.removing) {
|
|
4019
4025
|
this.removing = true;
|
|
4020
|
-
this.$canvas.remove();
|
|
4021
|
-
this.$canvas = null;
|
|
4022
4026
|
this.chartJs.destroy();
|
|
4023
4027
|
this.chartJs = null;
|
|
4028
|
+
this.$canvas.remove();
|
|
4029
|
+
this.$canvas = null;
|
|
4024
4030
|
}
|
|
4025
4031
|
|
|
4026
4032
|
super._remove(afterRemoveFunc);
|