Skip to content

Commit 2911e4f

Browse files
committed
speed up interactive circle edits
1 parent 0ad14d1 commit 2911e4f

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
@@ -40,16 +40,16 @@ module.exports = function displayOutlines(polygons, outlines, dragOptions, nCall
4040
displayOutlines(polygons, outlines, dragOptions, nCalls++);
4141

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

47-
function update() {
47+
function update(opts) {
4848
dragOptions.isActiveShape = false; // i.e. to disable controllers
4949

5050
var updateObject = newShapes(outlines, dragOptions);
5151
if(Object.keys(updateObject).length) {
52-
Registry.call('_guiRelayout', gd, updateObject);
52+
Registry.call((opts || {}).redrawing ? 'relayout' : '_guiRelayout', gd, updateObject);
5353
}
5454
}
5555

0 commit comments

Comments
 (0)