Feature(360): attempt to fix CSP

This commit is contained in:
Pieter Vander Vennet 2025-03-30 19:38:36 +02:00
parent a30f25f42a
commit 558b19f8d7
5 changed files with 132 additions and 55 deletions

View file

@ -33,6 +33,30 @@ export interface PanoramaView {
pitchOffset?: number
}
/**
* The property of "nearbyFeatures" in ImagePreview.svelte.
* These properties declare how they are rendered
*/
export interface HotspotProperties {
/**
* The popup text when hovering
*/
name: string
/**
* If true: the panorama view will automatically turn towards this object
*/
focus: boolean
/**
* The pitch degrees to display this.
* If "auto": will determine the pitch automatically based on distance
*/
pitch: number | "auto"
gotoPanorama: Feature<Point, PanoramaView>
}
export default abstract class ImageProvider {
public abstract readonly defaultKeyPrefixes: string[]