API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceAssetFactoryContext

@codexo/exojs / assets / stable

What a factory is told about the one resource it is building. There is deliberately no network, cache store or cache policy here. A factory receives source data that has already been acquired and decoded, and its only outward reach is dependencies - which acquires other ASSETS, never raw bytes. Where those bytes came from, and whether they were served from a cache, is not a factory's decision to make or to observe.

7
props
0
methods
0
events
Import
import { AssetFactoryContext } from '@codexo/exojs'

What a factory is told about the one resource it is building.

There is deliberately no network, cache store or cache policy here. A factory receives source data that has already been acquired and decoded, and its only outward reach is dependencies - which acquires other ASSETS, never raw bytes. Where those bytes came from, and whether they were served from a cache, is not a factory's decision to make or to observe.

Properties7
locator: string
The canonical locator the source data was acquired from.
options?: Options
The options this request carried, as declared by the asset type.
resourceKey: string
The identity of the resource being built.
signal?: AbortSignal
Cancellation signal of this load. It aborts once no claim scope needs the result any more; undefined means the caller started the load without a cancellation channel.
source: string
The source as the request named it, before base-path resolution. A reference the asset itself carries - a font's page image, an atlas's sheet - is relative to this, not to the resolved URL: resolving it here and loading the result would apply the loader's base path to it a second time.
sourceKey: string
The identity of the source data it is built from.
Source