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

Skip to content

Commit c686473

Browse files
committed
Simplify d attr of anchor cross for pixel-sized shapes [2038]
1 parent c806458 commit c686473

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/shapes/draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ function setupDragElement(gd, shapePath, shapeOptions, index, shapeLayer) {
462462
anchorY = helpers.transformPosForSharpStrokeRendering(anchorY, strokeWidth);
463463

464464
var crossHairPath = 'M' + (anchorX - 1) + ',' + (anchorY - 1) +
465-
'l-8,0 l0,-2 l8,0 l0,-8 l2,0 l0,8 l8,0 l0,2 l-8,0 l0,8 l-2,0 Z';
465+
'h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z';
466466

467467
visualCues.attr('d', crossHairPath);
468468
}

0 commit comments

Comments
 (0)