EffectsApi interface
The `effects` service, `app.effects`.
import type { EffectsApi } from '@dioramajs/diorama/effects'interface EffectsApiMembers
| Name | Type | Description |
|---|---|---|
readonly attach | Attach | Same function as |
readonly render | RenderApi | undefined | The renderer once ready. |
readonly status | ReadonlySignal<EffectsStatus> | The state of the engine. |
disable | | Turns an effect off everywhere without touching markup. The returned Off turns it back on. |
get | | The instance of an effect on an element, if any. |
instances | | Live instances, of one effect or all. |
load | | Boots the engine now. Resolves |
observe | | Observes another root such as a shadow root, and adopts the hiding stylesheet there. |
pin | | Replaces the |
register | | Adds or replaces sources. Waiting elements pick them up and replaced ones rebuild (HMR). |
scan | | Reconciles now, after DOM work the observer cannot see. |
stats | | Counters for tests and devtools, zeros without the runtime. |
take | | Takes an element's GL copy. Returns an inert copy ('released', ready false) without the runtime, when it is already taken, or when another app owns the element. |
Also exported from @dioramajs/effects.
Defined in packages/effects/src/types.ts.