MCPcopy Create free account
hub / github.com/DFin/palaeograph / saveCurrentCameraState

Method saveCurrentCameraState

src/sceneManager.js:281–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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";

Callers 5

setCameraModeMethod · 0.95
setCameraViewMethod · 0.95
applyViewMethod · 0.95
animateMethod · 0.95
updateCameraFrameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected