@frybynite/image-cloud 0.2.5 → 0.2.7

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/dist/index.d.ts CHANGED
@@ -732,6 +732,7 @@ declare class ImageCloud {
732
732
  private entryAnimationEngine;
733
733
  private layoutEngine;
734
734
  private zoomEngine;
735
+ private swipeEngine;
735
736
  private imageLoader;
736
737
  private imageFilter;
737
738
  private containerEl;
@@ -1521,6 +1522,17 @@ export declare class ZoomEngine {
1521
1522
  * Useful for hover state management - don't apply hover to animating images
1522
1523
  */
1523
1524
  isInvolved(imageElement: HTMLElement): boolean;
1525
+ /**
1526
+ * Apply a temporary horizontal drag offset to the focused image
1527
+ * Used during swipe gestures for visual feedback
1528
+ */
1529
+ setDragOffset(offset: number): void;
1530
+ /**
1531
+ * Clear the drag offset, optionally animating back to center
1532
+ * @param animate - If true, animate back to center; if false, snap instantly
1533
+ * @param duration - Animation duration in ms (default 150)
1534
+ */
1535
+ clearDragOffset(animate: boolean, duration?: number): void;
1524
1536
  /**
1525
1537
  * Reset zoom state (cancels all animations)
1526
1538
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frybynite/image-cloud",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "Javascript/TypeScript image cloud library with custom loaders, various layouts, full images styling, with animation and zoom effects",
5
5
  "type": "module",
6
6
  "main": "./dist/image-cloud.umd.js",