@micrio/client 6.0.11 → 6.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 +27 -11
- package/micrio.min.js +3 -3
- package/package.json +1 -1
package/micrio.min.d.ts
CHANGED
|
@@ -778,8 +778,11 @@ 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;
|
|
784
|
+
/** Pan/zoom behavior: `'cells'` operates on the individual cell under the cursor, `'grid'` on the main container. */
|
|
785
|
+
panZoom: 'cells' | 'grid';
|
|
783
786
|
/** Writable Svelte store holding the currently focused {@link MicrioImage} instance, or undefined if in grid view. */
|
|
784
787
|
readonly focussed: Writable<MicrioImage | undefined>;
|
|
785
788
|
/** Getter for the current value of the {@link focussed} store. */
|
|
@@ -796,12 +799,17 @@ declare module '@micrio/client' {
|
|
|
796
799
|
aniDurationOut: number;
|
|
797
800
|
/** Delay (seconds) between individual image transitions for 'delayed' effects. */
|
|
798
801
|
transitionDelay: number;
|
|
802
|
+
/** If true, keyboard arrow navigation is active and should bypass the default key handler. */
|
|
803
|
+
static handlingKeys: boolean;
|
|
799
804
|
/**
|
|
800
805
|
* The Grid constructor. Initializes the grid based on image settings.
|
|
801
806
|
* @param micrio The main HTMLMicrioElement instance.
|
|
802
807
|
* @param image The MicrioImage instance acting as the virtual container for the grid.
|
|
803
808
|
*/
|
|
804
809
|
constructor(micrio: HTMLMicrioElement, image: MicrioImage);
|
|
810
|
+
private _clickDown;
|
|
811
|
+
private _clickStart;
|
|
812
|
+
private _clickEnd;
|
|
805
813
|
/**
|
|
806
814
|
* Sets the grid layout based on an input string or array of image definitions.
|
|
807
815
|
* This is the main method for changing the grid's content and appearance.
|
|
@@ -889,7 +897,9 @@ declare module '@micrio/client' {
|
|
|
889
897
|
* @returns Promise when the transition is completed
|
|
890
898
|
*/
|
|
891
899
|
enlarge(idx: number, width: number, height?: number): Promise<MicrioImage[]>;
|
|
892
|
-
/**
|
|
900
|
+
/** Returns the grid image under the given screen coordinates (clientX, clientY).
|
|
901
|
+
* If the current image is a focused grid child, returns it directly. */
|
|
902
|
+
getImageAt(clientX: number, clientY: number): MicrioImage | undefined;
|
|
893
903
|
getRelativeView(image: MicrioImage, view: Models.Camera.ViewRect): Models.Camera.ViewRect;
|
|
894
904
|
}
|
|
895
905
|
/**
|
|
@@ -1296,12 +1306,17 @@ declare module '@micrio/client' {
|
|
|
1296
1306
|
};
|
|
1297
1307
|
/** UI customizations */
|
|
1298
1308
|
ui?: Partial<UserInterfaceSettings>;
|
|
1299
|
-
/** Grid
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1309
|
+
/** Grid display and interaction settings */
|
|
1310
|
+
grid?: {
|
|
1311
|
+
/** Click behavior for grid images: `'focus'` expands to full view, `'zoom'` zooms to the image's viewport */
|
|
1312
|
+
clickable?: 'focus' | 'zoom';
|
|
1313
|
+
/** Pan/zoom behavior: `'cells'` operates on the individual cell under the cursor, `'grid'` operates on the main grid container */
|
|
1314
|
+
panZoom?: 'cells' | 'grid';
|
|
1315
|
+
/** Transition duration for grid animations, in seconds */
|
|
1316
|
+
transitionDuration?: number;
|
|
1317
|
+
/** Transition duration when going back, in seconds */
|
|
1318
|
+
transitionDurationOut?: number;
|
|
1319
|
+
};
|
|
1305
1320
|
/** ADVANCED: A fragment shader for WebGL postprocessing
|
|
1306
1321
|
* This shader MUST have and use:
|
|
1307
1322
|
* uniform sampler2D u_image; // the render buffer texture
|
|
@@ -1318,7 +1333,7 @@ declare module '@micrio/client' {
|
|
|
1318
1333
|
/** Archive layer offset */
|
|
1319
1334
|
archiveLayerOffset?: number;
|
|
1320
1335
|
/** Gallery sorting */
|
|
1321
|
-
sort?: ('name' | '-name' | 'created' | '-created');
|
|
1336
|
+
sort?: ('name' | '-name' | 'created' | '-created' | 'random');
|
|
1322
1337
|
/** Gallery type */
|
|
1323
1338
|
type?: ('swipe' | 'swipe-full' | 'switch' | 'omni' | 'grid');
|
|
1324
1339
|
/** The gallery opening image ID */
|
|
@@ -2099,7 +2114,7 @@ declare module '@micrio/client' {
|
|
|
2099
2114
|
/** The album UX type */
|
|
2100
2115
|
type: ('swipe' | 'switch' | 'grid');
|
|
2101
2116
|
/** The album image sorting */
|
|
2102
|
-
sort?: ('name' | '-name' | 'created' | '-created');
|
|
2117
|
+
sort?: ('name' | '-name' | 'created' | '-created' | 'random');
|
|
2103
2118
|
/** Album pages are shown as book spreads */
|
|
2104
2119
|
isSpreads?: boolean;
|
|
2105
2120
|
/** The number of single cover pages in case of spreads */
|
|
@@ -3039,6 +3054,7 @@ declare module '@micrio/client' {
|
|
|
3039
3054
|
gridInfoData: {
|
|
3040
3055
|
images: Models.ImageInfo.ImageInfo[];
|
|
3041
3056
|
} | undefined;
|
|
3057
|
+
private sortArchiveImages;
|
|
3042
3058
|
/** Getter for the current language code. */
|
|
3043
3059
|
get lang(): string;
|
|
3044
3060
|
/** Setter for the current language code. Triggers language change logic. */
|