(gd, arg2, arg3, arg4)
| 12 | var readPixel = require('../assets/read_pixel'); |
| 13 | |
| 14 | function _newPlot(gd, arg2, arg3, arg4) { |
| 15 | var fig; |
| 16 | if(Array.isArray(arg2)) { |
| 17 | fig = { |
| 18 | data: arg2, |
| 19 | layout: arg3, |
| 20 | config: arg4 |
| 21 | }; |
| 22 | } else fig = arg2; |
| 23 | |
| 24 | if(!fig.layout) fig.layout = {}; |
| 25 | if(!fig.layout.newselection) fig.layout.newselection = {}; |
| 26 | fig.layout.newselection.mode = 'gradual'; |
| 27 | // complex ouline creation are mainly tested in "gradual" mode here |
| 28 | |
| 29 | return Plotly.newPlot(gd, fig); |
| 30 | } |
| 31 | |
| 32 | function drag(gd, path) { |
| 33 | var len = path.length; |
no outgoing calls
no test coverage detected
searching dependent graphs…