(scene, bounds)
| 533 | } |
| 534 | |
| 535 | function computeAnnotationBounds(scene, bounds) { |
| 536 | var fullSceneLayout = scene.fullSceneLayout; |
| 537 | var annotations = fullSceneLayout.annotations || []; |
| 538 | |
| 539 | for(var d = 0; d < 3; d++) { |
| 540 | var axisName = axisProperties[d]; |
| 541 | var axLetter = axisName.charAt(0); |
| 542 | var ax = fullSceneLayout[axisName]; |
| 543 | |
| 544 | for(var j = 0; j < annotations.length; j++) { |
| 545 | var ann = annotations[j]; |
| 546 | |
| 547 | if(ann.visible) { |
| 548 | var pos = ax.r2l(ann[axLetter]); |
| 549 | if(!isNaN(pos) && isFinite(pos)) { |
| 550 | bounds[0][d] = Math.min(bounds[0][d], pos); |
| 551 | bounds[1][d] = Math.max(bounds[1][d], pos); |
| 552 | } |
| 553 | } |
| 554 | } |
| 555 | } |
| 556 | } |
| 557 | |
| 558 | proto.plot = function(sceneData, fullLayout, layout) { |
| 559 | var scene = this; |
no outgoing calls
no test coverage detected
searching dependent graphs…