Module

InteractionUtils

Utility functions for interactive animations

View Source utils/interactionUtils.js, line 1

Members

# static constant GestureRecognizer

Gesture recognition utilities

View Source utils/interactionUtils.js, line 229

# static constant createInteractionHandler

Creates an interaction handler for canvas animations

View Source utils/interactionUtils.js, line 28

Type Definitions

Object

# InteractionConfig

Properties:
Name Type Description
effect string

'attract' | 'repel' | 'follow' | 'burst' | 'gravity' | 'magnetic' | 'vortex' | 'wave' | 'elastic'

strength number

Effect strength (0-1)

radius number

Interaction radius in pixels

continuous boolean

Whether effect continues after interaction ends

View Source utils/interactionUtils.js, line 14

Object

# InteractionPoint

Properties:
Name Type Description
x number

X coordinate

y number

Y coordinate

force number

Interaction force (0-1)

type string

'mouse' | 'touch'

View Source utils/interactionUtils.js, line 6