File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -104,14 +104,14 @@ module.exports = function draw(gd) {
104
104
height = yref ? Math . abs ( yref . l2p ( d . sizey ) - yref . l2p ( 0 ) ) : d . sizey * size . h ;
105
105
106
106
// Offsets for anchor positioning
107
- var xOffset = width * anchors . x [ d . xanchor ] . offset + size . l ,
108
- yOffset = height * anchors . y [ d . yanchor ] . offset + size . t ;
107
+ var xOffset = width * anchors . x [ d . xanchor ] . offset ,
108
+ yOffset = height * anchors . y [ d . yanchor ] . offset ;
109
109
110
110
var sizing = anchors . x [ d . xanchor ] . sizing + anchors . y [ d . yanchor ] . sizing ;
111
111
112
112
// Final positions
113
- var xPos = ( xref ? xref . l2p ( d . x ) : d . x * size . w ) + xOffset ,
114
- yPos = ( yref ? yref . l2p ( d . y ) : size . h - d . y * size . h ) + yOffset ;
113
+ var xPos = ( xref ? xref . l2p ( d . x ) + xref . _offset : d . x * size . w + size . l ) + xOffset ,
114
+ yPos = ( yref ? yref . l2p ( d . y ) + yref . _offset : size . h - d . y * size . h + size . t ) + yOffset ;
115
115
116
116
117
117
// Construct the proper aspectRatio attribute
You can’t perform that action at this time.
0 commit comments