@micrio/client 7.0.11 → 7.0.12
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/micrio.min.d.ts +8 -10
- package/micrio.min.js +3 -3
- package/package.json +1 -1
package/micrio.min.d.ts
CHANGED
|
@@ -692,8 +692,8 @@ declare module '@micrio/client' {
|
|
|
692
692
|
prev: () => void;
|
|
693
693
|
/** Go to next page */
|
|
694
694
|
next: () => void;
|
|
695
|
-
/** Go to specific
|
|
696
|
-
goto: (n: number) =>
|
|
695
|
+
/** Go to specific image index. Resolves once the gallery has animated to the target page. */
|
|
696
|
+
goto: (n: number) => Promise<MicrioImage | undefined>;
|
|
697
697
|
/** Album has been initialized and hooked */
|
|
698
698
|
hooked?: boolean;
|
|
699
699
|
/** Strip-swipe only: writable store tracking the currently active child
|
|
@@ -1758,12 +1758,10 @@ declare module '@micrio/client' {
|
|
|
1758
1758
|
export class Gallery {
|
|
1759
1759
|
#private;
|
|
1760
1760
|
readonly _items: Models.ImageInfo.ImageInfo[];
|
|
1761
|
-
|
|
1762
|
-
goto(index: number)
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
/** Go to the previous page. */
|
|
1766
|
-
prev(): void;
|
|
1761
|
+
gotoId: (id: string) => Promise<MicrioImage | undefined>;
|
|
1762
|
+
goto: (index: number) => Promise<MicrioImage | undefined>;
|
|
1763
|
+
next: () => void;
|
|
1764
|
+
prev: () => void;
|
|
1767
1765
|
}
|
|
1768
1766
|
|
|
1769
1767
|
/** Manages omni 3D object rotation UI: dial, swipe gestures, frame navigation, and layer menu. */
|
|
@@ -2279,7 +2277,7 @@ declare module '@micrio/client' {
|
|
|
2279
2277
|
static _getPresets: typeof getPresets;
|
|
2280
2278
|
readonly _ready: Promise<void>;
|
|
2281
2279
|
constructor(options: BookViewerOptions);
|
|
2282
|
-
goto(pageIdx: number): void
|
|
2280
|
+
goto(pageIdx: number): Promise<void>;
|
|
2283
2281
|
zoom(delta: number): void;
|
|
2284
2282
|
/**
|
|
2285
2283
|
* Returns whether the camera is zoomed in beyond the fit view. This is the
|
|
@@ -2508,7 +2506,7 @@ declare module '@micrio/client' {
|
|
|
2508
2506
|
/** Holds bundle-level marker tours, available regardless of which image is shown. */
|
|
2509
2507
|
bundleTours: Models.ImageData.MarkerTour[] | undefined;
|
|
2510
2508
|
/** The current active gallery controller, if any. */
|
|
2511
|
-
|
|
2509
|
+
gallery: Gallery | undefined;
|
|
2512
2510
|
/** Destroys the Micrio instance, cleans up resources, and removes event listeners. */
|
|
2513
2511
|
destroy(): void;
|
|
2514
2512
|
/**
|