@micrio/client 5.5.3 → 5.5.4
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 +34 -0
- package/micrio.min.js +3 -3
- package/package.json +1 -1
package/micrio.min.d.ts
CHANGED
|
@@ -725,6 +725,36 @@ declare module '@micrio/client' {
|
|
|
725
725
|
/** Fades out the image smoothly or instantly. */
|
|
726
726
|
fadeOut(direct?: boolean): void;
|
|
727
727
|
}
|
|
728
|
+
/**
|
|
729
|
+
* Direction-keyed area rectangles for grid/gallery slide and swipe transitions.
|
|
730
|
+
* Areas use [x0, y0, x1, y1] in normalized parent-canvas coordinates and
|
|
731
|
+
* extend outside [0,1] to represent off-screen positions.
|
|
732
|
+
*
|
|
733
|
+
* Direction conventions (degrees of motion of the entering image):
|
|
734
|
+
* 0 = enters from top
|
|
735
|
+
* 90 = enters from right
|
|
736
|
+
* 180 = enters from bottom
|
|
737
|
+
* 270 = enters from left
|
|
738
|
+
*
|
|
739
|
+
* @author Marcel Duin <marcel@micr.io>
|
|
740
|
+
*/
|
|
741
|
+
/** Slide transition entry areas (entering image starts half-off-screen). */
|
|
742
|
+
export const slideAreas: Record<number, Models.Camera.ViewRect>;
|
|
743
|
+
/** Swipe transition entry areas (entering image starts fully off-screen). */
|
|
744
|
+
export const swipeAreas: Record<number, Models.Camera.ViewRect>;
|
|
745
|
+
/** Swipe transition exit areas (leaving image moves fully off-screen). */
|
|
746
|
+
export const swipeExitAreas: Record<number, Models.Camera.ViewRect>;
|
|
747
|
+
/** Centered visible slot. */
|
|
748
|
+
export const centerArea: Models.Camera.ViewRect;
|
|
749
|
+
/** Off-screen slot to the left, same height. */
|
|
750
|
+
export const leftSlot: Models.Camera.ViewRect;
|
|
751
|
+
/** Off-screen slot to the right, same height. */
|
|
752
|
+
export const rightSlot: Models.Camera.ViewRect;
|
|
753
|
+
/**
|
|
754
|
+
* Returns the horizontal slot area for an integer offset from the active slot.
|
|
755
|
+
* offset=0 → centered visible; positive → off to the right; negative → off to the left.
|
|
756
|
+
*/
|
|
757
|
+
export const horizontalSlot: (offset: number) => Models.Camera.ViewRect;
|
|
728
758
|
/**
|
|
729
759
|
* Micrio grid display controller
|
|
730
760
|
* @author Marcel Duin <marcel@micr.io>
|
|
@@ -2091,6 +2121,10 @@ declare module '@micrio/client' {
|
|
|
2091
2121
|
goto: (n: number) => void;
|
|
2092
2122
|
/** Album has been initialized and hooked */
|
|
2093
2123
|
hooked?: boolean;
|
|
2124
|
+
/** Strip-swipe only: writable store tracking the currently active child
|
|
2125
|
+
* MicrioImage. Consumers (e.g. ZoomButtons) can subscribe to bind their
|
|
2126
|
+
* controls to the image under focus instead of the virtual parent. */
|
|
2127
|
+
currentImage?: Writable<import("ts/image").MicrioImage>;
|
|
2094
2128
|
}
|
|
2095
2129
|
namespace Camera {
|
|
2096
2130
|
/** A numeric array or Float64Array used for camera geometry. */
|