Skip to content

Commit d017bb7

Browse files
committed
simplify ellipse edit updates
1 parent 0662ae7 commit d017bb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/shapes/draw_newshape/display_outlines.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@ module.exports = function displayOutlines(polygons, outlines, dragOptions, nCall
4242
displayOutlines(polygons, outlines, dragOptions, nCalls++);
4343

4444
if(pointsShapeEllipse(polygons[0])) {
45-
update({redrawing: true});
45+
Registry.getComponentMethod('shapes', 'drawOne')(gd, gd._fullLayout._activeShapeIndex);
4646
}
4747
}
4848

49-
function update(opts) {
49+
function update() {
5050
dragOptions.isActiveShape = false; // i.e. to disable controllers
5151

5252
var updateObject = newShapes(outlines, dragOptions);
5353
if(Object.keys(updateObject).length) {
54-
Registry.call(opts && opts.redrawing ? 'relayout' : '_guiRelayout', gd, updateObject);
54+
Registry.call('_guiRelayout', gd, updateObject);
5555
}
5656
}
5757

0 commit comments

Comments
 (0)