()
| 279 | } |
| 280 | |
| 281 | saveCurrentCameraState() { |
| 282 | const target = this.controls.target; |
| 283 | if (this.activeCamera === this.perspectiveCamera) { |
| 284 | this.savedPerspectiveState.position.copy(this.perspectiveCamera.position); |
| 285 | this.savedPerspectiveState.target.copy(target); |
| 286 | } else { |
| 287 | this.savedOrthoState.position.copy(this.orthographicCamera.position); |
| 288 | this.savedOrthoState.target.copy(target); |
| 289 | } |
| 290 | } |
| 291 | |
| 292 | restoreCameraState(mode) { |
| 293 | const isOrtho = mode === "orthographic"; |
no outgoing calls
no test coverage detected