react-iiif-vault 1.5.9 → 2.0.0
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 +1015 -494
- package/dist/bundle.global.js +54 -87
- package/dist/canvas-panel.cjs +5 -5
- package/dist/canvas-panel.d.cts +8 -5
- package/dist/canvas-panel.d.ts +8 -5
- package/dist/canvas-panel.js +1 -1
- package/dist/chunk-JX3DXSPO.js +48 -0
- package/dist/index-CawyvZZf.d.cts +643 -0
- package/dist/index-yy_738ck.d.ts +643 -0
- package/dist/index.cjs +7 -7
- package/dist/index.d.cts +478 -378
- package/dist/index.d.ts +478 -378
- package/dist/index.js +1 -1
- package/dist/{useRenderingStrategy-BiuSDiXu.d.ts → useRenderingStrategy-PvoNjiMV.d.cts} +10 -10
- package/dist/{useRenderingStrategy-BiuSDiXu.d.cts → useRenderingStrategy-PvoNjiMV.d.ts} +10 -10
- package/dist/{utils-CvRzsfRK.d.cts → utils-BVhGgVd5.d.cts} +18 -18
- package/dist/{utils-C-h4SU3S.d.ts → utils-DyrEcegR.d.ts} +18 -18
- package/dist/utils.d.cts +2 -2
- package/dist/utils.d.ts +2 -2
- package/package.json +6 -5
- package/dist/chunk-AFSQQ5NW.js +0 -48
- package/dist/index-BJveLrlu.d.cts +0 -214
- package/dist/index-CrfymD6m.d.ts +0 -214
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
import React__default, { ReactNode, FC, ComponentType, RefObject, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { AtlasProps, Preset, BoxStyle, ViewerMode } from '@atlas-viewer/atlas';
|
|
4
|
-
import { AnnotationPage, Reference } from '@iiif/presentation-3';
|
|
5
|
-
import { AnnotationPageNormalized, CanvasNormalized } from '@iiif/presentation-3-normalized';
|
|
6
|
-
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-BiuSDiXu.cjs';
|
|
7
|
-
import { ChoiceDescription, ImageCandidate, BoxSelector } from '@iiif/helpers';
|
|
8
|
-
import { Vault } from '@iiif/helpers/vault';
|
|
9
|
-
|
|
10
|
-
declare function Viewer({ children, errorFallback, outerContainerProps, worldScale: _worldScale, ...props }: AtlasProps & {
|
|
11
|
-
height?: number | string;
|
|
12
|
-
width?: number | string;
|
|
13
|
-
resizeHash?: number;
|
|
14
|
-
containerProps?: any;
|
|
15
|
-
outerContainerProps?: any;
|
|
16
|
-
aspectRatio?: number;
|
|
17
|
-
errorFallback?: any;
|
|
18
|
-
renderPreset?: Preset;
|
|
19
|
-
worldScale?: number;
|
|
20
|
-
} & {
|
|
21
|
-
children: ReactNode;
|
|
22
|
-
}): react_jsx_runtime.JSX.Element;
|
|
23
|
-
|
|
24
|
-
declare const RenderAnnotation: FC<{
|
|
25
|
-
id: string;
|
|
26
|
-
className?: string;
|
|
27
|
-
style?: BoxStyle;
|
|
28
|
-
interactive?: boolean;
|
|
29
|
-
}>;
|
|
30
|
-
|
|
31
|
-
declare const RenderAnnotationPage: FC<{
|
|
32
|
-
page: AnnotationPage | AnnotationPageNormalized;
|
|
33
|
-
className?: string;
|
|
34
|
-
}>;
|
|
35
|
-
|
|
36
|
-
interface AudioComponentProps {
|
|
37
|
-
media: SingleAudio;
|
|
38
|
-
startTime?: number | null;
|
|
39
|
-
children: ReactNode;
|
|
40
|
-
}
|
|
41
|
-
declare function AudioHTML({ media, startTime, children }: AudioComponentProps): react_jsx_runtime.JSX.Element;
|
|
42
|
-
declare function Audio({ media, mediaControlsDeps, audioCopmonent, children, }: {
|
|
43
|
-
media: SingleAudio;
|
|
44
|
-
mediaControlsDeps?: any[];
|
|
45
|
-
children: ReactNode;
|
|
46
|
-
audioCopmonent?: ComponentType<AudioComponentProps>;
|
|
47
|
-
}): null;
|
|
48
|
-
|
|
49
|
-
interface VideoComponentProps {
|
|
50
|
-
element: RefObject<HTMLVideoElement>;
|
|
51
|
-
media: SingleVideo;
|
|
52
|
-
playPause: () => void;
|
|
53
|
-
canvas: CanvasNormalized;
|
|
54
|
-
poster?: string;
|
|
55
|
-
startTime?: number;
|
|
56
|
-
captions?: MediaStrategy['captions'];
|
|
57
|
-
}
|
|
58
|
-
declare function VideoHTML({ element, media, startTime, playPause, poster, }: VideoComponentProps): react_jsx_runtime.JSX.Element;
|
|
59
|
-
declare function Video({ media, mediaControlsDeps, children, videoComponent, captions, }: {
|
|
60
|
-
media: SingleVideo;
|
|
61
|
-
mediaControlsDeps?: any[];
|
|
62
|
-
children: ReactNode;
|
|
63
|
-
posterCanvasId?: string;
|
|
64
|
-
videoComponent?: ComponentType<VideoComponentProps>;
|
|
65
|
-
captions?: MediaStrategy['captions'];
|
|
66
|
-
}): null;
|
|
67
|
-
|
|
68
|
-
type CanvasProps = {
|
|
69
|
-
x?: number;
|
|
70
|
-
y?: number;
|
|
71
|
-
onCreated?: any;
|
|
72
|
-
onChoiceChange?: (choice?: ChoiceDescription) => void;
|
|
73
|
-
registerActions?: (actions: StrategyActions) => void;
|
|
74
|
-
defaultChoices?: Array<{
|
|
75
|
-
id: string;
|
|
76
|
-
opacity?: number;
|
|
77
|
-
}>;
|
|
78
|
-
isStatic?: boolean;
|
|
79
|
-
keepCanvasScale?: boolean;
|
|
80
|
-
children?: ReactNode;
|
|
81
|
-
renderViewerControls?: (strategy: SingleImageStrategy | EmptyStrategy) => ReactNode;
|
|
82
|
-
viewControlsDeps?: any[];
|
|
83
|
-
renderMediaControls?: (strategy: MediaStrategy) => ReactNode;
|
|
84
|
-
renderComplexTimelineControls?: (strategy: ComplexTimelineStrategy) => ReactNode;
|
|
85
|
-
complexTimelineControlsDeps?: any[];
|
|
86
|
-
mediaControlsDeps?: any[];
|
|
87
|
-
strategies?: Array<RenderingStrategy['type']>;
|
|
88
|
-
backgroundStyle?: BoxStyle;
|
|
89
|
-
alwaysShowBackground?: boolean;
|
|
90
|
-
enableSizes?: boolean;
|
|
91
|
-
enableYouTube?: boolean;
|
|
92
|
-
ignoreSize?: boolean;
|
|
93
|
-
throwOnUnknown?: boolean;
|
|
94
|
-
onClickPaintingAnnotation?: (id: string, image: ImageWithOptionalService, e: any) => void;
|
|
95
|
-
components?: {
|
|
96
|
-
Video?: React__default.ComponentType<VideoComponentProps>;
|
|
97
|
-
Audio?: React__default.ComponentType<AudioComponentProps>;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
declare function RenderCanvas({ x, y, onChoiceChange, registerActions, defaultChoices, isStatic, renderViewerControls, renderMediaControls, renderComplexTimelineControls, complexTimelineControlsDeps, viewControlsDeps, mediaControlsDeps, strategies, throwOnUnknown, backgroundStyle, alwaysShowBackground, keepCanvasScale, enableSizes, enableYouTube, onClickPaintingAnnotation, components, children, }: CanvasProps): react_jsx_runtime.JSX.Element;
|
|
101
|
-
|
|
102
|
-
declare function RenderImage({ id, image, thumbnail, isStatic, x, y, children, selector, onClick, enableSizes, }: {
|
|
103
|
-
id: string;
|
|
104
|
-
image: ImageWithOptionalService;
|
|
105
|
-
thumbnail?: ImageCandidate;
|
|
106
|
-
isStatic?: boolean;
|
|
107
|
-
enableSizes?: boolean;
|
|
108
|
-
selector?: BoxSelector;
|
|
109
|
-
x?: number;
|
|
110
|
-
y?: number;
|
|
111
|
-
children?: ReactNode;
|
|
112
|
-
onClick?: (e: any) => void;
|
|
113
|
-
}): react_jsx_runtime.JSX.Element;
|
|
114
|
-
|
|
115
|
-
declare function CanvasBackground({ style }: {
|
|
116
|
-
style?: BoxStyle;
|
|
117
|
-
}): react_jsx_runtime.JSX.Element | null;
|
|
118
|
-
|
|
119
|
-
type SimpleViewerContext = {
|
|
120
|
-
items: Reference<'Canvas'>[];
|
|
121
|
-
sequence: number[][];
|
|
122
|
-
hasNext: boolean;
|
|
123
|
-
hasPrevious: boolean;
|
|
124
|
-
setSequenceIndex: (newId: number) => void;
|
|
125
|
-
setCurrentCanvasId: (newId: string) => void;
|
|
126
|
-
setCurrentCanvasIndex: (newId: number) => void;
|
|
127
|
-
currentSequenceIndex: number;
|
|
128
|
-
nextCanvas: () => void;
|
|
129
|
-
previousCanvas: () => void;
|
|
130
|
-
};
|
|
131
|
-
type SimpleViewerProps = {
|
|
132
|
-
vault?: Vault;
|
|
133
|
-
manifest: string;
|
|
134
|
-
pagingEnabled?: boolean;
|
|
135
|
-
children: ReactNode;
|
|
136
|
-
startCanvas?: string;
|
|
137
|
-
rangeId?: string;
|
|
138
|
-
};
|
|
139
|
-
type SimpleViewerReducerState = {
|
|
140
|
-
sequence: number[][];
|
|
141
|
-
availableCanvases: Reference<'Canvas'>[];
|
|
142
|
-
visibleCanvases: Reference<'Canvas'>[];
|
|
143
|
-
currentCanvas: string | null;
|
|
144
|
-
isPaged: boolean;
|
|
145
|
-
rangeId: string | null;
|
|
146
|
-
};
|
|
147
|
-
interface SimpleViewerActions {
|
|
148
|
-
setCurrentCanvasId(newId: string): void;
|
|
149
|
-
setCurrentCanvasIndex(newId: number): void;
|
|
150
|
-
nextCanvas(): void;
|
|
151
|
-
previousCanvas(): void;
|
|
152
|
-
setCurrentRange(newId: string): void;
|
|
153
|
-
clearRange(): void;
|
|
154
|
-
setPagingEnabled(isEnabled: boolean): void;
|
|
155
|
-
}
|
|
156
|
-
type SimpleViewerActionsType = {
|
|
157
|
-
[T in keyof SimpleViewerActions]: {
|
|
158
|
-
type: T;
|
|
159
|
-
payload: Parameters<SimpleViewerActions[T]>[0];
|
|
160
|
-
};
|
|
161
|
-
}[keyof SimpleViewerActions];
|
|
162
|
-
|
|
163
|
-
declare function ModelHTML({ model }: {
|
|
164
|
-
model: any;
|
|
165
|
-
}): react_jsx_runtime.JSX.Element;
|
|
166
|
-
declare function Model({ model, name }: {
|
|
167
|
-
model: any;
|
|
168
|
-
name?: string;
|
|
169
|
-
}): null;
|
|
170
|
-
|
|
171
|
-
interface PlaceholderCanvasProps {
|
|
172
|
-
renderViewerControls?: (strategy: SingleImageStrategy | EmptyStrategy) => ReactNode;
|
|
173
|
-
}
|
|
174
|
-
declare function PlaceholderCanvas(props: PlaceholderCanvasProps): react_jsx_runtime.JSX.Element | null;
|
|
175
|
-
|
|
176
|
-
interface CanvasPanelProps {
|
|
177
|
-
manifest: string;
|
|
178
|
-
startCanvas?: string;
|
|
179
|
-
rangeId?: string;
|
|
180
|
-
pagingEnabled?: boolean;
|
|
181
|
-
header?: ReactNode;
|
|
182
|
-
children?: ReactNode;
|
|
183
|
-
mode?: ViewerMode;
|
|
184
|
-
reuseAtlas?: boolean;
|
|
185
|
-
runtimeOptions?: any;
|
|
186
|
-
renderPreset?: any;
|
|
187
|
-
height?: number;
|
|
188
|
-
spacing?: number;
|
|
189
|
-
components?: {
|
|
190
|
-
ViewerControls?: FC;
|
|
191
|
-
MediaControls?: FC;
|
|
192
|
-
ComplexTimelineControls?: FC;
|
|
193
|
-
};
|
|
194
|
-
canvasProps?: Omit<Partial<CanvasProps>, 'x'>;
|
|
195
|
-
annotations?: ReactNode;
|
|
196
|
-
}
|
|
197
|
-
type CanvasPanelType = ForwardRefExoticComponent<CanvasPanelProps & RefAttributes<SimpleViewerContext>> & {
|
|
198
|
-
RenderImage: typeof RenderImage;
|
|
199
|
-
RenderCanvas: typeof RenderCanvas;
|
|
200
|
-
RenderAnnotationPage: typeof RenderAnnotationPage;
|
|
201
|
-
RenderAnnotation: typeof RenderAnnotation;
|
|
202
|
-
Viewer: typeof Viewer;
|
|
203
|
-
CanvasBackground: typeof CanvasBackground;
|
|
204
|
-
Audio: typeof Audio;
|
|
205
|
-
Video: typeof Video;
|
|
206
|
-
Model: typeof Model;
|
|
207
|
-
AudioHTML: typeof AudioHTML;
|
|
208
|
-
VideoHTML: typeof VideoHTML;
|
|
209
|
-
ModelHTML: typeof ModelHTML;
|
|
210
|
-
PlaceholderCanvas: typeof PlaceholderCanvas;
|
|
211
|
-
};
|
|
212
|
-
declare const CanvasPanel: CanvasPanelType;
|
|
213
|
-
|
|
214
|
-
export { type AudioComponentProps as A, CanvasPanel as C, type SimpleViewerContext as S, type VideoComponentProps as V, type SimpleViewerProps as a, type SimpleViewerReducerState as b, type SimpleViewerActions as c, type SimpleViewerActionsType as d };
|
package/dist/index-CrfymD6m.d.ts
DELETED
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
import React__default, { ReactNode, FC, ComponentType, RefObject, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { AtlasProps, Preset, BoxStyle, ViewerMode } from '@atlas-viewer/atlas';
|
|
4
|
-
import { AnnotationPage, Reference } from '@iiif/presentation-3';
|
|
5
|
-
import { AnnotationPageNormalized, CanvasNormalized } from '@iiif/presentation-3-normalized';
|
|
6
|
-
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-BiuSDiXu.js';
|
|
7
|
-
import { ChoiceDescription, ImageCandidate, BoxSelector } from '@iiif/helpers';
|
|
8
|
-
import { Vault } from '@iiif/helpers/vault';
|
|
9
|
-
|
|
10
|
-
declare function Viewer({ children, errorFallback, outerContainerProps, worldScale: _worldScale, ...props }: AtlasProps & {
|
|
11
|
-
height?: number | string;
|
|
12
|
-
width?: number | string;
|
|
13
|
-
resizeHash?: number;
|
|
14
|
-
containerProps?: any;
|
|
15
|
-
outerContainerProps?: any;
|
|
16
|
-
aspectRatio?: number;
|
|
17
|
-
errorFallback?: any;
|
|
18
|
-
renderPreset?: Preset;
|
|
19
|
-
worldScale?: number;
|
|
20
|
-
} & {
|
|
21
|
-
children: ReactNode;
|
|
22
|
-
}): react_jsx_runtime.JSX.Element;
|
|
23
|
-
|
|
24
|
-
declare const RenderAnnotation: FC<{
|
|
25
|
-
id: string;
|
|
26
|
-
className?: string;
|
|
27
|
-
style?: BoxStyle;
|
|
28
|
-
interactive?: boolean;
|
|
29
|
-
}>;
|
|
30
|
-
|
|
31
|
-
declare const RenderAnnotationPage: FC<{
|
|
32
|
-
page: AnnotationPage | AnnotationPageNormalized;
|
|
33
|
-
className?: string;
|
|
34
|
-
}>;
|
|
35
|
-
|
|
36
|
-
interface AudioComponentProps {
|
|
37
|
-
media: SingleAudio;
|
|
38
|
-
startTime?: number | null;
|
|
39
|
-
children: ReactNode;
|
|
40
|
-
}
|
|
41
|
-
declare function AudioHTML({ media, startTime, children }: AudioComponentProps): react_jsx_runtime.JSX.Element;
|
|
42
|
-
declare function Audio({ media, mediaControlsDeps, audioCopmonent, children, }: {
|
|
43
|
-
media: SingleAudio;
|
|
44
|
-
mediaControlsDeps?: any[];
|
|
45
|
-
children: ReactNode;
|
|
46
|
-
audioCopmonent?: ComponentType<AudioComponentProps>;
|
|
47
|
-
}): null;
|
|
48
|
-
|
|
49
|
-
interface VideoComponentProps {
|
|
50
|
-
element: RefObject<HTMLVideoElement>;
|
|
51
|
-
media: SingleVideo;
|
|
52
|
-
playPause: () => void;
|
|
53
|
-
canvas: CanvasNormalized;
|
|
54
|
-
poster?: string;
|
|
55
|
-
startTime?: number;
|
|
56
|
-
captions?: MediaStrategy['captions'];
|
|
57
|
-
}
|
|
58
|
-
declare function VideoHTML({ element, media, startTime, playPause, poster, }: VideoComponentProps): react_jsx_runtime.JSX.Element;
|
|
59
|
-
declare function Video({ media, mediaControlsDeps, children, videoComponent, captions, }: {
|
|
60
|
-
media: SingleVideo;
|
|
61
|
-
mediaControlsDeps?: any[];
|
|
62
|
-
children: ReactNode;
|
|
63
|
-
posterCanvasId?: string;
|
|
64
|
-
videoComponent?: ComponentType<VideoComponentProps>;
|
|
65
|
-
captions?: MediaStrategy['captions'];
|
|
66
|
-
}): null;
|
|
67
|
-
|
|
68
|
-
type CanvasProps = {
|
|
69
|
-
x?: number;
|
|
70
|
-
y?: number;
|
|
71
|
-
onCreated?: any;
|
|
72
|
-
onChoiceChange?: (choice?: ChoiceDescription) => void;
|
|
73
|
-
registerActions?: (actions: StrategyActions) => void;
|
|
74
|
-
defaultChoices?: Array<{
|
|
75
|
-
id: string;
|
|
76
|
-
opacity?: number;
|
|
77
|
-
}>;
|
|
78
|
-
isStatic?: boolean;
|
|
79
|
-
keepCanvasScale?: boolean;
|
|
80
|
-
children?: ReactNode;
|
|
81
|
-
renderViewerControls?: (strategy: SingleImageStrategy | EmptyStrategy) => ReactNode;
|
|
82
|
-
viewControlsDeps?: any[];
|
|
83
|
-
renderMediaControls?: (strategy: MediaStrategy) => ReactNode;
|
|
84
|
-
renderComplexTimelineControls?: (strategy: ComplexTimelineStrategy) => ReactNode;
|
|
85
|
-
complexTimelineControlsDeps?: any[];
|
|
86
|
-
mediaControlsDeps?: any[];
|
|
87
|
-
strategies?: Array<RenderingStrategy['type']>;
|
|
88
|
-
backgroundStyle?: BoxStyle;
|
|
89
|
-
alwaysShowBackground?: boolean;
|
|
90
|
-
enableSizes?: boolean;
|
|
91
|
-
enableYouTube?: boolean;
|
|
92
|
-
ignoreSize?: boolean;
|
|
93
|
-
throwOnUnknown?: boolean;
|
|
94
|
-
onClickPaintingAnnotation?: (id: string, image: ImageWithOptionalService, e: any) => void;
|
|
95
|
-
components?: {
|
|
96
|
-
Video?: React__default.ComponentType<VideoComponentProps>;
|
|
97
|
-
Audio?: React__default.ComponentType<AudioComponentProps>;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
declare function RenderCanvas({ x, y, onChoiceChange, registerActions, defaultChoices, isStatic, renderViewerControls, renderMediaControls, renderComplexTimelineControls, complexTimelineControlsDeps, viewControlsDeps, mediaControlsDeps, strategies, throwOnUnknown, backgroundStyle, alwaysShowBackground, keepCanvasScale, enableSizes, enableYouTube, onClickPaintingAnnotation, components, children, }: CanvasProps): react_jsx_runtime.JSX.Element;
|
|
101
|
-
|
|
102
|
-
declare function RenderImage({ id, image, thumbnail, isStatic, x, y, children, selector, onClick, enableSizes, }: {
|
|
103
|
-
id: string;
|
|
104
|
-
image: ImageWithOptionalService;
|
|
105
|
-
thumbnail?: ImageCandidate;
|
|
106
|
-
isStatic?: boolean;
|
|
107
|
-
enableSizes?: boolean;
|
|
108
|
-
selector?: BoxSelector;
|
|
109
|
-
x?: number;
|
|
110
|
-
y?: number;
|
|
111
|
-
children?: ReactNode;
|
|
112
|
-
onClick?: (e: any) => void;
|
|
113
|
-
}): react_jsx_runtime.JSX.Element;
|
|
114
|
-
|
|
115
|
-
declare function CanvasBackground({ style }: {
|
|
116
|
-
style?: BoxStyle;
|
|
117
|
-
}): react_jsx_runtime.JSX.Element | null;
|
|
118
|
-
|
|
119
|
-
type SimpleViewerContext = {
|
|
120
|
-
items: Reference<'Canvas'>[];
|
|
121
|
-
sequence: number[][];
|
|
122
|
-
hasNext: boolean;
|
|
123
|
-
hasPrevious: boolean;
|
|
124
|
-
setSequenceIndex: (newId: number) => void;
|
|
125
|
-
setCurrentCanvasId: (newId: string) => void;
|
|
126
|
-
setCurrentCanvasIndex: (newId: number) => void;
|
|
127
|
-
currentSequenceIndex: number;
|
|
128
|
-
nextCanvas: () => void;
|
|
129
|
-
previousCanvas: () => void;
|
|
130
|
-
};
|
|
131
|
-
type SimpleViewerProps = {
|
|
132
|
-
vault?: Vault;
|
|
133
|
-
manifest: string;
|
|
134
|
-
pagingEnabled?: boolean;
|
|
135
|
-
children: ReactNode;
|
|
136
|
-
startCanvas?: string;
|
|
137
|
-
rangeId?: string;
|
|
138
|
-
};
|
|
139
|
-
type SimpleViewerReducerState = {
|
|
140
|
-
sequence: number[][];
|
|
141
|
-
availableCanvases: Reference<'Canvas'>[];
|
|
142
|
-
visibleCanvases: Reference<'Canvas'>[];
|
|
143
|
-
currentCanvas: string | null;
|
|
144
|
-
isPaged: boolean;
|
|
145
|
-
rangeId: string | null;
|
|
146
|
-
};
|
|
147
|
-
interface SimpleViewerActions {
|
|
148
|
-
setCurrentCanvasId(newId: string): void;
|
|
149
|
-
setCurrentCanvasIndex(newId: number): void;
|
|
150
|
-
nextCanvas(): void;
|
|
151
|
-
previousCanvas(): void;
|
|
152
|
-
setCurrentRange(newId: string): void;
|
|
153
|
-
clearRange(): void;
|
|
154
|
-
setPagingEnabled(isEnabled: boolean): void;
|
|
155
|
-
}
|
|
156
|
-
type SimpleViewerActionsType = {
|
|
157
|
-
[T in keyof SimpleViewerActions]: {
|
|
158
|
-
type: T;
|
|
159
|
-
payload: Parameters<SimpleViewerActions[T]>[0];
|
|
160
|
-
};
|
|
161
|
-
}[keyof SimpleViewerActions];
|
|
162
|
-
|
|
163
|
-
declare function ModelHTML({ model }: {
|
|
164
|
-
model: any;
|
|
165
|
-
}): react_jsx_runtime.JSX.Element;
|
|
166
|
-
declare function Model({ model, name }: {
|
|
167
|
-
model: any;
|
|
168
|
-
name?: string;
|
|
169
|
-
}): null;
|
|
170
|
-
|
|
171
|
-
interface PlaceholderCanvasProps {
|
|
172
|
-
renderViewerControls?: (strategy: SingleImageStrategy | EmptyStrategy) => ReactNode;
|
|
173
|
-
}
|
|
174
|
-
declare function PlaceholderCanvas(props: PlaceholderCanvasProps): react_jsx_runtime.JSX.Element | null;
|
|
175
|
-
|
|
176
|
-
interface CanvasPanelProps {
|
|
177
|
-
manifest: string;
|
|
178
|
-
startCanvas?: string;
|
|
179
|
-
rangeId?: string;
|
|
180
|
-
pagingEnabled?: boolean;
|
|
181
|
-
header?: ReactNode;
|
|
182
|
-
children?: ReactNode;
|
|
183
|
-
mode?: ViewerMode;
|
|
184
|
-
reuseAtlas?: boolean;
|
|
185
|
-
runtimeOptions?: any;
|
|
186
|
-
renderPreset?: any;
|
|
187
|
-
height?: number;
|
|
188
|
-
spacing?: number;
|
|
189
|
-
components?: {
|
|
190
|
-
ViewerControls?: FC;
|
|
191
|
-
MediaControls?: FC;
|
|
192
|
-
ComplexTimelineControls?: FC;
|
|
193
|
-
};
|
|
194
|
-
canvasProps?: Omit<Partial<CanvasProps>, 'x'>;
|
|
195
|
-
annotations?: ReactNode;
|
|
196
|
-
}
|
|
197
|
-
type CanvasPanelType = ForwardRefExoticComponent<CanvasPanelProps & RefAttributes<SimpleViewerContext>> & {
|
|
198
|
-
RenderImage: typeof RenderImage;
|
|
199
|
-
RenderCanvas: typeof RenderCanvas;
|
|
200
|
-
RenderAnnotationPage: typeof RenderAnnotationPage;
|
|
201
|
-
RenderAnnotation: typeof RenderAnnotation;
|
|
202
|
-
Viewer: typeof Viewer;
|
|
203
|
-
CanvasBackground: typeof CanvasBackground;
|
|
204
|
-
Audio: typeof Audio;
|
|
205
|
-
Video: typeof Video;
|
|
206
|
-
Model: typeof Model;
|
|
207
|
-
AudioHTML: typeof AudioHTML;
|
|
208
|
-
VideoHTML: typeof VideoHTML;
|
|
209
|
-
ModelHTML: typeof ModelHTML;
|
|
210
|
-
PlaceholderCanvas: typeof PlaceholderCanvas;
|
|
211
|
-
};
|
|
212
|
-
declare const CanvasPanel: CanvasPanelType;
|
|
213
|
-
|
|
214
|
-
export { type AudioComponentProps as A, CanvasPanel as C, type SimpleViewerContext as S, type VideoComponentProps as V, type SimpleViewerProps as a, type SimpleViewerReducerState as b, type SimpleViewerActions as c, type SimpleViewerActionsType as d };
|