MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / getControlsViewState

Function getControlsViewState

src/hooks/urlStateControlsPolicy.ts:17–20  ·  view source on GitHub ↗
(controls: unknown)

Source from the content-addressed store, hash-verified

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

Callers 3

useUrlStateFunction · 0.90
ShareButtonInnerFunction · 0.85

Calls 1

Tested by

no test coverage detected