@@ -34,7 +34,7 @@ var STATIC_CANVAS, STATIC_CONTEXT;
34
34
35
35
function render ( scene ) {
36
36
37
- //Update size of svg container
37
+ // update size of svg container
38
38
var svgContainer = scene . svgContainer ;
39
39
var clientRect = scene . container . getBoundingClientRect ( ) ;
40
40
var width = clientRect . width , height = clientRect . height ;
@@ -45,7 +45,7 @@ function render(scene) {
45
45
computeTickMarks ( scene ) ;
46
46
scene . glplot . axes . update ( scene . axesOptions ) ;
47
47
48
- //Check if pick has changed
48
+ // check if pick has changed
49
49
var keys = Object . keys ( scene . traces ) ;
50
50
var lastPicked = null ;
51
51
var selection = scene . glplot . selection ;
@@ -59,7 +59,6 @@ function render(scene) {
59
59
}
60
60
61
61
function formatter ( axisName , val ) {
62
- if ( val === undefined ) return undefined ;
63
62
if ( typeof val === 'string' ) return val ;
64
63
65
64
var axis = scene . fullSceneLayout [ axisName ] ;
@@ -136,9 +135,9 @@ function initializeGLPlot(scene, fullLayout, canvas, gl) {
136
135
autoBounds : false
137
136
} ;
138
137
139
- //For static plots, we reuse the WebGL context as WebKit doesn't collect them
140
- // reliably
141
- if ( scene . staticMode ) {
138
+ // for static plots, we reuse the WebGL context
139
+ // as WebKit doesn't collect them reliably
140
+ if ( scene . staticMode ) {
142
141
if ( ! STATIC_CONTEXT ) {
143
142
STATIC_CANVAS = document . createElement ( 'canvas' ) ;
144
143
try {
@@ -204,13 +203,14 @@ function initializeGLPlot(scene, fullLayout, canvas, gl) {
204
203
205
204
function Scene ( options , fullLayout ) {
206
205
207
- //Create sub container for plot
206
+ // create sub container for plot
208
207
var sceneContainer = document . createElement ( 'div' ) ;
209
208
var plotContainer = options . container ;
210
209
211
210
// keep a ref to the graph div to fire hover+click events
212
211
this . graphDiv = options . graphDiv ;
213
- //Create SVG container for hover text
212
+
213
+ // create SVG container for hover text
214
214
var svgContainer = document . createElementNS (
215
215
'http://www.w3.org/2000/svg' ,
216
216
'svg' ) ;
0 commit comments