We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d7a8d2 commit aa64e21Copy full SHA for aa64e21
src/plots/gl2d/scene2d.js
@@ -166,7 +166,7 @@ proto.toImage = function(format) {
166
if(this.staticPlot) this.container.appendChild(STATIC_CANVAS);
167
168
// force redraw
169
- this.glplot.setDirty(true);
+ this.glplot.setDirty();
170
this.glplot.draw();
171
172
// grab context and yank out pixels
@@ -408,6 +408,9 @@ proto.plot = function(fullData, fullLayout) {
408
409
options.merge(fullLayout);
410
glplot.update(options);
411
+
412
+ // force redraw so that promise is returned when rendering is completed
413
+ this.glplot.draw();
414
};
415
416
proto.draw = function() {
0 commit comments