File tree 21 files changed +63
-123
lines changed
21 files changed +63
-123
lines changed Original file line number Diff line number Diff line change 56
56
"d3" : " 3.5.6" ,
57
57
"delaunay-triangulate" : " ^1.1.6" ,
58
58
"es6-promise" : " ^3.0.2" ,
59
+ "fast-isnumeric" : " ^1.1.1" ,
59
60
"gl-error2d" : " ^1.0.0" ,
60
61
"gl-error3d" : " ^1.0.0" ,
61
62
"gl-line2d" : " ^1.2.1" ,
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var Plotly = require ( './plotly' ) ,
4
- d3 = require ( 'd3' ) ,
5
- isNumeric = require ( './ isnumeric' ) ;
3
+ var Plotly = require ( './plotly' ) ;
4
+ var d3 = require ( 'd3' ) ;
5
+ var isNumeric = require ( 'fast- isnumeric' ) ;
6
6
7
7
var annotations = module . exports = { } ;
8
8
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- // ---external global dependencies
4
- /* Promise:false */
5
-
6
- var Plotly = require ( './plotly' ) ,
7
- d3 = require ( 'd3' ) ,
8
- isNumeric = require ( './isnumeric' ) ;
3
+ var Plotly = require ( './plotly' ) ;
4
+ var d3 = require ( 'd3' ) ;
5
+ var isNumeric = require ( 'fast-isnumeric' ) ;
9
6
10
7
var axes = module . exports = { } ;
11
8
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var Plotly = require ( './plotly' ) ,
4
- d3 = require ( 'd3' ) ,
5
- isNumeric = require ( './ isnumeric' ) ;
3
+ var Plotly = require ( './plotly' ) ;
4
+ var d3 = require ( 'd3' ) ;
5
+ var isNumeric = require ( 'fast- isnumeric' ) ;
6
6
7
7
var bars = module . exports = { } ;
8
8
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var Plotly = require ( './plotly' ) ,
4
- d3 = require ( 'd3' ) ,
5
- isNumeric = require ( './ isnumeric' ) ;
3
+ var Plotly = require ( './plotly' ) ;
4
+ var d3 = require ( 'd3' ) ;
5
+ var isNumeric = require ( 'fast- isnumeric' ) ;
6
6
7
7
var boxes = module . exports = { } ;
8
8
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var tinycolor = require ( 'tinycolor2' ) ,
4
- isNumeric = require ( './ isnumeric' ) ;
3
+ var tinycolor = require ( 'tinycolor2' ) ;
4
+ var isNumeric = require ( 'fast- isnumeric' ) ;
5
5
6
6
var color = module . exports = { } ;
7
7
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var Plotly = require ( './plotly' ) ,
4
- d3 = require ( 'd3' ) ,
5
- isNumeric = require ( './ isnumeric' ) ;
3
+ var Plotly = require ( './plotly' ) ;
4
+ var d3 = require ( 'd3' ) ;
5
+ var isNumeric = require ( 'fast- isnumeric' ) ;
6
6
7
7
var colorbar = module . exports = function ( td , id ) {
8
8
// opts: options object, containing everything from attributes
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var Plotly = require ( './plotly' ) ,
4
- d3 = require ( 'd3' ) ,
5
- tinycolor = require ( 'tinycolor2' ) ,
6
- isNumeric = require ( './ isnumeric' ) ;
3
+ var Plotly = require ( './plotly' ) ;
4
+ var d3 = require ( 'd3' ) ;
5
+ var tinycolor = require ( 'tinycolor2' ) ;
6
+ var isNumeric = require ( 'fast- isnumeric' ) ;
7
7
8
8
var colorscale = module . exports = { } ;
9
9
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var Plotly = require ( './plotly' ) ,
4
- d3 = require ( 'd3' ) ,
5
- isNumeric = require ( './ isnumeric' ) ;
3
+ var Plotly = require ( './plotly' ) ;
4
+ var d3 = require ( 'd3' ) ;
5
+ var isNumeric = require ( 'fast- isnumeric' ) ;
6
6
7
7
var drawing = module . exports = { } ;
8
8
Original file line number Diff line number Diff line change 2
2
3
3
/* jshint camelcase: false */
4
4
5
- var Plotly = require ( './plotly' ) ,
6
- d3 = require ( 'd3' ) ,
7
- isNumeric = require ( './ isnumeric' ) ;
5
+ var Plotly = require ( './plotly' ) ;
6
+ var d3 = require ( 'd3' ) ;
7
+ var isNumeric = require ( 'fast- isnumeric' ) ;
8
8
9
9
var errorBars = module . exports = { } ;
10
10
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ var createError = require('gl-error2d');
9
9
10
10
var str2RGBArray = require ( '../../gl3d/lib/str2rgbarray' ) ;
11
11
var formatColor = require ( '../../gl3d/lib/format-color' ) ;
12
- var isNumeric = require ( '../../ isnumeric' ) ;
12
+ var isNumeric = require ( 'fast- isnumeric' ) ;
13
13
14
14
var MARKER_SYMBOLS = require ( '../../gl3d/lib/markers.json' ) ;
15
15
var DASHES = require ( '../lib/dashes.json' ) ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var tinycolor = require ( 'tinycolor2' ) ,
4
- isNumeric = require ( '../../isnumeric' ) ,
5
- str2RgbaArray = require ( './str2rgbarray' ) ,
6
- Plotly = require ( '../../plotly ' ) ;
3
+ var Plotly = require ( '../../plotly' ) ;
4
+ var tinycolor = require ( 'tinycolor2' ) ;
5
+ var isNumeric = require ( 'fast-isnumeric' ) ;
6
+ var str2RgbaArray = require ( './str2rgbarray ' ) ;
7
7
8
8
var colorDflt = Plotly . Color . defaultLine ,
9
9
opacityDflt = 1 ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var Plotly = require ( './plotly' ) ,
4
- d3 = require ( 'd3' ) ,
5
- tinycolor = require ( 'tinycolor2' ) ,
6
- isNumeric = require ( './ isnumeric' ) ,
7
- Events = require ( './events' ) ;
3
+ var Plotly = require ( './plotly' ) ;
4
+ var d3 = require ( 'd3' ) ;
5
+ var tinycolor = require ( 'tinycolor2' ) ;
6
+ var isNumeric = require ( 'fast- isnumeric' ) ;
7
+ var Events = require ( './events' ) ;
8
8
9
9
var fx = module . exports = { } ;
10
10
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- // ---external global dependencies
4
- /* global Promise:false */
5
-
6
- var Plotly = require ( './plotly' ) ,
7
- d3 = require ( 'd3' ) ,
8
- m4FromQuat = require ( 'gl-mat4/fromQuat' ) ,
9
- isNumeric = require ( './isnumeric' ) ,
10
- Events = require ( './events' ) ;
3
+ var Plotly = require ( './plotly' ) ;
4
+ var d3 = require ( 'd3' ) ;
5
+ var m4FromQuat = require ( 'gl-mat4/fromQuat' ) ;
6
+ var isNumeric = require ( 'fast-isnumeric' ) ;
7
+ var Events = require ( './events' ) ;
11
8
12
9
var plots = module . exports = { } ;
13
10
// Most of the generic plotting functions get put into Plotly.Plots,
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var Plotly = require ( './plotly' ) ,
4
- d3 = require ( 'd3' ) ,
5
- tinycolor = require ( 'tinycolor2' ) ,
6
- isNumeric = require ( './ isnumeric' ) ;
3
+ var Plotly = require ( './plotly' ) ;
4
+ var d3 = require ( 'd3' ) ;
5
+ var tinycolor = require ( 'tinycolor2' ) ;
6
+ var isNumeric = require ( 'fast- isnumeric' ) ;
7
7
8
8
var heatmap = module . exports = { } ;
9
9
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var Plotly = require ( './plotly' ) ,
4
- isNumeric = require ( './ isnumeric' ) ,
5
- barAttrs = Plotly . Bars . attributes ;
3
+ var Plotly = require ( './plotly' ) ;
4
+ var isNumeric = require ( 'fast- isnumeric' ) ;
5
+ var barAttrs = Plotly . Bars . attributes ;
6
6
7
7
var histogram = module . exports = { } ;
8
8
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var Plotly = require ( '../plotly' ) ,
4
- d3 = require ( 'd3' ) ,
5
- tinycolor = require ( 'tinycolor2' ) ,
6
- isNumeric = require ( '../ isnumeric' ) ;
3
+ var Plotly = require ( '../plotly' ) ;
4
+ var d3 = require ( 'd3' ) ;
5
+ var tinycolor = require ( 'tinycolor2' ) ;
6
+ var isNumeric = require ( 'fast- isnumeric' ) ;
7
7
8
8
var lib = module . exports = { } ;
9
9
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var Plotly = require ( './plotly' ) ,
4
- d3 = require ( 'd3' ) ,
5
- isNumeric = require ( './ isnumeric' ) ,
6
- tinycolor = require ( 'tinycolor2' ) ;
3
+ var Plotly = require ( './plotly' ) ;
4
+ var d3 = require ( 'd3' ) ;
5
+ var isNumeric = require ( 'fast- isnumeric' ) ;
6
+ var tinycolor = require ( 'tinycolor2' ) ;
7
7
8
8
var pie = module . exports = { } ;
9
9
Original file line number Diff line number Diff line change 2
2
3
3
/* jshint camelcase: false */
4
4
5
- var Plotly = require ( './plotly' ) ,
6
- d3 = require ( 'd3' ) ,
7
- isNumeric = require ( './ isnumeric' ) ;
5
+ var Plotly = require ( './plotly' ) ;
6
+ var d3 = require ( 'd3' ) ;
7
+ var isNumeric = require ( 'fast- isnumeric' ) ;
8
8
9
9
var scatter = module . exports = { } ;
10
10
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var Plotly = require ( './plotly' ) ,
4
- isNumeric = require ( './ isnumeric' ) ;
3
+ var Plotly = require ( './plotly' ) ;
4
+ var isNumeric = require ( 'fast- isnumeric' ) ;
5
5
6
6
var shapes = module . exports = { } ;
7
7
You can’t perform that action at this time.
0 commit comments