PlaceOptions interface
Options of `ctx.place`.
import type { PlaceOptions } from '@dioramajs/diorama/effects'interface PlaceOptionsMembers
| Name | Type | Description |
|---|---|---|
readonly dispose? | boolean | Dispose geometry, materials and textures on detach. Default true, false for shared ones. |
readonly fit? | 'none' | 'contain' | 'box' | 'box' (default) stretches a 1x1 object to the box, 'contain' scales it by min(width, height), 'none' keeps px units. |
readonly replace? | boolean | Use this object as the element's GL copy instead of the surface mesh. |
Also exported from @dioramajs/effects.
Defined in packages/effects/src/types.ts.