Skip to main content

Interface: EffectData<T>

Defined in: attributes/shape/effects/effect-data.ts:1

Type Parameters

T

T

Properties

equals

equals: (a, b) => boolean

Defined in: attributes/shape/effects/effect-data.ts:17

Compares two effect states for deep equality.

Parameters

a

T

The first effect state.

b

T

The second effect state.

Returns

boolean

True if the effects are structurally identical, otherwise false.


lerp

lerp: (from, to, t) => T

Defined in: attributes/shape/effects/effect-data.ts:9

Linearly interpolates between two effect states.

Parameters

from

T

The starting state of the effect.

to

T

The target state of the effect.

t

number

The interpolation factor (usually a normalized value between 0 and 1).

Returns

T

A new effect state representing the blended value.