Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b36392e

Browse files
committed
fill in dummy boundingBox object
1 parent a66aa2d commit b36392e

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

src/plots/cartesian/axes.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2023,12 +2023,28 @@ axes.doTicks = function(gd, axid, skipTitle) {
20232023
pos = ax.anchor === 'free' ?
20242024
gs.t + gs.h * (1 - ax.position) :
20252025
gs.t + gs.h * (1 - ax._anchorAxis.domain[{bottom: 0, top: 1}[ax.side]]);
2026-
ax._boundingBox = {top: pos, bottom: pos};
2026+
2027+
ax._boundingBox = {
2028+
top: pos,
2029+
bottom: pos,
2030+
left: ax._offset,
2031+
rigth: ax._offset + ax._length,
2032+
width: ax._length,
2033+
height: 0
2034+
};
20272035
} else {
20282036
pos = ax.anchor === 'free' ?
20292037
gs.l + gs.w * ax.position :
20302038
gs.l + gs.w * ax._anchorAxis.domain[{left: 0, right: 1}[ax.side]];
2031-
ax._boundingBox = {left: pos, right: pos};
2039+
2040+
ax._boundingBox = {
2041+
left: pos,
2042+
right: pos,
2043+
bottom: ax._offset + ax._length,
2044+
top: ax._offset,
2045+
height: ax._length,
2046+
width: 0
2047+
};
20322048
}
20332049
}
20342050

0 commit comments

Comments
 (0)