@micrio/client 6.0.12 → 6.0.14

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
@@ -781,6 +781,8 @@ declare module '@micrio/client' {
781
781
  /** If truthy, the HTML grid overlay remains visible and interactive when an image is focused.
782
782
  * `'focus'` expands the image to full view, `'zoom'` zooms the main camera to the image's viewport. */
783
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';
784
786
  /** Writable Svelte store holding the currently focused {@link MicrioImage} instance, or undefined if in grid view. */
785
787
  readonly focussed: Writable<MicrioImage | undefined>;
786
788
  /** Getter for the current value of the {@link focussed} store. */
@@ -805,6 +807,9 @@ declare module '@micrio/client' {
805
807
  * @param image The MicrioImage instance acting as the virtual container for the grid.
806
808
  */
807
809
  constructor(micrio: HTMLMicrioElement, image: MicrioImage);
810
+ private _clickDown;
811
+ private _clickStart;
812
+ private _clickEnd;
808
813
  /**
809
814
  * Sets the grid layout based on an input string or array of image definitions.
810
815
  * This is the main method for changing the grid's content and appearance.
@@ -892,7 +897,9 @@ declare module '@micrio/client' {
892
897
  * @returns Promise when the transition is completed
893
898
  */
894
899
  enlarge(idx: number, width: number, height?: number): Promise<MicrioImage[]>;
895
- /** Get the relative in-grid viewport of the image */
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;
896
903
  getRelativeView(image: MicrioImage, view: Models.Camera.ViewRect): Models.Camera.ViewRect;
897
904
  }
898
905
  /**
@@ -1303,6 +1310,8 @@ declare module '@micrio/client' {
1303
1310
  grid?: {
1304
1311
  /** Click behavior for grid images: `'focus'` expands to full view, `'zoom'` zooms to the image's viewport */
1305
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';
1306
1315
  /** Transition duration for grid animations, in seconds */
1307
1316
  transitionDuration?: number;
1308
1317
  /** Transition duration when going back, in seconds */