Skip to content

Commit 760a93b

Browse files
change toImage to use height and width if specified in opts
1 parent 4436f3c commit 760a93b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/snapshot/toimage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function toImage(gd, opts) {
2424
var Snapshot = Plotly.Snapshot;
2525
var ev = new EventEmitter();
2626

27-
var clone = Snapshot.clone(gd, {format: 'png'});
27+
var clone = Snapshot.clone(gd, {format: 'png', height: opts.height, width: opts.width});
2828
var clonedGd = clone.td;
2929

3030
// put the cloned div somewhere off screen before attaching to DOM

0 commit comments

Comments
 (0)