triiiceratops 0.11.2 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/{ArrowCounterClockwise-B_hB6fl1.js → ArrowCounterClockwise-CM9mGGcp.js} +1 -1
  2. package/dist/X-Bn7S7vUL.js +963 -0
  3. package/dist/{annotation_tool_point-rZvdAtGa.js → annotation_tool_point-LoRp_nrI.js} +1 -1
  4. package/dist/components/DemoHeader.svelte +69 -0
  5. package/dist/components/MetadataDialog.svelte +20 -4
  6. package/dist/components/OSDViewer.svelte +31 -1
  7. package/dist/components/ThumbnailGallery.svelte +226 -35
  8. package/dist/components/Toolbar.svelte +102 -3
  9. package/dist/components/TriiiceratopsViewer.svelte +37 -12
  10. package/dist/{image_filters_reset-CAUhlDWt.js → image_filters_reset-CmWuQiOc.js} +1 -1
  11. package/dist/paraglide/messages/_index.d.ts +9 -0
  12. package/dist/paraglide/messages/_index.js +10 -1
  13. package/dist/paraglide/messages/settings_toggle_show_viewing_mode.d.ts +4 -0
  14. package/dist/paraglide/messages/settings_toggle_show_viewing_mode.js +33 -0
  15. package/dist/paraglide/messages/show_mode_toggle.d.ts +4 -0
  16. package/dist/paraglide/messages/show_mode_toggle.js +33 -0
  17. package/dist/paraglide/messages/toggle_single_page_mode.d.ts +4 -0
  18. package/dist/paraglide/messages/toggle_single_page_mode.js +33 -0
  19. package/dist/paraglide/messages/toggle_two_page_mode.d.ts +4 -0
  20. package/dist/paraglide/messages/toggle_two_page_mode.js +33 -0
  21. package/dist/paraglide/messages/two_page_mode.d.ts +4 -0
  22. package/dist/paraglide/messages/two_page_mode.js +33 -0
  23. package/dist/paraglide/messages/viewing_mode_individuals.d.ts +4 -0
  24. package/dist/paraglide/messages/viewing_mode_individuals.js +33 -0
  25. package/dist/paraglide/messages/viewing_mode_label.d.ts +4 -0
  26. package/dist/paraglide/messages/viewing_mode_label.js +33 -0
  27. package/dist/paraglide/messages/viewing_mode_paged.d.ts +4 -0
  28. package/dist/paraglide/messages/viewing_mode_paged.js +33 -0
  29. package/dist/paraglide/messages/viewing_mode_shift_pairing.d.ts +4 -0
  30. package/dist/paraglide/messages/viewing_mode_shift_pairing.js +33 -0
  31. package/dist/plugins/annotation-editor.js +3 -3
  32. package/dist/plugins/image-manipulation.js +3 -3
  33. package/dist/state/viewer.svelte.d.ts +18 -0
  34. package/dist/state/viewer.svelte.js +142 -8
  35. package/dist/triiiceratops-bundle.js +3068 -2514
  36. package/dist/triiiceratops-element.iife.js +25 -25
  37. package/dist/triiiceratops.css +1 -1
  38. package/dist/types/config.d.ts +33 -0
  39. package/package.json +1 -1
  40. package/dist/X-Boj9jj2h.js +0 -890
@@ -234,6 +234,19 @@
234
234
 
235
235
  // Use Manifesto to get images
236
236
  let images = canvas.getImages();
237
+ if (internalViewerState.viewingMode === 'paged') {
238
+ // Single pages at the start: pagedOffset (default 0, shifted = 1)
239
+ const singlePages = internalViewerState.pagedOffset;
240
+ // Only show two-page spread if we're past the single pages section
241
+ if (currentCanvasIndex >= singlePages) {
242
+ const nextIndex = currentCanvasIndex + 1;
243
+ if (nextIndex < canvases.length) {
244
+ const nextCanvas = canvases[nextIndex];
245
+ const nextImages = nextCanvas.getImages();
246
+ images = images.concat(nextImages);
247
+ }
248
+ }
249
+ }
237
250
 
