Interface PAG

Hierarchy

  • EmscriptenModule
    • PAG

Indexable

[key: string]: any

Properties

_PAGFile: {
    _Load: ((buffer) => any);
    _MaxSupportedTagLevel: (() => number);
}

Type declaration

  • _Load: ((buffer) => any)
      • (buffer): any
      • Parameters

        • buffer: Uint8Array

        Returns any

  • _MaxSupportedTagLevel: (() => number)
      • (): number
      • Returns number

_PAGImage: {
    _FromNativeImage: ((source) => any);
    _FromPixels: ((pixels, width, height, rowBytes, colorType, alphaType) => any);
    _FromTexture: ((textureID, width, height, flipY) => any);
}

Type declaration

  • _FromNativeImage: ((source) => any)
      • (source): any
      • Parameters

        • source: TexImageSource | ArrayBufferImage

        Returns any

  • _FromPixels: ((pixels, width, height, rowBytes, colorType, alphaType) => any)
      • (pixels, width, height, rowBytes, colorType, alphaType): any
      • Parameters

        • pixels: Uint8Array
        • width: number
        • height: number
        • rowBytes: number
        • colorType: ColorType
        • alphaType: AlphaType

        Returns any

  • _FromTexture: ((textureID, width, height, flipY) => any)
      • (textureID, width, height, flipY): any
      • Parameters

        • textureID: number
        • width: number
        • height: number
        • flipY: boolean

        Returns any

_PAGPlayer: any
_PAGSurface: {
    _FromCanvas: ((canvasID) => any);
    _FromTexture: ((textureID, width, height, flipY) => any);
    _FromRenderTarget: ((framebufferID, width, height, flipY) => any);
}

Type declaration

  • _FromCanvas: ((canvasID) => any)
      • (canvasID): any
      • Parameters

        • canvasID: string

        Returns any

  • _FromTexture: ((textureID, width, height, flipY) => any)
      • (textureID, width, height, flipY): any
      • Parameters

        • textureID: number
        • width: number
        • height: number
        • flipY: boolean

        Returns any

  • _FromRenderTarget: ((framebufferID, width, height, flipY) => any)
      • (framebufferID, width, height, flipY): any
      • Parameters

        • framebufferID: number
        • width: number
        • height: number
        • flipY: boolean

        Returns any

_PAGComposition: {
    _Make: ((width, height) => any);
}

Type declaration

  • _Make: ((width, height) => any)
      • (width, height): any
      • Parameters

        • width: number
        • height: number

        Returns any

_PAGTextLayer: {
    _Make: ((duration, text, fontSize, fontFamily, fontStyle) => any) & ((duration, textDocumentHandle) => any);
}

Type declaration

  • _Make: ((duration, text, fontSize, fontFamily, fontStyle) => any) & ((duration, textDocumentHandle) => any)
_PAGImageLayer: {
    _Make: ((width, height, duration) => any);
}

Type declaration

  • _Make: ((width, height, duration) => any)
      • (width, height, duration): any
      • Parameters

        • width: number
        • height: number
        • duration: number

        Returns any

_PAGSolidLayer: {
    _Make: ((duration, width, height, solidColor, opacity) => any);
}

Type declaration

  • _Make: ((duration, width, height, solidColor, opacity) => any)
      • (duration, width, height, solidColor, opacity): any
      • Parameters

        • duration: number
        • width: number
        • height: number
        • solidColor: Color
        • opacity: number

        Returns any

_PAGFont: {
    _create: ((fontFamily, fontStyle) => any);
    _SetFallbackFontNames: ((fontName) => void);
}

Type declaration

  • _create: ((fontFamily, fontStyle) => any)
      • (fontFamily, fontStyle): any
      • Parameters

        • fontFamily: string
        • fontStyle: string

        Returns any

  • _SetFallbackFontNames: ((fontName) => void)
      • (fontName): void
      • Parameters

        • fontName: any

        Returns void

_Matrix: {
    _MakeAll: ((scaleX, skewX, transX, skewY, scaleY, transY, pers0, pers1, pers2) => any);
    _MakeScale: ((sx, sy) => any) & ((scale) => any);
    _MakeTrans: ((dx, dy) => any);
}

Type declaration

  • _MakeAll: ((scaleX, skewX, transX, skewY, scaleY, transY, pers0, pers1, pers2) => any)
      • (scaleX, skewX, transX, skewY, scaleY, transY, pers0, pers1, pers2): any
      • Parameters

        • scaleX: number
        • skewX: number
        • transX: number
        • skewY: number
        • scaleY: number
        • transY: number
        • pers0: number
        • pers1: number
        • pers2: number

        Returns any

  • _MakeScale: ((sx, sy) => any) & ((scale) => any)
  • _MakeTrans: ((dx, dy) => any)
      • (dx, dy): any
      • Parameters

        • dx: number
        • dy: number

        Returns any

_registerSoftwareDecoderFactory: ((factory) => void)

Type declaration

VectorString: any
webAssemblyQueue: WebAssemblyQueue
TGFXPathFillType: TGFXPathFillType
TGFXLineCap: TGFXLineCap
TGFXLineJoin: TGFXLineJoin
globalCanvas: GlobalCanvas
module: PAG
PAGPlayer: typeof PAGPlayer
PAGFile: typeof PAGFile
PAGView: typeof PAGView
PAGFont: typeof PAGFont
PAGImage: typeof PAGImage
PAGLayer: typeof PAGLayer
PAGComposition: typeof PAGComposition
PAGSurface: typeof PAGSurface
PAGTextLayer: typeof PAGTextLayer
PAGImageLayer: typeof PAGImageLayer
PAGSolidLayer: typeof PAGSolidLayer
GlobalCanvas: typeof GlobalCanvas
BackendContext: typeof BackendContext
Matrix: typeof Matrix
RenderCanvas: typeof RenderCanvas
traceImage: ((info, pixels, tag) => void)

Type declaration

    • (info, pixels, tag): void
    • Parameters

      • info: {
            width: number;
            height: number;
        }
        • width: number
        • height: number
      • pixels: Uint8Array
      • tag: string

      Returns void

registerSoftwareDecoderFactory: ((factory) => void)

Type declaration

SDKVersion: (() => string)

Type declaration

    • (): string
    • Returns string

currentPlayer: null | PAGPlayer
arguments: string[]
environment: EnvironmentType
preInit: (() => void)[]

Type declaration

    • (): void
    • Returns void

preRun: (() => void)[]

Type declaration

    • (): void
    • Returns void

postRun: (() => void)[]

Type declaration

    • (): void
    • Returns void

onAbort: ((what) => void)

Type declaration

    • (what): void
    • Parameters

      • what: any

      Returns void

onRuntimeInitialized: (() => void)

Type declaration

    • (): void
    • Returns void

preinitializedWebGLContext: WebGLRenderingContext
noInitialRun: boolean
noExitRuntime: boolean
logReadFiles: boolean
filePackagePrefixURL: string
wasmBinary: ArrayBuffer
HEAP: Int32Array
IHEAP: Int32Array
FHEAP: Float64Array
HEAP8: Int8Array
HEAP16: Int16Array
HEAP32: Int32Array
HEAPU8: Uint8Array
HEAPU16: Uint16Array
HEAPU32: Uint32Array
HEAPF32: Float32Array
HEAPF64: Float64Array
HEAP64: BigInt64Array
HEAPU64: BigUint64Array
TOTAL_STACK: number
TOTAL_MEMORY: number
FAST_MEMORY: number
preloadedImages: any
preloadedAudios: any

Methods

  • Parameters

    • str: string

    Returns void

  • Parameters

    • str: string

    Returns void

  • Parameters

    • object: object

    Returns void

  • Parameters

    • remotePackageName: string
    • remotePackageSize: number

    Returns ArrayBuffer

  • Parameters

    • imports: Imports
    • successCallback: ((module) => void)
        • (module): void
        • Parameters

          • module: Instance

          Returns void

    Returns undefined | Exports

  • Parameters

    • url: string
    • scriptDirectory: string

    Returns string

  • Parameters

    • event: MessageEvent<any>

    Returns void

  • Parameters

    • cb: (() => any)
        • (): any
        • Returns any

    Returns void

  • Parameters

    • cb: (() => any)
        • (): any
        • Returns any

    Returns void

  • Parameters

    • cb: (() => any)
        • (): any
        • Returns any

    Returns void

  • Parameters

    • cb: (() => any)
        • (): any
        • Returns any

    Returns void

  • Parameters

    • cb: (() => any)
        • (): any
        • Returns any

    Returns void

  • Parameters

    • size: number

    Returns number

  • Parameters

    • ptr: number

    Returns void

Generated using TypeDoc