(controls: unknown)
| 15 | * Get current camera view state from the R3F controls object used by URL sharing. |
| 16 | */ |
| 17 | export function getControlsViewState(controls: unknown): CameraViewState | null { |
| 18 | if (!hasCurrentViewStateReader(controls)) return null; |
| 19 | return controls.getCurrentViewState(); |
| 20 | } |
no test coverage detected