@@ -13,7 +13,7 @@ anchor.style.width = '1000px';
1313
1414function plotButtons ( plots , figDir ) {
1515
16- Object . keys ( plots ) . forEach ( function ( plotname ) {
16+ Object . keys ( plots ) . forEach ( function ( plotname ) {
1717
1818 var button = document . createElement ( 'button' ) ;
1919
@@ -25,7 +25,7 @@ function plotButtons(plots, figDir) {
2525
2626 plotlist . appendChild ( button ) ;
2727
28- button . addEventListener ( 'click' , function ( ) {
28+ button . addEventListener ( 'click' , function ( ) {
2929
3030 var myImage = new Image ( ) ;
3131 myImage . src = figDir + plotname + '.png' ;
@@ -90,7 +90,7 @@ function plotButtons(plots, figDir) {
9090 var myImage = new Image ( ) ;
9191 myImage . src = dataURL ;
9292
93- myImage . onload = function ( ) {
93+ myImage . onload = function ( ) {
9494 myImage . height = scene . container . clientHeight ;
9595 myImage . width = scene . container . clientWidth ;
9696 } ;
@@ -114,17 +114,17 @@ function plotButtons(plots, figDir) {
114114 var mock = require ( '@mocks/gl3d_marker-color.json' ) ;
115115 var statusDiv = document . getElementById ( 'status-info' ) ;
116116
117- pummelButton . addEventListener ( 'click' , function ( ) {
118- setInterval ( function ( ) {
117+ pummelButton . addEventListener ( 'click' , function ( ) {
118+ setInterval ( function ( ) {
119119 var plotDiv = document . createElement ( 'div' ) ;
120120 window . plotDiv = plotDiv ;
121121
122122 plotDiv . id = 'div' + i ;
123123 document . body . appendChild ( plotDiv ) ;
124124
125- Plotly . plot ( plotDiv , mock . data , mock . layout , { staticPlot : true } ) . then ( function ( ) {
125+ Plotly . plot ( plotDiv , mock . data , mock . layout , { staticPlot : true } ) . then ( function ( ) {
126126
127- Plotly . Plots . getSubplotIds ( plotDiv . _fullLayout , 'gl3d' ) . forEach ( function ( key ) {
127+ Plotly . Plots . getSubplotIds ( plotDiv . _fullLayout , 'gl3d' ) . forEach ( function ( key ) {
128128 var scene = plotDiv . _fullLayout [ key ] . _scene ;
129129 scene . destroy ( ) ;
130130 i ++ ;
@@ -146,7 +146,7 @@ function plotButtons(plots, figDir) {
146146 scrapeButton . style . background = 'blue' ;
147147 plotlist . appendChild ( scrapeButton ) ;
148148
149- scrapeButton . addEventListener ( 'click' , function ( ) {
149+ scrapeButton . addEventListener ( 'click' , function ( ) {
150150 Plotly . Snapshot . toSVG ( Tabs . get ( ) ) ;
151151 return ;
152152 } ) ;
0 commit comments