MotionScript

@motion-script/core


@motion-script/core / withEffectOptions

Function: withEffectOptions()

withEffectOptions<T>(base, options?): T & ModedEffect

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

Merge cross-cutting options onto a built effect, skipping undefined keys.

Omitting rather than writing undefined matters: the per-effect equals() implementations compare mode directly, so a spread that sets mode: undefined is not equal to an effect that never set it at all.

Type Parameters

T

T extends object

Parameters

base

T

options?

ModedEffect

Returns

T & ModedEffect