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.
- package/dist/bundle.d.ts +20 -5
- package/dist/bundle.global.js +28 -27
- package/dist/canvas-panel.cjs +6 -6
- package/dist/canvas-panel.d.cts +2 -2
- package/dist/canvas-panel.d.ts +2 -2
- package/dist/canvas-panel.js +1 -1
- package/dist/{chunk-ICQYS35G.js → chunk-FA723YSS.js} +7 -7
- package/dist/chunk-P7XHGETS.js +1 -0
- package/dist/{index-VNY_GL30.d.cts → index-BAwkF_tl.d.cts} +14 -5
- package/dist/{index-BzqDQGvO.d.ts → index-C3XrwwYg.d.ts} +14 -5
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/{useRenderingStrategy-Bg8-k9-n.d.cts → useRenderingStrategy-CoKE915F.d.cts} +7 -1
- package/dist/{useRenderingStrategy-Bg8-k9-n.d.ts → useRenderingStrategy-CoKE915F.d.ts} +7 -1
- package/dist/{utils-CMAqRpk_.d.cts → utils-BKdiug6F.d.cts} +1 -1
- package/dist/{utils-CHozUicY.d.ts → utils-CmwQWQLa.d.ts} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.cts +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-FBET7GLW.js +0 -1
|
@@ -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-
|
|
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-
|
|
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;
|