chore: automated housekeeping...

This commit is contained in:
Pieter Vander Vennet 2025-04-15 18:18:44 +02:00
parent 79b6927b56
commit 42ded4c1b1
328 changed files with 4062 additions and 1284 deletions

View file

@ -24,12 +24,12 @@ export interface ProvidedImage {
}
export interface PanoramaView {
url: string,
url: string
/**
* 0 - 359
* Degrees in which the picture is taken, with north = 0; going clockwise
*/
northOffset?: number,
northOffset?: number
pitchOffset?: number
}
@ -54,7 +54,6 @@ export interface HotspotProperties {
pitch: number | "auto"
gotoPanorama: Feature<Point, PanoramaView>
}
export default abstract class ImageProvider {
@ -125,7 +124,9 @@ export default abstract class ImageProvider {
public abstract apiUrls(): string[]
public abstract getPanoramaInfo(image: { id: string }): Promise<Feature<Point, PanoramaView>> | undefined;
public abstract getPanoramaInfo(image: {
id: string
}): Promise<Feature<Point, PanoramaView>> | undefined
public static async offerImageAsDownload(image: ProvidedImage) {
const response = await fetch(image.url_hd ?? image.url)
@ -134,5 +135,4 @@ export default abstract class ImageProvider {
mimetype: "image/jpg",
})
}
}