PackagedAssetSourceOptions
此内容尚不支持你的语言。
Defined in: packagedRuntime.ts:131
Transport overrides for realms that do not read bytes off a device.
Properties
Section titled “Properties”backend?
Section titled “backend?”
optionalbackend?:Backend
Defined in: packagedRuntime.ts:133
Where bytes come from; the platform’s packaged-file reader by default.
decodePixels?
Section titled “decodePixels?”
optionaldecodePixels?: (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.
Parameters
Section titled “Parameters”string
boolean
Returns
Section titled “Returns”Promise<{ height: number; pixels: Uint8Array; width: number; }>