File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,8 @@ export default {
102102 },
103103 ... methods,
104104 toImage (options ) {
105- var el = this .$refs .container
106- var opts = defaults (options, {
105+ let el = this .$refs .container
106+ let opts = defaults (options, {
107107 format: ' png' ,
108108 width: el .clientWidth ,
109109 height: el .clientHeight
@@ -112,8 +112,8 @@ export default {
112112 return Plotly .toImage (this .$refs .container , opts)
113113 },
114114 downloadImage (options ) {
115- var el = this .$refs .container
116- var opts = defaults (options, {
115+ let el = this .$refs .container
116+ let opts = defaults (options, {
117117 format: ' png' ,
118118 width: el .clientWidth ,
119119 height: el .clientHeight ,
@@ -126,7 +126,7 @@ export default {
126126 return Plotly .plot (this .$refs .container , this .data , this .internalLayout , this .options )
127127 },
128128 newPlot () {
129- var el = this .$refs .container
129+ let el = this .$refs .container
130130 let opts = this .options
131131
132132 // if width/height is not specified for toImageButton, default to el.clientWidth/clientHeight
You can’t perform that action at this time.
0 commit comments