(gd, arg2, arg3, arg4)
| 18 | var sankeyConstants = require('../../../src/traces/sankey/constants'); |
| 19 | |
| 20 | function _newPlot(gd, arg2, arg3, arg4) { |
| 21 | var fig; |
| 22 | if(Array.isArray(arg2)) { |
| 23 | fig = { |
| 24 | data: arg2, |
| 25 | layout: arg3, |
| 26 | config: arg4 |
| 27 | }; |
| 28 | } else fig = arg2; |
| 29 | |
| 30 | if(!fig.layout) fig.layout = {}; |
| 31 | if(!fig.layout.newselection) fig.layout.newselection = {}; |
| 32 | fig.layout.newselection.mode = 'gradual'; |
| 33 | // complex ouline creation are mainly tested in 'gradual' mode here |
| 34 | return Plotly.newPlot(gd, fig); |
| 35 | } |
| 36 | |
| 37 | function drag(path, options) { |
| 38 | var len = path.length; |
no outgoing calls
no test coverage detected
searching dependent graphs…