mirror of
https://github.com/nasa/openmct.git
synced 2025-02-21 01:42:31 +00:00
fix bugs caused by shouldUseMinMax reported by VISTA (#2555)
This commit is contained in:
parent
b3bc618bb0
commit
28d2194d51
@ -140,7 +140,8 @@ define([
|
||||
* @returns {Promise}
|
||||
*/
|
||||
fetch: function (options) {
|
||||
const strategy = options.shouldUseMinMax ? 'minMax' : undefined;
|
||||
const strategy = options && options.shouldNotUseMinMax ? undefined : 'minMax';
|
||||
|
||||
options = _.extend({}, { size: 1000, strategy, filters: this.filters }, options || {});
|
||||
if (!this.unsubscribe) {
|
||||
this.unsubscribe = this.openmct
|
||||
|
@ -103,7 +103,7 @@ define([
|
||||
var options = {
|
||||
size: this.$element[0].offsetWidth,
|
||||
domain: this.config.xAxis.get('key'),
|
||||
shouldUseMinMax: this.shouldUseMinMax(series)
|
||||
shouldNotUseMinMax: this.shouldNotUseMinMax(series)
|
||||
};
|
||||
|
||||
series.load(options)
|
||||
@ -161,8 +161,8 @@ define([
|
||||
return config;
|
||||
};
|
||||
|
||||
PlotController.prototype.shouldUseMinMax = function (series) {
|
||||
return series.model.interpolate !== 'none';
|
||||
PlotController.prototype.shouldNotUseMinMax = function (series) {
|
||||
return series.model.interpolate === 'none';
|
||||
};
|
||||
|
||||
PlotController.prototype.onTimeSystemChange = function (timeSystem) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user