Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

defineEffect function

Checks a definition and returns it as a frozen callable.

View as Markdown
import { defineEffect } from '@dioramajs/diorama'

Registers and loads nothing. Throws EFFECT_DEFINITION on a bad definition.

function defineEffect<P extends ParamSpec = Empty>(
  definition: EffectDefinition<P> & CheckParams<P>,
): Effect<WidenSpec<P>>

Parameters

NameTypeDescription
definitionEffectDefinition<P> & CheckParams<P>

Also exported from @dioramajs/diorama/auto, @dioramajs/diorama/effects, @dioramajs/effects, @dioramajs/effects/effect.

Defined in packages/effects/src/effect.ts.