238
251
  // Fallback for IIIF v3: iterate content if images is empty
239
252
  if ((!images || !images.length) && canvas.getContent) {
@@ -251,7 +264,14 @@
251
264
  return null;
252
265
  }
253
266
 
254
- const annotation = images[0];
267
+ // Map images to tile sources, in two page mode, this will get two image sources
268
+ const tileSourcesArray = images.map((annotation: any) =>
269
+ getImageService(annotation),
270
+ );
271
+ return tileSourcesArray;
272
+ });
273
+
274
+ function getImageService(annotation: any) {
255
275
  let resource = annotation.getResource ? annotation.getResource() : null;
256
276
 
257
277
  // v3 fallback: getBody
@@ -357,7 +377,7 @@
357
377
  );
358
378
  const url = resourceId;
359
379
  return { type: 'image', url };
360
- });
380
+ }
361
381
  </script>
362
382
 
363
383
  <div
@@ -385,7 +405,11 @@
385
405
 
386
406
  <!-- Gallery (when docked left) -->
387
407
  {#if internalViewerState.showThumbnailGallery && internalViewerState.dockSide === 'left'}
388
- <div class="h-full w-[140px] pointer-events-auto relative">
408
+ <div
409
+ class="h-full pointer-events-auto relative"
410
+ style="width: {internalViewerState.galleryFixedHeight +
411
+ 40}px"
412
+ >
389
413
  <ThumbnailGallery {canvases} />
390
414
  </div>
391
415
  {/if}
@@ -411,7 +435,8 @@
411
435
  <!-- Top Area (Gallery) -->
