applyStepEffects function exported

Last updated: 2026-03-05T10:53:28.861Z

Metrics

LOC: 8 Complexity: 3 Params: 3

Signature

applyStepEffects( effects: StepEffect[] | undefined, selector: string | undefined, ): : Promise<void>

Summary

Runs all effects for a step in parallel. The step's CSS selector is used to resolve the target element.

Tags

#@param effects - List of effects to apply (may be empty).#@param selector - CSS selector for the step's target element.

Source Code

export async function applyStepEffects(
  effects: StepEffect[] | undefined,
  selector: string | undefined,
): Promise<void> {
  if (!effects || effects.length === 0) return;

  await Promise.all(effects.map((e) => applyEffect(e, selector)));
}

Dependencies (Outgoing)

graph LR applyStepEffects["applyStepEffects"] applyEffect["applyEffect"] applyStepEffects -->|calls| applyEffect style applyStepEffects fill:#dbeafe,stroke:#2563eb,stroke-width:2px click applyStepEffects "aed47434603419d0.html" click applyEffect "baf0d9f2a6803bb4.html"
TargetType
applyEffect calls

Impact (Incoming)

graph LR applyStepEffects["applyStepEffects"] executeStep["executeStep"] executeStep -->|uses| applyStepEffects style applyStepEffects fill:#dbeafe,stroke:#2563eb,stroke-width:2px click applyStepEffects "aed47434603419d0.html" click executeStep "a26ccfb820921de2.html"
SourceType
executeStep uses