File size: 520 Bytes
9b157c1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<script lang="ts">
    export let div_id: string;
    export let panorama: string;
    export let height: number = 400;

    import { onMount } from 'svelte';
    import "pannellum";
    import 'pannellum/build/pannellum.css'

    onMount(() => {
        window.pannellum.viewer(
            div_id, {
            "type": "equirectangular",
            "panorama": panorama,
            });
        });
</script>

<!-- <div id="div-pannellum" alt={alt_text}></div> -->
<div id={div_id} style="height: {height}px;"></div>