Skip to content

Commit

Permalink
cherry-pick(#6877): Set the raw series limits so that we can get the …
Browse files Browse the repository at this point in the history
…raw series limits (#6883)

* Set the raw series limits so that we can get the raw series limits

* fix: `toRaw()` the other gets/sets/deletes

---------

Co-authored-by: Shefali Joshi <[email protected]>
  • Loading branch information
ozyx and shefalijoshi authored Aug 2, 2023
1 parent 0f5d3af commit 796616f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugins/plot/chart/MctChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ export default {
this.alarmSets.splice(this.alarmSets.indexOf(elements.alarmSet), 1);
}

this.seriesElements.delete(series);
this.seriesElements.delete(toRaw(series));

this.clearLimitLines(series);
},
Expand Down Expand Up @@ -555,7 +555,7 @@ export default {
this.alarmSets.push(elements.alarmSet);
}

this.seriesElements.set(series, elements);
this.seriesElements.set(toRaw(series), elements);
},
makeLimitLines(series) {
this.clearLimitLines(series);
Expand All @@ -574,7 +574,7 @@ export default {
this.limitLines.push(limitLine);
}

this.seriesLimits.set(series, limitElements);
this.seriesLimits.set(toRaw(series), limitElements);
},
clearLimitLines(series) {
const seriesLimits = this.seriesLimits.get(toRaw(series));
Expand All @@ -585,7 +585,7 @@ export default {
line.destroy();
}, this);

this.seriesLimits.delete(series);
this.seriesLimits.delete(toRaw(series));
}
},
canDraw(yAxisId) {
Expand Down

0 comments on commit 796616f

Please sign in to comment.