LoadOptions interface
Options of `assets.load`.
import type { LoadOptions } from '@dioramajs/diorama/assets'interface LoadOptions<K extends string = string>Members
| Name | Type | Description |
|---|---|---|
readonly crossOrigin? | CrossOrigin | Part of the key, as the browser keys its image cache by CORS mode. A |
readonly options? | Readonly<Record<string, string | number | boolean>> | Loader options, part of the key. For example |
readonly priority? | Priority | Default 'normal'. An entry runs at the highest priority among its leases. |
readonly signal? | AbortSignal | Aborting it releases the lease. |
readonly type? | K | Guessed from the extension when omitted: gltf for .glb and .gltf, ktx2 for .ktx2, texture for images. |
Also exported from @dioramajs/assets.
Defined in packages/assets/src/types.ts.