Skip to content
Permalink
Browse files

Formatting

  • Loading branch information...
Martin Hansen
Martin Hansen committed Apr 24, 2019
1 parent b3a56b4 commit 2cdf6cdbb72e2cf613d271538f66d52cfc128e4d
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/Plotly.vue
@@ -102,8 +102,8 @@ export default {
},
...methods,
toImage(options) {
var el = this.$refs.container
var opts = defaults(options, {
let el = this.$refs.container
let opts = defaults(options, {
format: 'png',
width: el.clientWidth,
height: el.clientHeight
@@ -112,8 +112,8 @@ export default {
return Plotly.toImage(this.$refs.container, opts)
},
downloadImage(options) {
var el = this.$refs.container
var opts = defaults(options, {
let el = this.$refs.container
let opts = defaults(options, {
format: 'png',
width: el.clientWidth,
height: el.clientHeight,
@@ -126,7 +126,7 @@ export default {
return Plotly.plot(this.$refs.container, this.data, this.internalLayout, this.options)
},
newPlot() {
var el = this.$refs.container
let el = this.$refs.container
let opts = this.options
// if width/height is not specified for toImageButton, default to el.clientWidth/clientHeight

0 comments on commit 2cdf6cd

Please sign in to comment.
You can’t perform that action at this time.