Skip to content

Commit

Permalink
Update minzoomlevel values
Browse files Browse the repository at this point in the history
  • Loading branch information
aksylumoed committed Mar 24, 2024
1 parent 03f205f commit 89719a9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
4 changes: 2 additions & 2 deletions artworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ function displayDzi(index: number): void {
id: "artworkContainer",
prefixUrl: "images/", // Adjust the path to OpenSeadragon images
tileSources: artwork.dziPath,
defaultZoomLevel: 1.0,
defaultZoomLevel: artwork.minZoomLevel,
minZoomLevel: artwork.minZoomLevel,
zoomPerScroll: 1.05,
zoomPerClick: 1.20,
zoomPerClick: 1.05,
showNavigationControl: false,
visibilityRatio: 1.0,
// constrainDuringPan: true,
Expand Down
14 changes: 7 additions & 7 deletions constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const artworks: Artwork[] = [
// imagePath: "https://adndkr-art.s3.eu-north-1.amazonaws.com/png/8.png",
dziPath: "https://adndkr-art.s3.eu-north-1.amazonaws.com/8.dzi",
description: `190cm x 190cm\naluminium dibond, direct print`,
minZoomLevel: 1.5,
minZoomLevel: 1.2,
maxWidthPercentage: "45%",
maxWidthPercentageMobile: "75%"
},
Expand All @@ -25,7 +25,7 @@ export const artworks: Artwork[] = [
// imagePath: "https://adndkr-art.s3.eu-north-1.amazonaws.com/png/5.png",
dziPath: "https://adndkr-art.s3.eu-north-1.amazonaws.com/5.dzi",
description: `95.3cm x 190cm aluminium dibond, direct print`,
minZoomLevel: 1.5,
minZoomLevel: 1.2,
maxWidthPercentage: "25%",
maxWidthPercentageMobile: "50%"
},
Expand All @@ -35,7 +35,7 @@ export const artworks: Artwork[] = [
// imagePath: "https://adndkr-art.s3.eu-north-1.amazonaws.com/png/4.png",
dziPath: "https://adndkr-art.s3.eu-north-1.amazonaws.com/4.dzi",
description: `300cm x 90cm aluminium dibond, direct print`,
minZoomLevel: 1.5,
minZoomLevel: 1.2,
maxWidthPercentage: "70%",
maxWidthPercentageMobile: "80%"
},
Expand All @@ -45,7 +45,7 @@ export const artworks: Artwork[] = [
// imagePath: "https://adndkr-art.s3.eu-north-1.amazonaws.com/png/2.png",
dziPath: "https://adndkr-art.s3.eu-north-1.amazonaws.com/2.dzi",
description: `160cm x 90cm aluminium dibond, direct print`,
minZoomLevel: 1.5,
minZoomLevel: 1.2,
maxWidthPercentage: "60%",
maxWidthPercentageMobile: "80%"
},
Expand All @@ -55,7 +55,7 @@ export const artworks: Artwork[] = [
// imagePath: "https://adndkr-art.s3.eu-north-1.amazonaws.com/png/3.png",
dziPath: "https://adndkr-art.s3.eu-north-1.amazonaws.com/3.dzi",
description: `135cm x 90cm aluminium dibond, direct print`,
minZoomLevel: 1.5,
minZoomLevel: 1.2,
maxWidthPercentage: "60%",
maxWidthPercentageMobile: "80%"
},
Expand All @@ -65,7 +65,7 @@ export const artworks: Artwork[] = [
// imagePath: "https://adndkr-art.s3.eu-north-1.amazonaws.com/png/6.png",
dziPath: "https://adndkr-art.s3.eu-north-1.amazonaws.com/6.dzi",
description: `126.7cm x 190cm aluminium dibond, direct print`,
minZoomLevel: 1.5,
minZoomLevel: 1.2,
maxWidthPercentage: "30%",
maxWidthPercentageMobile: "65%"
},
Expand All @@ -75,7 +75,7 @@ export const artworks: Artwork[] = [
// imagePath: "https://adndkr-art.s3.eu-north-1.amazonaws.com/png/1.png",
dziPath: "https://adndkr-art.s3.eu-north-1.amazonaws.com/1.dzi",
description: `150cm x 100cm aluminium dibond, direct print`,
minZoomLevel: 1.5,
minZoomLevel: 1.2,
maxWidthPercentage: "60%",
maxWidthPercentageMobile: "75%"
},
Expand Down
9 changes: 0 additions & 9 deletions dist/bundle.js.LICENSE.txt

This file was deleted.

0 comments on commit 89719a9

Please sign in to comment.