@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/image-cloud-auto-init.js +879 -775
- package/dist/image-cloud-auto-init.js.map +1 -1
- package/dist/image-cloud.js +856 -752
- package/dist/image-cloud.js.map +1 -1
- package/dist/image-cloud.umd.js +3 -3
- package/dist/image-cloud.umd.js.map +1 -1
- package/dist/index.d.ts +12 -0
- package/package.json +1 -1
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.
|
|
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",
|