mirror of
https://github.com/nasa/openmct.git
synced 2025-06-04 00:20:50 +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}
|
* @returns {Promise}
|
||||||
*/
|
*/
|
||||||
fetch: function (options) {
|
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 || {});
|
options = _.extend({}, { size: 1000, strategy, filters: this.filters }, options || {});
|
||||||
if (!this.unsubscribe) {
|
if (!this.unsubscribe) {
|
||||||
this.unsubscribe = this.openmct
|
this.unsubscribe = this.openmct
|
||||||
|
@ -103,7 +103,7 @@ define([
|
|||||||
var options = {
|
var options = {
|
||||||
size: this.$element[0].offsetWidth,
|
size: this.$element[0].offsetWidth,
|
||||||
domain: this.config.xAxis.get('key'),
|
domain: this.config.xAxis.get('key'),
|
||||||
shouldUseMinMax: this.shouldUseMinMax(series)
|
shouldNotUseMinMax: this.shouldNotUseMinMax(series)
|
||||||
};
|
};
|
||||||
|
|
||||||
series.load(options)
|
series.load(options)
|
||||||
@ -161,8 +161,8 @@ define([
|
|||||||
return config;
|
return config;
|
||||||
};
|
};
|
||||||
|
|
||||||
PlotController.prototype.shouldUseMinMax = function (series) {
|
PlotController.prototype.shouldNotUseMinMax = function (series) {
|
||||||
return series.model.interpolate !== 'none';
|
return series.model.interpolate === 'none';
|
||||||
};
|
};
|
||||||
|
|
||||||
PlotController.prototype.onTimeSystemChange = function (timeSystem) {
|
PlotController.prototype.onTimeSystemChange = function (timeSystem) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user