22
33var Lib = require ( '@src/lib' ) ;
44
5- var plotlist = document . getElementById ( 'plot-list' ) ;
5+ var plotList = document . getElementById ( 'plot-list' ) ;
66var anchor = document . getElementById ( 'embedded-graph' ) ;
77var image = document . getElementById ( 'embedded-image' ) ;
88
@@ -14,18 +14,15 @@ anchor.style.height = '600px';
1414anchor . style . width = '1000px' ;
1515
1616function plotButtons ( plots , figDir ) {
17-
1817 Object . keys ( plots ) . forEach ( function ( plotname ) {
19-
2018 var button = document . createElement ( 'button' ) ;
2119
2220 button . style . cssFloat = 'left' ;
2321 button . style . width = '100px' ;
2422 button . style . height = '40px' ;
25-
2623 button . innerHTML = plotname ;
2724
28- plotlist . appendChild ( button ) ;
25+ plotList . appendChild ( button ) ;
2926
3027 button . addEventListener ( 'click' , function ( ) {
3128
@@ -58,7 +55,7 @@ function plotButtons(plots, figDir) {
5855 snapshot . innerHTML = 'snapshot' ;
5956 snapshot . style . background = 'blue' ;
6057
61- plotlist . appendChild ( snapshot ) ;
58+ plotList . appendChild ( snapshot ) ;
6259
6360 snapshot . addEventListener ( 'click' , function ( ) {
6461
@@ -111,7 +108,7 @@ function plotButtons(plots, figDir) {
111108 pummelButton . style . marginLeft = '25px' ;
112109 pummelButton . innerHTML = 'pummel3d' ;
113110 pummelButton . style . background = 'blue' ;
114- plotlist . appendChild ( pummelButton ) ;
111+ plotList . appendChild ( pummelButton ) ;
115112
116113 var i = 0 ;
117114 var mock = require ( '@mocks/gl3d_marker-color.json' ) ;
@@ -147,7 +144,7 @@ function plotButtons(plots, figDir) {
147144 scrapeButton . style . marginLeft = '25px' ;
148145 scrapeButton . innerHTML = 'scrape SVG' ;
149146 scrapeButton . style . background = 'blue' ;
150- plotlist . appendChild ( scrapeButton ) ;
147+ plotList . appendChild ( scrapeButton ) ;
151148
152149 scrapeButton . addEventListener ( 'click' , function ( ) {
153150 Plotly . Snapshot . toSVG ( Tabs . get ( ) ) ;
0 commit comments