react-iiif-vault 2.0.8 → 2.0.10

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.
@@ -12,7 +12,7 @@ import { Vault } from '@iiif/helpers/vault';
12
12
  import { Reference, FragmentSelector, SvgSelector, AnnotationPage } from '@iiif/presentation-3';
13
13
  import * as zustand_vanilla from 'zustand/vanilla';
14
14
  import { AnnotationPageNormalized, CanvasNormalized } from '@iiif/presentation-3-normalized';
15
- import { S as SingleAudio, a as SingleVideo, M as MediaStrategy, b as StrategyActions, c as SingleImageStrategy, E as EmptyStrategy, C as ComplexTimelineStrategy, R as RenderingStrategy, I as ImageWithOptionalService } from './useRenderingStrategy-Bg8-k9-n.cjs';
15
+ import { S as SingleAudio, a as SingleVideo, M as MediaStrategy, b as StrategyActions, c as SingleImageStrategy, E as EmptyStrategy, C as ComplexTimelineStrategy, R as RenderingStrategy, I as ImageWithOptionalService } from './useRenderingStrategy-CoKE915F.cjs';
16
16
  import { ChoiceDescription, ImageCandidate, BoxSelector } from '@iiif/helpers';
17
17
 
18
18
  type RenderContextProps = {
@@ -378,13 +378,22 @@ interface AtlasStore {
378
378
  cancelRequest(requestId?: string): void;
379
379
  reset(): void;
380
380
  changeMode(mode: ViewerMode): void;
381
- nudgeLeft(): void;
382
- nudgeRight(): void;
383
- nudgeUp(): void;
384
- nudgeDown(): void;
381
+ nudgeLeft(amount?: number): void;
382
+ nudgeRight(amount?: number): void;
383
+ nudgeUp(amount?: number): void;
384
+ nudgeDown(amount?: number): void;
385
385
  zoomIn(): void;
386
386
  zoomOut(): void;
387
387
  goHome(): void;
388
+ goToRegion(region: {
389
+ x: number;
390
+ y: number;
391
+ width: number;
392
+ height: number;
393
+ padding?: number;
394
+ immediate?: boolean;
395
+ }): void;
396
+ getRuntime(): Runtime | null;
388
397
  }
389
398
  declare function polygonToTarget(polygon: InputShape, on?: {
390
399
  width: number;
@@ -12,7 +12,7 @@ import { Vault } from '@iiif/helpers/vault';
12
12
  import { Reference, FragmentSelector, SvgSelector, AnnotationPage } from '@iiif/presentation-3';
13
13
  import * as zustand_vanilla from 'zustand/vanilla';
14
14
  import { AnnotationPageNormalized, CanvasNormalized } from '@iiif/presentation-3-normalized';
15
- import { S as SingleAudio, a as SingleVideo, M as MediaStrategy, b as StrategyActions, c as SingleImageStrategy, E as EmptyStrategy, C as ComplexTimelineStrategy, R as RenderingStrategy, I as ImageWithOptionalService } from './useRenderingStrategy-Bg8-k9-n.js';
15
+ import { S as SingleAudio, a as SingleVideo, M as MediaStrategy, b as StrategyActions, c as SingleImageStrategy, E as EmptyStrategy, C as ComplexTimelineStrategy, R as RenderingStrategy, I as ImageWithOptionalService } from './useRenderingStrategy-CoKE915F.js';
16
16
  import { ChoiceDescription, ImageCandidate, BoxSelector } from '@iiif/helpers';
17
17
 
18
18
  type RenderContextProps = {
@@ -378,13 +378,22 @@ interface AtlasStore {
378
378
  cancelRequest(requestId?: string): void;
379
379
  reset(): void;
380
380
  changeMode(mode: ViewerMode): void;
381
- nudgeLeft(): void;
382
- nudgeRight(): void;
383
- nudgeUp(): void;
384
- nudgeDown(): void;
381
+ nudgeLeft(amount?: number): void;
382
+ nudgeRight(amount?: number): void;
383
+ nudgeUp(amount?: number): void;
384
+ nudgeDown(amount?: number): void;
385
385
  zoomIn(): void;
386
386
  zoomOut(): void;
387
387
  goHome(): void;
388
+ goToRegion(region: {
389
+ x: number;
390
+ y: number;
391
+ width: number;
392
+ height: number;
393
+ padding?: number;
394
+ immediate?: boolean;
395
+ }): void;
396
+ getRuntime(): Runtime | null;
388
397
  }
389
398
  declare function polygonToTarget(polygon: InputShape, on?: {
390
399
  width: number;