File tree 9 files changed +81
-27
lines changed
9 files changed +81
-27
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var core = require ( './core' ) ;
3
+ var Plotly = require ( './core' ) ;
4
4
5
- core . register ( [
5
+ Plotly . register ( [
6
6
// traces
7
7
require ( './bar' ) ,
8
8
require ( './pie' ) ,
@@ -17,4 +17,10 @@ core.register([
17
17
require ( './calendars' )
18
18
] ) ;
19
19
20
- module . exports = ( function ( Plotly ) { return Plotly ; } ) ( core ) ;
20
+ // Using
21
+ // module.exports = Plotly;
22
+ // here often make unrecognized characters (from d3 - v3) in the bundles
23
+ // For now we use an IIFE https://developer.mozilla.org/en-US/docs/Glossary/IIFE
24
+ // to return the Plotly object.
25
+ // It’s a hack to fix encoding problems and we’ll remove it after we solve those.
26
+ module . exports = ( function ( _Plotly ) { return _Plotly ; } ) ( Plotly ) ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var core = require ( './core' ) ;
3
+ var Plotly = require ( './core' ) ;
4
4
5
- core . register ( [
5
+ Plotly . register ( [
6
6
// traces
7
7
require ( './bar' ) ,
8
8
require ( './box' ) ,
@@ -26,4 +26,10 @@ core.register([
26
26
require ( './calendars' )
27
27
] ) ;
28
28
29
- module . exports = ( function ( Plotly ) { return Plotly ; } ) ( core ) ;
29
+ // Using
30
+ // module.exports = Plotly;
31
+ // here often make unrecognized characters (from d3 - v3) in the bundles
32
+ // For now we use an IIFE https://developer.mozilla.org/en-US/docs/Glossary/IIFE
33
+ // to return the Plotly object.
34
+ // It’s a hack to fix encoding problems and we’ll remove it after we solve those.
35
+ module . exports = ( function ( _Plotly ) { return _Plotly ; } ) ( Plotly ) ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var core = require ( './core' ) ;
3
+ var Plotly = require ( './core' ) ;
4
4
5
- core . register ( [
5
+ Plotly . register ( [
6
6
// traces
7
7
require ( './bar' ) ,
8
8
require ( './histogram' ) ,
@@ -24,4 +24,10 @@ core.register([
24
24
require ( './calendars' )
25
25
] ) ;
26
26
27
- module . exports = ( function ( Plotly ) { return Plotly ; } ) ( core ) ;
27
+ // Using
28
+ // module.exports = Plotly;
29
+ // here often make unrecognized characters (from d3 - v3) in the bundles
30
+ // For now we use an IIFE https://developer.mozilla.org/en-US/docs/Glossary/IIFE
31
+ // to return the Plotly object.
32
+ // It’s a hack to fix encoding problems and we’ll remove it after we solve those.
33
+ module . exports = ( function ( _Plotly ) { return _Plotly ; } ) ( Plotly ) ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var core = require ( './core' ) ;
3
+ var Plotly = require ( './core' ) ;
4
4
5
- core . register ( [
5
+ Plotly . register ( [
6
6
// traces
7
7
require ( './scattergeo' ) ,
8
8
require ( './choropleth' ) ,
@@ -17,4 +17,10 @@ core.register([
17
17
require ( './calendars' )
18
18
] ) ;
19
19
20
- module . exports = ( function ( Plotly ) { return Plotly ; } ) ( core ) ;
20
+ // Using
21
+ // module.exports = Plotly;
22
+ // here often make unrecognized characters (from d3 - v3) in the bundles
23
+ // For now we use an IIFE https://developer.mozilla.org/en-US/docs/Glossary/IIFE
24
+ // to return the Plotly object.
25
+ // It’s a hack to fix encoding problems and we’ll remove it after we solve those.
26
+ module . exports = ( function ( _Plotly ) { return _Plotly ; } ) ( Plotly ) ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var core = require ( './core' ) ;
3
+ var Plotly = require ( './core' ) ;
4
4
5
- core . register ( [
5
+ Plotly . register ( [
6
6
// traces
7
7
require ( './scattergl' ) ,
8
8
require ( './splom' ) ,
@@ -20,4 +20,10 @@ core.register([
20
20
require ( './calendars' )
21
21
] ) ;
22
22
23
- module . exports = ( function ( Plotly ) { return Plotly ; } ) ( core ) ;
23
+ // Using
24
+ // module.exports = Plotly;
25
+ // here often make unrecognized characters (from d3 - v3) in the bundles
26
+ // For now we use an IIFE https://developer.mozilla.org/en-US/docs/Glossary/IIFE
27
+ // to return the Plotly object.
28
+ // It’s a hack to fix encoding problems and we’ll remove it after we solve those.
29
+ module . exports = ( function ( _Plotly ) { return _Plotly ; } ) ( Plotly ) ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var core = require ( './core' ) ;
3
+ var Plotly = require ( './core' ) ;
4
4
5
- core . register ( [
5
+ Plotly . register ( [
6
6
// traces
7
7
require ( './scatter3d' ) ,
8
8
require ( './surface' ) ,
@@ -22,4 +22,10 @@ core.register([
22
22
require ( './calendars' )
23
23
] ) ;
24
24
25
- module . exports = ( function ( Plotly ) { return Plotly ; } ) ( core ) ;
25
+ // Using
26
+ // module.exports = Plotly;
27
+ // here often make unrecognized characters (from d3 - v3) in the bundles
28
+ // For now we use an IIFE https://developer.mozilla.org/en-US/docs/Glossary/IIFE
29
+ // to return the Plotly object.
30
+ // It’s a hack to fix encoding problems and we’ll remove it after we solve those.
31
+ module . exports = ( function ( _Plotly ) { return _Plotly ; } ) ( Plotly ) ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var core = require ( './core' ) ;
3
+ var Plotly = require ( './core' ) ;
4
4
5
- core . register ( [
5
+ Plotly . register ( [
6
6
// traces
7
7
require ( './scattermapbox' ) ,
8
8
require ( './choroplethmapbox' ) ,
@@ -18,4 +18,10 @@ core.register([
18
18
require ( './calendars' )
19
19
] ) ;
20
20
21
- module . exports = ( function ( Plotly ) { return Plotly ; } ) ( core ) ;
21
+ // Using
22
+ // module.exports = Plotly;
23
+ // here often make unrecognized characters (from d3 - v3) in the bundles
24
+ // For now we use an IIFE https://developer.mozilla.org/en-US/docs/Glossary/IIFE
25
+ // to return the Plotly object.
26
+ // It’s a hack to fix encoding problems and we’ll remove it after we solve those.
27
+ module . exports = ( function ( _Plotly ) { return _Plotly ; } ) ( Plotly ) ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var core = require ( './core' ) ;
3
+ var Plotly = require ( './core' ) ;
4
4
5
- core . register ( [
5
+ Plotly . register ( [
6
6
// traces
7
7
require ( './bar' ) ,
8
8
require ( './box' ) ,
@@ -51,4 +51,10 @@ core.register([
51
51
require ( './calendars' )
52
52
] ) ;
53
53
54
- module . exports = ( function ( Plotly ) { return Plotly ; } ) ( core ) ;
54
+ // Using
55
+ // module.exports = Plotly;
56
+ // here often make unrecognized characters (from d3 - v3) in the bundles
57
+ // For now we use an IIFE https://developer.mozilla.org/en-US/docs/Glossary/IIFE
58
+ // to return the Plotly object.
59
+ // It’s a hack to fix encoding problems and we’ll remove it after we solve those.
60
+ module . exports = ( function ( _Plotly ) { return _Plotly ; } ) ( Plotly ) ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var core = require ( './core' ) ;
3
+ var Plotly = require ( './core' ) ;
4
4
5
- core . register ( [
5
+ Plotly . register ( [
6
6
// traces
7
7
require ( './bar' ) ,
8
8
require ( './box' ) ,
@@ -60,4 +60,10 @@ core.register([
60
60
require ( './calendars' )
61
61
] ) ;
62
62
63
- module . exports = ( function ( Plotly ) { return Plotly ; } ) ( core ) ;
63
+ // Using
64
+ // module.exports = Plotly;
65
+ // here often make unrecognized characters (from d3 - v3) in the bundles
66
+ // For now we use an IIFE https://developer.mozilla.org/en-US/docs/Glossary/IIFE
67
+ // to return the Plotly object.
68
+ // It’s a hack to fix encoding problems and we’ll remove it after we solve those.
69
+ module . exports = ( function ( _Plotly ) { return _Plotly ; } ) ( Plotly ) ;
You can’t perform that action at this time.
0 commit comments