mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix (web): panorama / 360 view - partial panorama: use photo-sphere-viewer (#6992)
* panorama viewer fixes * prettifier * fix
This commit is contained in:
parent
e4561f26e8
commit
2ee9044b6a
4 changed files with 44 additions and 51 deletions
|
|
@ -2,8 +2,7 @@
|
|||
import { fade } from 'svelte/transition';
|
||||
import LoadingSpinner from '../shared-components/loading-spinner.svelte';
|
||||
import { api, type AssetResponseDto } from '@api';
|
||||
import View360, { EquirectProjection } from '@egjs/svelte-view360';
|
||||
import './panorama-viewer.css';
|
||||
import PhotoSphere from './photo-sphere-viewer-adapter.svelte';
|
||||
|
||||
export let asset: AssetResponseDto;
|
||||
|
||||
|
|
@ -34,7 +33,7 @@
|
|||
<LoadingSpinner />
|
||||
{:then assetData}
|
||||
{#if assetData}
|
||||
<View360 autoResize={true} initialZoom={0.5} projection={new EquirectProjection({ src: assetData })} />
|
||||
<PhotoSphere panorama={assetData} />
|
||||
{:else}
|
||||
<p>{errorMessage}</p>
|
||||
{/if}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue