pixi.js
    Preparing search index...

    Interface AssetsPreferencesAdvanced

    Extensible preferences that can be used, for instance, when configuring loaders.

    7.2.0

    interface AssetsPreferences {
        crossOrigin: string;
        parseAsGraphicsContext: boolean;
        preferCreateImageBitmap: boolean;
        preferWorkers: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    crossOrigin: string

    The crossOrigin value to use for images when preferCreateImageBitmap is false.

    'anonymous'
    
    parseAsGraphicsContext: boolean

    When set to true, loading and decoding images will happen with new Image(),

    false
    
    preferCreateImageBitmap: boolean

    When set to true, loading and decoding images will happen with createImageBitmap, otherwise it will use new Image().

    true
    
    preferWorkers: boolean

    When set to true, loading and decoding images will happen with Worker thread, if available on the browser. This is much more performant as network requests and decoding can be expensive on the CPU. However, not all environments support Workers, in some cases it can be helpful to disable by setting to false.

    true