mirror of
https://github.com/nasa/openmct.git
synced 2025-06-01 23:20:50 +00:00
[Plot] Remove unused function
Remove unused function related to enforcing fixed duration in plots, WTD-1273.
This commit is contained in:
parent
d6a31dcef3
commit
d1dc2da4c8
@ -136,7 +136,7 @@ define(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Update dimensions and origin based on extrema of plots
|
// Update dimensions and origin based on extrema of plots
|
||||||
function updateExtrema() {
|
function updateBounds() {
|
||||||
if (bufferArray.length > 0) {
|
if (bufferArray.length > 0) {
|
||||||
domainExtrema = bufferArray.map(function (lineBuffer) {
|
domainExtrema = bufferArray.map(function (lineBuffer) {
|
||||||
return lineBuffer.getDomainExtrema();
|
return lineBuffer.getDomainExtrema();
|
||||||
@ -179,7 +179,7 @@ define(
|
|||||||
(domainExtrema[1] - domainExtrema[0] > fixedDuration)) {
|
(domainExtrema[1] - domainExtrema[0] > fixedDuration)) {
|
||||||
cutoff = domainExtrema[1] - fixedDuration;
|
cutoff = domainExtrema[1] - fixedDuration;
|
||||||
bufferArray.forEach(enforceDurationForBuffer);
|
bufferArray.forEach(enforceDurationForBuffer);
|
||||||
updateExtrema(); // Extrema may have changed now
|
updateBounds(); // Extrema may have changed now
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -194,15 +194,6 @@ define(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update plot extremea and enforce maximum duration
|
|
||||||
function updateBounds() {
|
|
||||||
updateExtrema();
|
|
||||||
// Currently not called; this will trim out off-screen
|
|
||||||
// data from the plot, but doing this will disallow things
|
|
||||||
// like pan-back, so debatable if we really want to do this
|
|
||||||
//enforceDuration();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Handle new telemetry data
|
// Handle new telemetry data
|
||||||
function update() {
|
function update() {
|
||||||
var objects = handle.getTelemetryObjects();
|
var objects = handle.getTelemetryObjects();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user