feat(ui): 360 panorama viewer by pano360 tag

- Detect 'pano360' tag and open the photo in a spherical viewer
- Mini-WebGL equirect viewer (no deps): drag to look, wheel FOV, Space reset
- Load original as origin-clean bitmap; fall back to flat image without WebGL
- 360 indicator in viewer and badge on grid tiles
This commit is contained in:
iu
2026-10-11 17:41:28 +03:00
parent 3311de57c5
commit fc4233cd57
9 changed files with 644 additions and 29 deletions
+8
View File
@@ -0,0 +1,8 @@
import type { Photo } from './types';
export const PANO_TAG = 'pano360';
export function isPanoTag(photo: Photo | null | undefined): boolean {
if (!photo?.tags?.length) return false;
return photo.tags.some((t) => t.name.trim().toLowerCase() === PANO_TAG);
}