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

Function applyCameraView

src/main.js:1067–1080  ·  view source on GitHub ↗
(view)

Source from the content-addressed store, hash-verified

1065}
1066
1067function applyCameraView(view) {
1068 if (!view) return;
1069 if (view === "free") {
1070 state.cameraView = "free";
1071 scene.setCameraMode(state.cameraMode);
1072 scene.setCameraView("free");
1073 } else {
1074 state.cameraMode = "orthographic";
1075 state.cameraView = view;
1076 scene.setCameraMode("orthographic");
1077 scene.setCameraView(view);
1078 }
1079 updateCameraButtons();
1080}
1081
1082dom.fileInput.addEventListener("change", (event) => {
1083 handleFileList(event.target.files);

Callers 1

main.jsFile · 0.85

Calls 3

updateCameraButtonsFunction · 0.85
setCameraModeMethod · 0.80
setCameraViewMethod · 0.80

Tested by

no test coverage detected