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

definePlugin function

Defines a plugin.

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

The result is a frozen function: call it with options for a configured copy.

function definePlugin<N extends string, O extends object = Empty, DO extends Partial<OptionsOf<O, DO, SO>> = Empty, S = void, D extends readonly DependencyRef[] = [], OD extends readonly DependencyRef[] = [], SI = unknown, SO extends object = Empty>(
  definition: PluginDefinition<N, O, DO, S, D, OD, SI, SO>,
): Plugin<N, OptionsOf<O, DO, SO>, ServiceFor<N, S>, RequiredOptions<OptionsOf<O, DO, SO>, DO, SI>>

Parameters

NameTypeDescription
definitionPluginDefinition<N, O, DO, S, D, OD, SI, SO>

Also exported from @dioramajs/core.

Defined in packages/core/src/kernel/plugin.ts.