@micrio/client 7.0.11 → 7.0.13
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 +21 -11
- 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
|
|
@@ -1340,7 +1340,7 @@ declare module '@micrio/client' {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
|
|
1342
1342
|
/** Names of all icons available in the Micrio UI icon library. */
|
|
1343
|
-
export type IconName = ('zoomIn' | 'zoomOut' | 'fullscreenEnter' | 'fullscreenLeave' | 'close' | 'next' | 'down' | 'prev' | 'up' | 'play' | 'pause' | 'subtitles' | 'subtitlesOff' | 'muted' | 'unmuted' | 'playFilled' | 'a11y' | 'menu' | 'audio' | 'video' | 'share' | 'error' | 'chevronDown' | 'link' | 'linkExt' | 'ellipsisVertical' | 'image' | 'layerGroup');
|
|
1343
|
+
export type IconName = ('zoomIn' | 'zoomOut' | 'fullscreenEnter' | 'fullscreenLeave' | 'close' | 'next' | 'down' | 'prev' | 'up' | 'rotateLeft' | 'rotateRight' | 'play' | 'pause' | 'subtitles' | 'subtitlesOff' | 'muted' | 'unmuted' | 'playFilled' | 'a11y' | 'menu' | 'audio' | 'video' | 'share' | 'error' | 'chevronDown' | 'link' | 'linkExt' | 'ellipsisVertical' | 'image' | 'layerGroup');
|
|
1344
1344
|
|
|
1345
1345
|
/**
|
|
1346
1346
|
* # Store API in Micrio
|
|
@@ -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. */
|
|
@@ -1983,6 +1981,13 @@ declare module '@micrio/client' {
|
|
|
1983
1981
|
_getViewMatrix(): Mat4;
|
|
1984
1982
|
_setFreeCamMode(on: boolean): void;
|
|
1985
1983
|
_rotate(deltaTheta: number, deltaPhi: number, clampPhi?: boolean): void;
|
|
1984
|
+
/**
|
|
1985
|
+
* Rotates the view by a 90° step (`π/2`) around the vertical axis to either
|
|
1986
|
+
* side: `+1` turns clockwise (right), `-1` counter-clockwise (left). The
|
|
1987
|
+
* current target azimuth is snapped to the nearest 90° grid point first, so
|
|
1988
|
+
* the view always rests on a 90° increment even after a free-drag orbit.
|
|
1989
|
+
*/
|
|
1990
|
+
_rotateViewStep(direction: 1 | -1): void;
|
|
1986
1991
|
_getPickRay(screenX: number, screenY: number): {
|
|
1987
1992
|
origin: Vec3;
|
|
1988
1993
|
direction: Vec3;
|
|
@@ -2279,8 +2284,13 @@ declare module '@micrio/client' {
|
|
|
2279
2284
|
static _getPresets: typeof getPresets;
|
|
2280
2285
|
readonly _ready: Promise<void>;
|
|
2281
2286
|
constructor(options: BookViewerOptions);
|
|
2282
|
-
goto(pageIdx: number): void
|
|
2287
|
+
goto(pageIdx: number): Promise<void>;
|
|
2283
2288
|
zoom(delta: number): void;
|
|
2289
|
+
/**
|
|
2290
|
+
* Rotates the view by a 90° increment around the vertical axis: `1` turns
|
|
2291
|
+
* the book to the right (clockwise), `-1` to the left (counter-clockwise).
|
|
2292
|
+
*/
|
|
2293
|
+
rotateView(direction: 1 | -1): void;
|
|
2284
2294
|
/**
|
|
2285
2295
|
* Returns whether the camera is zoomed in beyond the fit view. This is the
|
|
2286
2296
|
* complement of "the whole spread fits the viewport": when every currently
|
|
@@ -2508,7 +2518,7 @@ declare module '@micrio/client' {
|
|
|
2508
2518
|
/** Holds bundle-level marker tours, available regardless of which image is shown. */
|
|
2509
2519
|
bundleTours: Models.ImageData.MarkerTour[] | undefined;
|
|
2510
2520
|
/** The current active gallery controller, if any. */
|
|
2511
|
-
|
|
2521
|
+
gallery: Gallery | undefined;
|
|
2512
2522
|
/** Destroys the Micrio instance, cleans up resources, and removes event listeners. */
|
|
2513
2523
|
destroy(): void;
|
|
2514
2524
|
/**
|