holdsSpotlight

Returns whether a spotlight is running anywhere inside these nodes.

@internote/canvas-sdk/reactFunction
On this page
import { holdsSpotlight } from '@internote/canvas-sdk/react';

#Signature

(nodes: CompiledNode[], runtime: EnvironmentContext["animation"]): boolean

#Parameters

nodes
The environment's children, searched at any depth.
runtime
The environment's animation runtime, ctx.animation.

Declared in packages/canvas-sdk/src/react/attention.tsx:195.

Last updated