Skip to content

Commit a84a5ea

Browse files
committed
rotate radial axis title on angular drag
1 parent efa0005 commit a84a5ea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/plots/polar/polar.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,8 @@ proto.updateAngularDrag = function(fullLayout, polarLayout) {
943943
var a0;
944944

945945
function moveFn(dx, dy) {
946+
var fullLayoutNow = _this.gd._fullLayout;
947+
var polarLayoutNow = fullLayoutNow[_this.id];
946948
var x1 = x0 + dx;
947949
var y1 = y0 + dy;
948950
var a1 = xy2a(x1, y1);
@@ -964,6 +966,7 @@ proto.updateAngularDrag = function(fullLayout, polarLayout) {
964966
layers['angular-line'].select('path').attr('transform', trans);
965967
layers['radial-axis'].attr('transform', trans2);
966968
layers['radial-line'].select('line').attr('transform', trans2);
969+
_this.updateRadialAxisTitle(fullLayoutNow, polarLayoutNow, rrot1);
967970
} else {
968971
_this.clipPaths.forTraces.select('path').attr('transform',
969972
strTranslate(cxx, cyy) + strRotate(da)
@@ -1008,8 +1011,6 @@ proto.updateAngularDrag = function(fullLayout, polarLayout) {
10081011
var moduleCalcData = _this.traceHash[k];
10091012
var moduleCalcDataVisible = Lib.filterVisible(moduleCalcData);
10101013
var _module = moduleCalcData[0][0].trace._module;
1011-
var polarLayoutNow = gd._fullLayout[_this.id];
1012-
10131014
_module.plot(gd, _this, moduleCalcDataVisible, polarLayoutNow);
10141015
}
10151016
}

0 commit comments

Comments
 (0)