@micrio/client 7.3.11 → 7.3.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 CHANGED
@@ -614,6 +614,9 @@ declare module '@micrio/client' {
614
614
  watermarkOpacity?: number;
615
615
  /** Split-screen: open a secondary image alongside this one (Micrio ID). */
616
616
  micrioSplitLink?: string;
617
+ /** Split-screen: stack the two images (one above the other) on a portrait viewport
618
+ * instead of placing them side by side (default: false). */
619
+ splitScreenHorizontal?: boolean;
617
620
  /** Split-screen: if true, the secondary camera does not follow the primary. */
618
621
  noFollow?: boolean;
619
622
  /** Split-screen: if false, the secondary image is display-only (no user interaction). */
@@ -757,14 +760,33 @@ declare module '@micrio/client' {
757
760
  export namespace Grid {
758
761
  /** Grid .focus() transition from current view */
759
762
  type MarkerFocusTransition = 'crossfade' | 'slide' | 'slide-horiz' | 'slide-vert' | 'slide-up' | 'slide-down' | 'slide-right' | 'slide-left' | 'swipe' | 'swipe-horiz' | 'swipe-vert' | 'swipe-up' | 'swipe-down' | 'swipe-right' | 'swipe-left' | 'behind' | 'behind-left' | 'behind-right';
760
- type GridSetTransition = 'crossfade' | 'behind' | 'behind-delayed' | 'appear-delayed';
763
+ type GridSetTransition = 'crossfade' | 'behind' | 'behind-delayed' | 'appear-delayed' | 'in-from-id';
761
764
  /** Virtual ImageInfo extension to support grid logic */
762
765
  interface GridImage {
763
766
  id: string;
764
767
  size: [number, number?];
765
768
  area?: Camera.View;
766
769
  view?: Camera.View;
770
+ /** Force this entry to render as an empty placeholder cell, even though it has an `id` */
771
+ empty?: boolean;
772
+ /**
773
+ * Optional source image id to animate this entry in from.
774
+ * Only applied for `grid.set(..., { transition: 'in-from-id' })` and only when this image is newly added.
775
+ */
776
+ from?: string;
777
+ /** Optional stacking order override (higher values render on top). */
778
+ z?: number;
767
779
  }
780
+ /** An empty placeholder cell in a grid layout, occupying grid space without an image */
781
+ interface GridEmptyCell {
782
+ /** Explicit marker for an empty placeholder cell */
783
+ empty?: boolean;
784
+ id?: undefined;
785
+ /** Cell span as [columns, rows?], defaults to a 1x1 cell */
786
+ size?: [number, number?];
787
+ }
788
+ /** A single grid layout entry: an image, or an empty placeholder cell */
789
+ type GridEntry = GridImage | GridEmptyCell;
768
790
  interface FocusOptions {
769
791
  /** Optional target image view */
770
792
  view?: Camera.View;
@@ -2807,8 +2829,11 @@ declare module '@micrio/client' {
2807
2829
  micrio: HTMLMicrioElement;
2808
2830
  /** The main {@link MicrioImage} that serves as the grid viewport. */
2809
2831
  image: MicrioImage;
2810
- /** Set the grid to display the given images, arranging them into a CSS grid. */
2811
- set(images?: Models.Grid.GridImage[], opts?: {
2832
+ /** Set the grid to display the given images, arranging them into a CSS grid.
2833
+ * Use `{ empty: true }` for explicit empty cells; this always renders an empty
2834
+ * placeholder cell, even when the entry also has an `id`.
2835
+ * Entries without an `id` are also treated as empty cells for backwards compatibility. */
2836
+ set(images?: Models.Grid.GridEntry[], opts?: {
2812
2837
  noHistory?: boolean;
2813
2838
  keepGrid?: boolean;
2814
2839
  horizontal?: boolean;
@@ -2819,6 +2844,8 @@ declare module '@micrio/client' {
2819
2844
  noBlur?: boolean;
2820
2845
  noFade?: boolean;
2821
2846
  transition?: Models.Grid.GridSetTransition;
2847
+ /** Seconds the `in-from-id` readiness gate may wait for base tiles. */
2848
+ readinessTimeout?: number;
2822
2849
  forceAni?: boolean;
2823
2850
  coverLimit?: boolean;
2824
2851
  cover?: boolean;
@@ -2844,7 +2871,8 @@ declare module '@micrio/client' {
2844
2871
  export {};
2845
2872
 
2846
2873
 
2847
- export {};
2874
+ /** Opacity that keeps an image fully visible without starting a fade. */
2875
+ export const OPACITY_VISIBLE = 0.9999;
2848
2876
 
2849
2877
 
2850
2878
  export {};