From 33df94a9eb5e404c7015f43c8e13f99f20062e57 Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Fri, 9 Oct 2020 16:19:26 -0400 Subject: [PATCH] Set default width/height for toImage to null i.e. rendered size. --- src/plot_api/to_image.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plot_api/to_image.js b/src/plot_api/to_image.js index 11491416f01..45cf5e3ac5a 100644 --- a/src/plot_api/to_image.js +++ b/src/plot_api/to_image.js @@ -29,6 +29,7 @@ var attrs = { width: { valType: 'number', min: 1, + dflt: null, description: [ 'Sets the exported image width.', 'Defaults to the value found in `layout.width`', @@ -38,6 +39,7 @@ var attrs = { height: { valType: 'number', min: 1, + dflt: null, description: [ 'Sets the exported image height.', 'Defaults to the value found in `layout.height`',