跳转到内容

PackagedAssetSourceOptions

此内容尚不支持你的语言。

Defined in: packagedRuntime.ts:131

Transport overrides for realms that do not read bytes off a device.

optional backend?: Backend

Defined in: packagedRuntime.ts:133

Where bytes come from; the platform’s packaged-file reader by default.


optional decodePixels?: (path, flip) => Promise<{ height: number; pixels: Uint8Array; width: number; }>

Defined in: packagedRuntime.ts:137

Image → RGBA; the platform’s decode by default. A cooked web build passes a fetch+blob decoder instead: drawing a cross-origin image into a canvas taints it, and getImageData then throws.

string

boolean

Promise<{ height: number; pixels: Uint8Array; width: number; }>