Skip to content

Commit 51fc2c6

Browse files
committed
put range 0,1 parts separately into GUI relayout calls
so that user apps that listen to relayouts get the same form as before
1 parent 59a092a commit 51fc2c6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/plots/cartesian/dragbox.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,8 @@ module.exports = function dragBox(gd, plotinfo, x, y, w, h, ns, ew) {
553553
var axId = activeAxIds[i];
554554
doTicks(gd, axId, true);
555555
var ax = getFromId(gd, axId);
556-
updates[ax._name + '.range'] = ax.range.slice();
556+
updates[ax._name + '.range[0]'] = ax.range[0];
557+
updates[ax._name + '.range[1]'] = ax.range[1];
557558
}
558559

559560
function redrawObjs(objArray, method, shortCircuit) {
@@ -824,7 +825,8 @@ function zoomAxRanges(axList, r0Fraction, r1Fraction, updates, linkedAxes) {
824825
axi.l2r(axRangeLinear0 + axRangeLinearSpan * r0Fraction),
825826
axi.l2r(axRangeLinear0 + axRangeLinearSpan * r1Fraction)
826827
];
827-
updates[axi._name + '.range'] = axi.range.slice();
828+
updates[axi._name + '.range[0]'] = axi.range[0];
829+
updates[axi._name + '.range[1]'] = axi.range[1];
828830
}
829831

830832
// zoom linked axes about their centers

0 commit comments

Comments
 (0)