Commit 1602d39
authored
Camera controls restructure (#317)
* WIP: Replaced script camera controls with new version
* Updated eslint
* Removed scripts from rollup.config.js
* Fixed types for camera controls
* Fixed focusing
* Fixed wheel and ctor for camera controls
* Moved camera controls into model viewer src
* Removed unnecessary input types from camera controls
* Removed reset method
* Cleaned up focusing
* refactor
* Folded double if statement
* Renamed model to controller
* Refactored camera controls to allow for multiple inputs to be used at once
* Fixed pointer type restrictions
* size fix
* Cleaned up mode switch in camera controls
* Set zoomScaleMin when camera clipping planes changed
* Fixed button management in keyboard and mouse input
* Fixed zooming min distance
* Removed view and updated point to be target
* Fixed zoom max distance
* Removed babel parser
* Reverted point and view
* Fixed angle lerping
* Updated key string to key code
* Added space key to keyboard input
* Replaced old camera controls with new one
* Removed unused code from camera controls
* Added back reset key
* Fix missing newline at end of file in camera-controls.ts
* Minor reorder
* Fixed camera controls start position
* Reduced smoothing to match old camera controls
* Update playcanvas dependency to version 2.9.0-beta.1
* LInt fix
* Update playcanvas dependency to version 2.10.3
* feat: updated control scheme to dynamically switch fly and orbit
* fix: removed focus controller (not used) and pose reset (no change)
* chore: update playcanvas dependency to version 2.10.5
* fix: removed touch sensitivity affecting panning on mobile
* feat: integrate observer for dynamic camera mode switching
* feat: add camera mode buttons with icons for fly and orbit modes
* fix: restyled elements1 parent 8de2c65 commit 1602d39
File tree
13 files changed
+444
-79
lines changed- src
- ui/popup-panel
- static/icons
13 files changed
+444
-79
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
29 | 39 | | |
30 | 40 | | |
31 | 41 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
| |||
0 commit comments