@@ -95,7 +95,7 @@ module.exports = function prepSelect(e, startX, startY, dragOptions, mode) {
95
95
// extras to guide users in keeping a straight selection
96
96
corners . attr ( 'd' , 'M' + poly . xmin + ',' + ( y0 - MINDRAG ) +
97
97
'h-4v' + ( 2 * MINDRAG ) + 'h4Z' +
98
- 'M' + poly . xmax + ',' + ( y0 - MINDRAG ) +
98
+ 'M' + ( poly . xmax - 1 ) + ',' + ( y0 - MINDRAG ) +
99
99
'h4v' + ( 2 * MINDRAG ) + 'h-4Z' ) ;
100
100
101
101
}
@@ -104,7 +104,7 @@ module.exports = function prepSelect(e, startX, startY, dragOptions, mode) {
104
104
poly = polygonTester ( [ [ 0 , y0 ] , [ 0 , y1 ] , [ pw , y1 ] , [ pw , y0 ] ] ) ;
105
105
corners . attr ( 'd' , 'M' + ( x0 - MINDRAG ) + ',' + poly . ymin +
106
106
'v-4h' + ( 2 * MINDRAG ) + 'v4Z' +
107
- 'M' + ( x0 - MINDRAG ) + ',' + poly . ymax +
107
+ 'M' + ( x0 - MINDRAG ) + ',' + ( poly . ymax - 1 ) +
108
108
'v4h' + ( 2 * MINDRAG ) + 'v-4Z' ) ;
109
109
}
110
110
else {
@@ -113,7 +113,8 @@ module.exports = function prepSelect(e, startX, startY, dragOptions, mode) {
113
113
corners . attr ( 'd' , 'M0,0Z' ) ;
114
114
}
115
115
outlines . attr ( 'd' , 'M' + poly . xmin + ',' + poly . ymin +
116
- 'H' + poly . xmax + 'V' + poly . ymax + 'H' + poly . xmin + 'Z' ) ;
116
+ 'H' + ( poly . xmax - 1 ) + 'V' + ( poly . ymax - 1 ) +
117
+ 'H' + poly . xmin + 'Z' ) ;
117
118
}
118
119
else if ( mode === 'lasso' ) {
119
120
pts . addPt ( [ x1 , y1 ] ) ;
0 commit comments