(data: string)
| 109 | * Decode camera state from Base64URL binary format. |
| 110 | */ |
| 111 | export function decodeCameraStateBinary(data: string): CameraViewState | null { |
| 112 | const bytes = fromBase64Url(data); |
| 113 | if (!bytes || bytes.length !== 72) return null; |
| 114 | return decodeCameraFromBytes(bytes); |
| 115 | } |
| 116 | |
| 117 | /** |
| 118 | * Decode camera state from legacy text format. |
no test coverage detected