Skip to content

Commit cdf2d37

Browse files
archmojemilykl
authored andcommitted
update shape label while editing an editable shape
1 parent 468363e commit cdf2d37

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/shapes/display_outlines.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = function displayOutlines(polygons, outlines, dragOptions, nCall
3636
// recursive call
3737
displayOutlines(polygons, outlines, dragOptions, nCalls++);
3838

39-
if(pointsOnEllipse(polygons[0])) {
39+
if(pointsOnEllipse(polygons[0]) || dragOptions.hasText) {
4040
update({redrawing: true});
4141
}
4242
}

src/components/shapes/draw.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ function drawOne(gd, index) {
168168
plotinfo: plotinfo,
169169
gd: gd,
170170
editHelpers: editHelpers,
171+
hasText: options.label.text,
171172
isActiveShape: true // i.e. to enable controllers
172173
};
173174

0 commit comments

Comments
 (0)