This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adapt camera field to support 2d mode (#233)
* feat: add scene mode selector * update sceneMode syntax * add suport for camera OrthographicOffCenterFrustum * feat: update function of setting scene mode * update camera for OrthographicOffCenterFrustum * fix type errors * feat: set sync fov update when duration is 0 * update CameraField UI with sceneMode 2d * hide FovSlider when in 2d mode * return fov 1 as default when get camera in 2d mode * remove handleMount when sceneMode change * set fov back as requried * remove sceneMode from hook dep * Update src/components/molecules/Visualizer/Engine/Cesium/useEngineRef.ts Co-authored-by: KaWaite <34051327+KaWaite@users.noreply.github.com> * remove unnecessary comment * move the SceneMode definition * recovery the animateFOV * Update src/components/molecules/Visualizer/Engine/ref.ts Co-authored-by: rot1024 <aayhrot@gmail.com> * Update src/components/molecules/Visualizer/Engine/Cesium/useEngineRef.ts Co-authored-by: rot1024 <aayhrot@gmail.com> * update function name * update scene mode key * update jump * add isPerspectiveCamera to control visibility * update get sceneMode and set onlyPosition function * add useSceneMode * add type export * remove undefined from sceneMode * reset sceneMode as 3d Co-authored-by: KaWaite <34051327+KaWaite@users.noreply.github.com> Co-authored-by: rot1024 <aayhrot@gmail.com>
- Loading branch information
1 parent
723486d
commit 172de56
Showing
11 changed files
with
85 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters