UNPKG

hy-masonry

Version:

Animated Masonry Layout as Web Component - Living organisms that morph and breathe

68 lines 1.43 kB
import { MasonryItem } from '../types'; export declare class InteractionHandler { private longPressTimers; private touchStartPositions; private longPressDelay; private touchEnabled; constructor(config?: { longPressDelay?: number; touchEnabled?: boolean; }); /** * Setup event listeners for an item */ setupItemListeners(item: MasonryItem, element: HTMLElement): void; /** * Handle mouse enter */ private handleMouseEnter; /** * Handle mouse leave */ private handleMouseLeave; /** * Handle click */ private handleClick; /** * Handle touch start */ private handleTouchStart; /** * Handle touch end */ private handleTouchEnd; /** * Handle touch move */ private handleTouchMove; /** * Handle long press */ private handleLongPress; /** * Handle key down */ private handleKeyDown; /** * Dispatch morph event */ private dispatchMorphEvent; /** * Dispatch custom event */ private dispatchEvent; /** * Clean up event listeners */ cleanupItemListeners(element: HTMLElement): void; /** * Get active timers count */ getActiveTimersCount(): number; /** * Clear all timers */ clearAllTimers(): void; } //# sourceMappingURL=interaction-handler.d.ts.map