mirror of
https://github.com/nasa/openmct.git
synced 2025-06-12 20:28:14 +00:00
[Plot] Integrate PlotPanZoomStackGroup
Utilize PlotPanZoomStackGroup; that is, utilize changes such that a set of pan-zoom stacks can be treated as one, while their domain axis synchronizes, and their range axis does not. WTD-625.
This commit is contained in:
@ -16,19 +16,13 @@ define(
|
||||
stack.pushPanZoom(origin, dimensions);
|
||||
} else {
|
||||
stack.pushPanZoom(
|
||||
[ origin[0], stack.getOrigin[1] ],
|
||||
[ dimensions[0], stack.getDimensions[1] ]
|
||||
[ origin[0], stack.getOrigin()[1] ],
|
||||
[ dimensions[0], stack.getDimensions()[1] ]
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function setBasePanZoom(origin, dimensions, index) {
|
||||
stacks.forEach(function (stack, i) {
|
||||
stack.setBasePanZoom(origin, dimensions);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function popPanZoom() {
|
||||
stacks.forEach(function (stack) {
|
||||
@ -36,6 +30,12 @@ define(
|
||||
});
|
||||
}
|
||||
|
||||
function setBasePanZoom(origin, dimensions) {
|
||||
stacks.forEach(function (stack) {
|
||||
stack.setBasePanZoom(origin, dimensions);
|
||||
});
|
||||
}
|
||||
|
||||
function clearPanZoom() {
|
||||
stacks.forEach(function (stack) {
|
||||
stack.popPanZoom();
|
||||
@ -48,11 +48,11 @@ define(
|
||||
result.pushPanZoom = function (origin, dimensions) {
|
||||
pushPanZoom(origin, dimensions, index);
|
||||
};
|
||||
result.setBasePanZoom = function (origin, dimensions) {
|
||||
|
||||
};
|
||||
result.setBasePanZoom = setBasePanZoom;
|
||||
result.popPanZoom = popPanZoom;
|
||||
result.clearPanZoom = clearPanZoom;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
for (i = 0; i < count; i += 1) {
|
||||
@ -69,6 +69,9 @@ define(
|
||||
},
|
||||
getPanZoomStack: function (index) {
|
||||
return decoratedStacks[index];
|
||||
},
|
||||
getPanZoomStacks: function () {
|
||||
return decoratedStacks;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user