(x, y, z)
| 1630 | |
| 1631 | // more robust (especially on CI) than update camera via mouse events |
| 1632 | function updateCamera(x, y, z) { |
| 1633 | var scene = gd._fullLayout.scene._scene; |
| 1634 | var camera = scene.getCamera(); |
| 1635 | |
| 1636 | camera.eye = {x: x, y: y, z: z}; |
| 1637 | scene.setViewport({ |
| 1638 | camera: camera, |
| 1639 | aspectratio: gd._fullLayout.scene.aspectratio |
| 1640 | }); |
| 1641 | // need a fairly long delay to let the camera update here |
| 1642 | // 300 was not robust for me (AJ), 500 seems to be. |
| 1643 | return delay(500)(); |
| 1644 | } |
| 1645 | |
| 1646 | it('@gl should move with camera', function(done) { |
| 1647 | Plotly.newPlot(gd, [{ |
no outgoing calls
no test coverage detected
searching dependent graphs…