412
436
  {#if internalViewerState.showThumbnailGallery && internalViewerState.dockSide === 'top'}
413
437
  <div
414
- class="flex-none h-40 w-full pointer-events-auto relative z-20"
438
+ class="flex-none w-full pointer-events-auto relative z-20"
439
+ style="height: {internalViewerState.galleryFixedHeight + 50}px"
415
440
  >
416
441
  <ThumbnailGallery {canvases} />
417
442
  </div>
@@ -438,12 +463,7 @@
438
463
  {manifestData.error}
439
464
  </div>
440
465
  {:else if tileSources}
441
- {#key tileSources}
442
- <OSDViewer
443
- {tileSources}
444
- viewerState={internalViewerState}
445
- />
446
- {/key}
466
+ <OSDViewer {tileSources} viewerState={internalViewerState} />
447
467
  {:else if manifestData && !manifestData.isFetching && !tileSources}
448
468
  <div
449
469
  class="w-full h-full flex items-center justify-center text-base-content/50"
@@ -484,7 +504,8 @@
484
504
  <!-- Bottom Area (Gallery) -->
485
505
  {#if internalViewerState.showThumbnailGallery && internalViewerState.dockSide === 'bottom'}
486
506
  <div
487
- class="flex-none h-40 w-full pointer-events-auto relative z-20"
507
+ class="flex-none w-full pointer-events-auto relative z-20"
508
+ style="height: {internalViewerState.galleryFixedHeight + 50}px"
488
509
  >
489
510
  <ThumbnailGallery {canvases} />
490
511
  </div>
@@ -520,7 +541,11 @@
520
541
 
521
542
  <!-- Gallery (when docked right) -->
522
543
  {#if internalViewerState.showThumbnailGallery && internalViewerState.dockSide === 'right'}
523
- <div class="h-full w-[140px] pointer-events-auto relative">
544
+ <div
545
+ class="h-full pointer-events-auto relative"
546
+ style="width: {internalViewerState.galleryFixedHeight +
547
+ 40}px"
548
+ >
524
549
  <ThumbnailGallery {canvases} />
525
550
  </div>
526
551
  {/if}
@@ -1,4 +1,4 @@
1
- import { a as t } from "./X-Boj9jj2h.js";
1
+ import { a as t } from "./X-Bn7S7vUL.js";
2
2
  const s = (
3
3
  /** @type {(inputs: {}) => LocalizedString} */
4
4
  () => (
@@ -121,4 +121,13 @@ export * from "./image_filters_reset.js";
121
121
  export * from "./annotation_tool_rectangle.js";
122
122
  export * from "./annotation_tool_polygon.js";
123
123
  export * from "./annotation_tool_point.js";
124
+ export * from "./viewing_mode_label.js";
125
+ export * from "./viewing_mode_individuals.js";
126
+ export * from "./viewing_mode_paged.js";
127
+ export * from "./viewing_mode_shift_pairing.js";
128
+ export * from "./settings_toggle_show_viewing_mode.js";
129
+ export * from "./toggle_two_page_mode.js";
130
+ export * from "./toggle_single_page_mode.js";
131
+ export * from "./show_mode_toggle.js";
132
+ export * from "./two_page_mode.js";
124
133
  export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -122,4 +122,13 @@ export * from './image_filters_grayscale.js'
122
122
  export * from './image_filters_reset.js'
123
123
  export * from './annotation_tool_rectangle.js'
124
124
  export * from './annotation_tool_polygon.js'
125
- export * from './annotation_tool_point.js'
125
+ export * from './annotation_tool_point.js'
126
+ export * from './viewing_mode_label.js'
127
+ export * from './viewing_mode_individuals.js'
128
+ export * from './viewing_mode_paged.js'
129
+ export * from './viewing_mode_shift_pairing.js'
130
+ export * from './settings_toggle_show_viewing_mode.js'
131
+ export * from './toggle_two_page_mode.js'
132
+ export * from './toggle_single_page_mode.js'
133
+ export * from './show_mode_toggle.js'
134
+ export * from './two_page_mode.js'
@@ -0,0 +1,4 @@
1
+ export function settings_toggle_show_viewing_mode(inputs?: {}, options?: {
2
+ locale?: "en" | "de";
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -0,0 +1,33 @@
1
+ /* eslint-disable */
2
+ import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
4
+
5
+ const en_settings_toggle_show_viewing_mode = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Show Viewing Mode`)
7
+ };
8
+
9
+ /** @type {(inputs: {}) => LocalizedString} */
10
+ const de_settings_toggle_show_viewing_mode = en_settings_toggle_show_viewing_mode;
11
+
12
+ /**
13
+ * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
14
+ *
15
+ * - Changing this function will be over-written by the next build.
16
+ *
17
+ * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
18
+ * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
19
+ *
20
+ * @param {{}} inputs
21
+ * @param {{ locale?: "en" | "de" }} options
22
+ * @returns {LocalizedString}
23
+ */
24
+ /* @__NO_SIDE_EFFECTS__ */
25
+ export const settings_toggle_show_viewing_mode = (inputs = {}, options = {}) => {
26
+ if (experimentalMiddlewareLocaleSplitting && isServer === false) {
27
+ return /** @type {any} */ (globalThis).__paraglide_ssr.settings_toggle_show_viewing_mode(inputs)
28
+ }
29
+ const locale = options.locale ?? getLocale()
30
+ trackMessageCall("settings_toggle_show_viewing_mode", locale)
31
+ if (locale === "en") return en_settings_toggle_show_viewing_mode(inputs)
32
+ return de_settings_toggle_show_viewing_mode(inputs)
33
+ };
@@ -0,0 +1,4 @@
1
+ export function show_mode_toggle(inputs?: {}, options?: {
2
+ locale?: "en" | "de";
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -0,0 +1,33 @@
1
+ /* eslint-disable */
2
+ import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
4
+
5
+ const de_show_mode_toggle = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Modus-Umschalter anzeigen`)
7
+ };
8
+
9
+ /** @type {(inputs: {}) => LocalizedString} */
10
+ const en_show_mode_toggle = () => /** @type {LocalizedString} */ ('show_mode_toggle')
11
+
12
+ /**
13
+ * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
14
+ *
15
+ * - Changing this function will be over-written by the next build.
16
+ *
17
+ * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
18
+ * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
19
+ *
20
+ * @param {{}} inputs
21
+ * @param {{ locale?: "en" | "de" }} options
22
+ * @returns {LocalizedString}
23
+ */
24
+ /* @__NO_SIDE_EFFECTS__ */
25
+ export const show_mode_toggle = (inputs = {}, options = {}) => {
26
+ if (experimentalMiddlewareLocaleSplitting && isServer === false) {
27
+ return /** @type {any} */ (globalThis).__paraglide_ssr.show_mode_toggle(inputs)
28
+ }
29
+ const locale = options.locale ?? getLocale()
30
+ trackMessageCall("show_mode_toggle", locale)
31
+ if (locale === "en") return en_show_mode_toggle(inputs)
32
+ return de_show_mode_toggle(inputs)
33
+ };
@@ -0,0 +1,4 @@
1
+ export function toggle_single_page_mode(inputs?: {}, options?: {
2
+ locale?: "en" | "de";
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -0,0 +1,33 @@
1
+ /* eslint-disable */
2
+ import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
4
+
5
+ const de_toggle_single_page_mode = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Wechseln Sie in den Einzelseitenmodus`)
7
+ };
8
+
9
+ /** @type {(inputs: {}) => LocalizedString} */
10
+ const en_toggle_single_page_mode = () => /** @type {LocalizedString} */ ('toggle_single_page_mode')
11
+
12
+ /**
13
+ * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
14
+ *
15
+ * - Changing this function will be over-written by the next build.
16
+ *
17
+ * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
18
+ * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
19
+ *
20
+ * @param {{}} inputs
21
+ * @param {{ locale?: "en" | "de" }} options
22
+ * @returns {LocalizedString}
23
+ */
24
+ /* @__NO_SIDE_EFFECTS__ */
25
+ export const toggle_single_page_mode = (inputs = {}, options = {}) => {
26
+ if (experimentalMiddlewareLocaleSplitting && isServer === false) {
27
+ return /** @type {any} */ (globalThis).__paraglide_ssr.toggle_single_page_mode(inputs)
28
+ }
29
+ const locale = options.locale ?? getLocale()
30
+ trackMessageCall("toggle_single_page_mode", locale)
31
+ if (locale === "en") return en_toggle_single_page_mode(inputs)
32
+ return de_toggle_single_page_mode(inputs)
33
+ };
@@ -0,0 +1,4 @@
1
+ export function toggle_two_page_mode(inputs?: {}, options?: {
2
+ locale?: "en" | "de";
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -0,0 +1,33 @@
1
+ /* eslint-disable */
2
+ import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
4
+
5
+ const de_toggle_two_page_mode = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Wechseln Sie in den Zwei-Seiten-Modus`)
7
+ };
8
+
9
+ /** @type {(inputs: {}) => LocalizedString} */
10
+ const en_toggle_two_page_mode = () => /** @type {LocalizedString} */ ('toggle_two_page_mode')
11
+
12
+ /**
13
+ * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
14
+ *
15
+ * - Changing this function will be over-written by the next build.
16
+ *
17
+ * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
18
+ * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
19
+ *
20
+ * @param {{}} inputs
21
+ * @param {{ locale?: "en" | "de" }} options
22
+ * @returns {LocalizedString}
23
+ */
24
+ /* @__NO_SIDE_EFFECTS__ */
25
+ export const toggle_two_page_mode = (inputs = {}, options = {}) => {
26
+ if (experimentalMiddlewareLocaleSplitting && isServer === false) {
27
+ return /** @type {any} */ (globalThis).__paraglide_ssr.toggle_two_page_mode(inputs)
28
+ }
29
+ const locale = options.locale ?? getLocale()
30
+ trackMessageCall("toggle_two_page_mode", locale)
31
+ if (locale === "en") return en_toggle_two_page_mode(inputs)
32
+ return de_toggle_two_page_mode(inputs)
33
+ };
@@ -0,0 +1,4 @@
1
+ export function two_page_mode(inputs?: {}, options?: {
2
+ locale?: "en" | "de";
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -0,0 +1,33 @@
1
+ /* eslint-disable */
2
+ import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
4
+
5
+ const de_two_page_mode = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Zwei-Seiten-Modus`)
7
+ };
8
+
9
+ /** @type {(inputs: {}) => LocalizedString} */
10
+ const en_two_page_mode = () => /** @type {LocalizedString} */ ('two_page_mode')
11
+
12
+ /**
13
+ * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
14
+ *
15
+ * - Changing this function will be over-written by the next build.
16
+ *
17
+ * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
18
+ * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
19
+ *
20
+ * @param {{}} inputs
21
+ * @param {{ locale?: "en" | "de" }} options
22
+ * @returns {LocalizedString}
23
+ */
24
+ /* @__NO_SIDE_EFFECTS__ */
25
+ export const two_page_mode = (inputs = {}, options = {}) => {
26
+ if (experimentalMiddlewareLocaleSplitting && isServer === false) {
27
+ return /** @type {any} */ (globalThis).__paraglide_ssr.two_page_mode(inputs)
28
+ }
29
+ const locale = options.locale ?? getLocale()
30
+ trackMessageCall("two_page_mode", locale)
31
+ if (locale === "en") return en_two_page_mode(inputs)
32
+ return de_two_page_mode(inputs)
33
+ };
@@ -0,0 +1,4 @@
1
+ export function viewing_mode_individuals(inputs?: {}, options?: {
2
+ locale?: "en" | "de";
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -0,0 +1,33 @@
1
+ /* eslint-disable */
2
+ import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
4
+
5
+ const en_viewing_mode_individuals = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Individuals`)
7
+ };
8
+
9
+ /** @type {(inputs: {}) => LocalizedString} */
10
+ const de_viewing_mode_individuals = en_viewing_mode_individuals;
11
+
12
+ /**
13
+ * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
14
+ *
15
+ * - Changing this function will be over-written by the next build.
16
+ *
17
+ * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
18
+ * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
19
+ *
20
+ * @param {{}} inputs
21
+ * @param {{ locale?: "en" | "de" }} options
22
+ * @returns {LocalizedString}
23
+ */
24
+ /* @__NO_SIDE_EFFECTS__ */
25
+ export const viewing_mode_individuals = (inputs = {}, options = {}) => {
26
+ if (experimentalMiddlewareLocaleSplitting && isServer === false) {
27
+ return /** @type {any} */ (globalThis).__paraglide_ssr.viewing_mode_individuals(inputs)
28
+ }
29
+ const locale = options.locale ?? getLocale()
30
+ trackMessageCall("viewing_mode_individuals", locale)
31
+ if (locale === "en") return en_viewing_mode_individuals(inputs)
32
+ return de_viewing_mode_individuals(inputs)
33
+ };
@@ -0,0 +1,4 @@
1
+ export function viewing_mode_label(inputs?: {}, options?: {
2
+ locale?: "en" | "de";
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -0,0 +1,33 @@
1
+ /* eslint-disable */
2
+ import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
4
+
5
+ const en_viewing_mode_label = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Viewing Mode`)
7
+ };
8
+
9
+ /** @type {(inputs: {}) => LocalizedString} */
10
+ const de_viewing_mode_label = en_viewing_mode_label;
11
+
12
+ /**
13
+ * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
14
+ *
15
+ * - Changing this function will be over-written by the next build.
16
+ *
17
+ * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
18
+ * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
19
+ *
20
+ * @param {{}} inputs
21
+ * @param {{ locale?: "en" | "de" }} options
22
+ * @returns {LocalizedString}
23
+ */
24
+ /* @__NO_SIDE_EFFECTS__ */
25
+ export const viewing_mode_label = (inputs = {}, options = {}) => {
26
+ if (experimentalMiddlewareLocaleSplitting && isServer === false) {
27
+ return /** @type {any} */ (globalThis).__paraglide_ssr.viewing_mode_label(inputs)
28
+ }
29
+ const locale = options.locale ?? getLocale()
30
+ trackMessageCall("viewing_mode_label", locale)
31
+ if (locale === "en") return en_viewing_mode_label(inputs)
32
+ return de_viewing_mode_label(inputs)
33
+ };
@@ -0,0 +1,4 @@
1
+ export function viewing_mode_paged(inputs?: {}, options?: {
2
+ locale?: "en" | "de";
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -0,0 +1,33 @@
1
+ /* eslint-disable */
2
+ import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
4
+
5
+ const en_viewing_mode_paged = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Paged`)
7
+ };
8
+
9
+ /** @type {(inputs: {}) => LocalizedString} */
10
+ const de_viewing_mode_paged = en_viewing_mode_paged;
11
+
12
+ /**
13
+ * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
14
+ *
15
+ * - Changing this function will be over-written by the next build.
16
+ *
17
+ * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
18
+ * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
19
+ *
20
+ * @param {{}} inputs
21
+ * @param {{ locale?: "en" | "de" }} options
22
+ * @returns {LocalizedString}
23
+ */
24
+ /* @__NO_SIDE_EFFECTS__ */
25
+ export const viewing_mode_paged = (inputs = {}, options = {}) => {
26
+ if (experimentalMiddlewareLocaleSplitting && isServer === false) {
27
+ return /** @type {any} */ (globalThis).__paraglide_ssr.viewing_mode_paged(inputs)
28
+ }
29
+ const locale = options.locale ?? getLocale()
30
+ trackMessageCall("viewing_mode_paged", locale)
31
+ if (locale === "en") return en_viewing_mode_paged(inputs)
32
+ return de_viewing_mode_paged(inputs)
33
+ };
@@ -0,0 +1,4 @@
1
+ export function viewing_mode_shift_pairing(inputs?: {}, options?: {
2
+ locale?: "en" | "de";
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -0,0 +1,33 @@
1
+ /* eslint-disable */
2
+ import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
4
+
5
+ const en_viewing_mode_shift_pairing = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Shift Page Pairing`)
7
+ };
8
+
9
+ /** @type {(inputs: {}) => LocalizedString} */
10
+ const de_viewing_mode_shift_pairing = en_viewing_mode_shift_pairing;
11
+
12
+ /**
13
+ * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
14
+ *
15
+ * - Changing this function will be over-written by the next build.
16
+ *
17
+ * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
18
+ * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
19
+ *
20
+ * @param {{}} inputs
21
+ * @param {{ locale?: "en" | "de" }} options
22
+ * @returns {LocalizedString}
23
+ */
24
+ /* @__NO_SIDE_EFFECTS__ */
25
+ export const viewing_mode_shift_pairing = (inputs = {}, options = {}) => {
26
+ if (experimentalMiddlewareLocaleSplitting && isServer === false) {
27
+ return /** @type {any} */ (globalThis).__paraglide_ssr.viewing_mode_shift_pairing(inputs)
28
+ }
29
+ const locale = options.locale ?? getLocale()
30
+ trackMessageCall("viewing_mode_shift_pairing", locale)
31
+ if (locale === "en") return en_viewing_mode_shift_pairing(inputs)
32
+ return de_viewing_mode_shift_pairing(inputs)
33
+ };
@@ -4,9 +4,9 @@ var K = (V, t, a) => Me(V, typeof t != "symbol" ? t + "" : t, a);
4
4
  import "svelte/internal/disclose-version";
5
5
  import * as e from "svelte/internal/client";
6
6
  import { getContext as He, untrack as Ce, onMount as Le, onDestroy as Se } from "svelte";
7
- import { m as _e, g as ne, l as ze, s as Ie, X as we, c as Te, V as De } from "../X-Boj9jj2h.js";
8
- import { A as Ee } from "../ArrowCounterClockwise-B_hB6fl1.js";
9
- import { q as Ue, h as je, c as Re, j as Pe, k as Oe, t as Be, u as Fe, v as qe, r as We, s as Ke, m as Ne, i as Je, g as Xe, a as Ye, n as Ge, f as Qe, e as $e, b as et, d as tt, o as at, l as ot, p as nt } from "../annotation_tool_point-rZvdAtGa.js";
7
+ import { m as _e, g as ne, l as ze, s as Ie, X as we, c as Te, V as De } from "../X-Bn7S7vUL.js";
8
+ import { A as Ee } from "../ArrowCounterClockwise-CM9mGGcp.js";
9
+ import { q as Ue, h as je, c as Re, j as Pe, k as Oe, t as Be, u as Fe, v as qe, r as We, s as Ke, m as Ne, i as Je, g as Xe, a as Ye, n as Ge, f as Qe, e as $e, b as et, d as tt, o as at, l as ot, p as nt } from "../annotation_tool_point-LoRp_nrI.js";
10
10
  class ue {
11
11
  constructor() {
12
12
  K(this, "id", "localStorage");
@@ -1,9 +1,9 @@
1
1
  import "svelte/internal/disclose-version";
2
2
  import * as e from "svelte/internal/client";
3
3
  import { getContext as s0 } from "svelte";
4
- import { l as l0, s as i0, X as n0, c as o0, V as c0, g as v0 } from "../X-Boj9jj2h.js";
5
- import { A as d0 } from "../ArrowCounterClockwise-B_hB6fl1.js";
6
- import { i as _0, a as g0, b as f0, g as u0, c as h0, e as m0, d as p0, f as b0 } from "../image_filters_reset-CAUhlDWt.js";
4
+ import { l as l0, s as i0, X as n0, c as o0, V as c0, g as v0 } from "../X-Bn7S7vUL.js";
5
+ import { A as d0 } from "../ArrowCounterClockwise-CM9mGGcp.js";
6
+ import { i as _0, a as g0, b as f0, g as u0, c as h0, e as m0, d as p0, f as b0 } from "../image_filters_reset-CmWuQiOc.js";
7
7
  const G = {
8
8
  brightness: 100,
9
9
  contrast: 100,
@@ -16,6 +16,15 @@ export interface ViewerStateSnapshot {
16
16
  searchQuery: string;
17
17
  isFullScreen: boolean;
18
18
  dockSide: string;
19
+ viewingMode: 'individuals' | 'paged';
20
+ galleryPosition: {
21
+ x: number;
22
+ y: number;
23
+ };
24
+ gallerySize: {
25
+ width: number;
26
+ height: number;
27
+ };
19
28
  }
20
29
  export declare class ViewerState {
21
30
  manifestId: string | null;
@@ -33,6 +42,10 @@ export declare class ViewerState {
33
42
  get showToggle(): boolean;
34
43
  get showCanvasNav(): boolean;
35
44
  get showZoomControls(): boolean;
45
+ get galleryFixedHeight(): number;
46
+ get viewingMode(): "individuals" | "paged";
47
+ set viewingMode(value: 'individuals' | 'paged');
48
+ pagedOffset: number;
36
49
  galleryPosition: {
37
50
  x: number;
38
51
  y: number;
@@ -99,6 +112,8 @@ export declare class ViewerState {
99
112
  setViewerElement(element: HTMLElement): void;
100
113
  toggleFullScreen(): void;
101
114
  toggleMetadataDialog(): void;
115
+ setViewingMode(mode: 'individuals' | 'paged'): void;
116
+ togglePagedOffset(): void;
102
117
  searchQuery: string;
103
118
  pendingSearchQuery: string | null;
104
119
  searchResults: any[];
@@ -106,6 +121,9 @@ export declare class ViewerState {
106
121
  showSearchPanel: boolean;
107
122
  toggleSearchPanel(): void;
108
123
  searchAnnotations: any[];
124
+ /**
125
+ * This function now accounts for two-page mode when returning current canvas search annotations offset accordingly.
126
+ */
109
127
  get currentCanvasSearchAnnotations(): any[];
110
128
  search(query: string): Promise<void>;
111
129
  private _performSearch;