@micrio/client 7.3.11 → 7.3.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 CHANGED
@@ -757,14 +757,33 @@ declare module '@micrio/client' {
757
757
  export namespace Grid {
758
758
  /** Grid .focus() transition from current view */
759
759
  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';
760
+ type GridSetTransition = 'crossfade' | 'behind' | 'behind-delayed' | 'appear-delayed' | 'in-from-id';
761
761
  /** Virtual ImageInfo extension to support grid logic */
762
762
  interface GridImage {
763
763
  id: string;
764
764
  size: [number, number?];
765
765
  area?: Camera.View;
766
766
  view?: Camera.View;
767
+ /** Force this entry to render as an empty placeholder cell, even though it has an `id` */
768
+ empty?: boolean;
769
+ /**
770
+ * Optional source image id to animate this entry in from.
771
+ * Only applied for `grid.set(..., { transition: 'in-from-id' })` and only when this image is newly added.
772
+ */
773
+ from?: string;
774
+ /** Optional stacking order override (higher values render on top). */
775
+ z?: number;
767
776
  }
777
+ /** An empty placeholder cell in a grid layout, occupying grid space without an image */
778
+ interface GridEmptyCell {
779
+ /** Explicit marker for an empty placeholder cell */
780
+ empty?: boolean;
781
+ id?: undefined;
782
+ /** Cell span as [columns, rows?], defaults to a 1x1 cell */
783
+ size?: [number, number?];
784
+ }
785
+ /** A single grid layout entry: an image, or an empty placeholder cell */
786
+ type GridEntry = GridImage | GridEmptyCell;
768
787
  interface FocusOptions {
769
788
  /** Optional target image view */
770
789
  view?: Camera.View;
@@ -2807,8 +2826,11 @@ declare module '@micrio/client' {
2807
2826
  micrio: HTMLMicrioElement;
2808
2827
  /** The main {@link MicrioImage} that serves as the grid viewport. */
2809
2828
  image: MicrioImage;
2810
- /** Set the grid to display the given images, arranging them into a CSS grid. */
2811
- set(images?: Models.Grid.GridImage[], opts?: {
2829
+ /** Set the grid to display the given images, arranging them into a CSS grid.
2830
+ * Use `{ empty: true }` for explicit empty cells; this always renders an empty
2831
+ * placeholder cell, even when the entry also has an `id`.
2832
+ * Entries without an `id` are also treated as empty cells for backwards compatibility. */
2833
+ set(images?: Models.Grid.GridEntry[], opts?: {
2812
2834
  noHistory?: boolean;
2813
2835
  keepGrid?: boolean;
2814
2836
  horizontal?: boolean;
@@ -2819,6 +2841,8 @@ declare module '@micrio/client' {
2819
2841
  noBlur?: boolean;
2820
2842
  noFade?: boolean;
2821
2843
  transition?: Models.Grid.GridSetTransition;
2844
+ /** Seconds the `in-from-id` readiness gate may wait for base tiles. */
2845
+ readinessTimeout?: number;
2822
2846
  forceAni?: boolean;
2823
2847
  coverLimit?: boolean;
2824
2848
  cover?: boolean;
@@ -2844,7 +2868,8 @@ declare module '@micrio/client' {
2844
2868
  export {};
2845
2869
 
2846
2870
 
2847
- export {};
2871
+ /** Opacity that keeps an image fully visible without starting a fade. */
2872
+ export const OPACITY_VISIBLE = 0.9999;
2848
2873
 
2849
2874
 
2850
2875
  export {};