File tree 4 files changed +31
-5
lines changed
4 files changed +31
-5
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0" ,
4
4
"description" : " The premier javascript graphing library" ,
5
5
"license" : " MIT" ,
6
- "main" : " ./src/plotly .js" ,
6
+ "main" : " ./src/index .js" ,
7
7
"repository" : {
8
8
"type" : " git" ,
9
9
"url" : " https://github.com/plotly/plotly.js.git"
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Export the plotly.js API methods.
3
+ *
4
+ * This file is browserify'ed into a standalone 'Plotly' object.
5
+ *
6
+ */
7
+
8
+ var Plotly = require ( './plotly' ) ;
9
+
10
+ // plot api
11
+ exports . plot = Plotly . plot ;
12
+ exports . newPlot = Plotly . newPlot ;
13
+ exports . restyle = Plotly . restyle ;
14
+ exports . relayout = Plotly . relayout ;
15
+ exports . redraw = Plotly . redraw ;
16
+ exports . extendTraces = Plotly . extendTraces ;
17
+ exports . prependTraces = Plotly . prependTraces ;
18
+ exports . addTraces = Plotly . addTraces ;
19
+ exports . deleteTraces = Plotly . deleteTraces ;
20
+ exports . moveTraces = Plotly . moveTraces ;
21
+
22
+ // unofficial plot methods, use at your own risk
23
+ exports . Plots = Plotly . Plots ;
24
+ exports . Fx = Plotly . Fx ;
25
+
26
+ // TODO expose snapshot and plot_schema
27
+
28
+ // export d3 used in the bundle
29
+ exports . d3 = require ( 'd3' ) ;
Original file line number Diff line number Diff line change @@ -58,6 +58,3 @@ exports.Snapshot = require('./snapshot/snapshot');
58
58
59
59
// queue for undo/redo
60
60
exports . Queue = require ( './lib/queue' ) ;
61
-
62
- // export d3 used in the bundle
63
- exports . d3 = require ( 'd3' ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ module.exports = {
10
10
pathToSrc : pathToSrc ,
11
11
pathToMocks : path . join ( pathToRoot , 'test/image/mocks' ) ,
12
12
13
- pathToPlotlySrc : path . join ( pathToSrc , 'plotly .js' ) ,
13
+ pathToPlotlySrc : path . join ( pathToSrc , 'index .js' ) ,
14
14
pathToPlotlyDist : path . join ( pathToDist , 'plotly.js' ) ,
15
15
pathToPlotlyDistMin : path . join ( pathToDist , 'plotly.min.js' ) ,
16
16
pathToPlotlyDistWithMeta : path . join ( pathToDist , 'plotly-with-meta.js' ) ,
You can’t perform that action at this time.
0 commit comments