@micrio/client 6.0.11 → 6.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 +17 -10
- package/micrio.min.js +3 -3
- package/package.json +1 -1
package/micrio.min.d.ts
CHANGED
|
@@ -778,8 +778,9 @@ declare module '@micrio/client' {
|
|
|
778
778
|
readonly images: MicrioImage[];
|
|
779
779
|
/** Array of {@link MicrioImage} instances currently visible in the grid layout. */
|
|
780
780
|
current: MicrioImage[];
|
|
781
|
-
/** If
|
|
782
|
-
|
|
781
|
+
/** If truthy, the HTML grid overlay remains visible and interactive when an image is focused.
|
|
782
|
+
* `'focus'` expands the image to full view, `'zoom'` zooms the main camera to the image's viewport. */
|
|
783
|
+
clickable: 'focus' | 'zoom' | false;
|
|
783
784
|
/** Writable Svelte store holding the currently focused {@link MicrioImage} instance, or undefined if in grid view. */
|
|
784
785
|
readonly focussed: Writable<MicrioImage | undefined>;
|
|
785
786
|
/** Getter for the current value of the {@link focussed} store. */
|
|
@@ -796,6 +797,8 @@ declare module '@micrio/client' {
|
|
|
796
797
|
aniDurationOut: number;
|
|
797
798
|
/** Delay (seconds) between individual image transitions for 'delayed' effects. */
|
|
798
799
|
transitionDelay: number;
|
|
800
|
+
/** If true, keyboard arrow navigation is active and should bypass the default key handler. */
|
|
801
|
+
static handlingKeys: boolean;
|
|
799
802
|
/**
|
|
800
803
|
* The Grid constructor. Initializes the grid based on image settings.
|
|
801
804
|
* @param micrio The main HTMLMicrioElement instance.
|
|
@@ -1296,12 +1299,15 @@ declare module '@micrio/client' {
|
|
|
1296
1299
|
};
|
|
1297
1300
|
/** UI customizations */
|
|
1298
1301
|
ui?: Partial<UserInterfaceSettings>;
|
|
1299
|
-
/** Grid
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1302
|
+
/** Grid display and interaction settings */
|
|
1303
|
+
grid?: {
|
|
1304
|
+
/** Click behavior for grid images: `'focus'` expands to full view, `'zoom'` zooms to the image's viewport */
|
|
1305
|
+
clickable?: 'focus' | 'zoom';
|
|
1306
|
+
/** Transition duration for grid animations, in seconds */
|
|
1307
|
+
transitionDuration?: number;
|
|
1308
|
+
/** Transition duration when going back, in seconds */
|
|
1309
|
+
transitionDurationOut?: number;
|
|
1310
|
+
};
|
|
1305
1311
|
/** ADVANCED: A fragment shader for WebGL postprocessing
|
|
1306
1312
|
* This shader MUST have and use:
|
|
1307
1313
|
* uniform sampler2D u_image; // the render buffer texture
|
|
@@ -1318,7 +1324,7 @@ declare module '@micrio/client' {
|
|
|
1318
1324
|
/** Archive layer offset */
|
|
1319
1325
|
archiveLayerOffset?: number;
|
|
1320
1326
|
/** Gallery sorting */
|
|
1321
|
-
sort?: ('name' | '-name' | 'created' | '-created');
|
|
1327
|
+
sort?: ('name' | '-name' | 'created' | '-created' | 'random');
|
|
1322
1328
|
/** Gallery type */
|
|
1323
1329
|
type?: ('swipe' | 'swipe-full' | 'switch' | 'omni' | 'grid');
|
|
1324
1330
|
/** The gallery opening image ID */
|
|
@@ -2099,7 +2105,7 @@ declare module '@micrio/client' {
|
|
|
2099
2105
|
/** The album UX type */
|
|
2100
2106
|
type: ('swipe' | 'switch' | 'grid');
|
|
2101
2107
|
/** The album image sorting */
|
|
2102
|
-
sort?: ('name' | '-name' | 'created' | '-created');
|
|
2108
|
+
sort?: ('name' | '-name' | 'created' | '-created' | 'random');
|
|
2103
2109
|
/** Album pages are shown as book spreads */
|
|
2104
2110
|
isSpreads?: boolean;
|
|
2105
2111
|
/** The number of single cover pages in case of spreads */
|
|
@@ -3039,6 +3045,7 @@ declare module '@micrio/client' {
|
|
|
3039
3045
|
gridInfoData: {
|
|
3040
3046
|
images: Models.ImageInfo.ImageInfo[];
|
|
3041
3047
|
} | undefined;
|
|
3048
|
+
private sortArchiveImages;
|
|
3042
3049
|
/** Getter for the current language code. */
|
|
3043
3050
|
get lang(): string;
|
|
3044
3051
|
/** Setter for the current language code. Triggers language change logic. */
|