@micrio/client 5.5.3 → 5.5.5

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