mirror of
https://github.com/nasa/openmct.git
synced 2025-06-21 08:39:59 +00:00
Set the raw series limits so that we can get the raw series limits (#6877)
* Set the raw series limits so that we can get the raw series limits * fix: `toRaw()` the other gets/sets/deletes --------- Co-authored-by: Jesse Mazzella <jesse.d.mazzella@nasa.gov>
This commit is contained in:
@ -489,7 +489,7 @@ export default {
|
|||||||
this.alarmSets.splice(this.alarmSets.indexOf(elements.alarmSet), 1);
|
this.alarmSets.splice(this.alarmSets.indexOf(elements.alarmSet), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.seriesElements.delete(series);
|
this.seriesElements.delete(toRaw(series));
|
||||||
|
|
||||||
this.clearLimitLines(series);
|
this.clearLimitLines(series);
|
||||||
},
|
},
|
||||||
@ -555,7 +555,7 @@ export default {
|
|||||||
this.alarmSets.push(elements.alarmSet);
|
this.alarmSets.push(elements.alarmSet);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.seriesElements.set(series, elements);
|
this.seriesElements.set(toRaw(series), elements);
|
||||||
},
|
},
|
||||||
makeLimitLines(series) {
|
makeLimitLines(series) {
|
||||||
this.clearLimitLines(series);
|
this.clearLimitLines(series);
|
||||||
@ -574,7 +574,7 @@ export default {
|
|||||||
this.limitLines.push(limitLine);
|
this.limitLines.push(limitLine);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.seriesLimits.set(series, limitElements);
|
this.seriesLimits.set(toRaw(series), limitElements);
|
||||||
},
|
},
|
||||||
clearLimitLines(series) {
|
clearLimitLines(series) {
|
||||||
const seriesLimits = this.seriesLimits.get(toRaw(series));
|
const seriesLimits = this.seriesLimits.get(toRaw(series));
|
||||||
@ -585,7 +585,7 @@ export default {
|
|||||||
line.destroy();
|
line.destroy();
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
this.seriesLimits.delete(series);
|
this.seriesLimits.delete(toRaw(series));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
canDraw(yAxisId) {
|
canDraw(yAxisId) {
|
||||||
|
Reference in New Issue
Block a user