Skip to content

Commit 2cdf6cd

Browse files
author
Martin Hansen
committed
Formatting
1 parent b3a56b4 commit 2cdf6cd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Plotly.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)