Skip to content

Commit d027674

Browse files
committed
Shapes: rename shapePath to getPathString
1 parent 0e522a9 commit d027674

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/shapes/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ function updateShape(gd, index, opt, value) {
329329
var attrs = {
330330
'data-index': index,
331331
'fill-rule': 'evenodd',
332-
d: shapePath(gd, options)
332+
d: getPathString(gd, options)
333333
},
334334
lineColor = options.line.width ?
335335
options.line.color : 'rgba(0,0,0,0)';
@@ -402,7 +402,7 @@ function updateShape(gd, index, opt, value) {
402402
update[astrY1] = options.y1 = p2y(y1 + dy);
403403
}
404404

405-
path.attr('d', shapePath(gd, options));
405+
path.attr('d', getPathString(gd, options));
406406
},
407407
doneFn: function(dragged) {
408408
setCursor(path);
@@ -488,7 +488,7 @@ function getPixelToData(gd, axis, isVertical) {
488488
return pixelToData;
489489
}
490490

491-
function shapePath(gd, options) {
491+
function getPathString(gd, options) {
492492
var type = options.type,
493493
xa = Axes.getFromId(gd, options.xref),
494494
ya = Axes.getFromId(gd, options.yref),

0 commit comments

Comments
 (0)