Interface PAG

Hierarchy

  • EmscriptenModule
    • PAG

Indexable

[key: string]: any

Properties

_PAGFile: {
    _Load: ((bytes: number, length: number) => any);
    _MaxSupportedTagLevel: (() => number);
}

Type declaration

  • _Load: ((bytes: number, length: number) => any)
      • (bytes: number, length: number): any
      • Parameters

        • bytes: number
        • length: number

        Returns any

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

_PAGImage: {
    _FromNativeImage: ((source: TexImageSource | ArrayBufferImage) => any);
    _FromPixels: ((pixels: number, width: number, height: number, rowBytes: number, colorType: ColorType, alphaType: AlphaType) => any);
    _FromTexture: ((textureID: number, width: number, height: number, flipY: boolean) => any);
}

Type declaration

  • _FromNativeImage: ((source: TexImageSource | ArrayBufferImage) => any)
  • _FromPixels: ((pixels: number, width: number, height: number, rowBytes: number, colorType: ColorType, alphaType: AlphaType) => any)
      • (pixels: number, width: number, height: number, rowBytes: number, colorType: ColorType, alphaType: AlphaType): any
      • Parameters

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

        Returns any

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

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

        Returns any

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

Type declaration

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

        • canvasID: string

        Returns any

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

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

        Returns any

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

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

        Returns any

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

Type declaration

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

        • width: number
        • height: number

        Returns any

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

Type declaration

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

Type declaration

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

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

        Returns any

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

Type declaration

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

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

        Returns any

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

Type declaration

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

        • fontFamily: string
        • fontStyle: string

        Returns any

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

        • fontName: any

        Returns void

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

Type declaration

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

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

        Returns any

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

        • dx: number
        • dy: number

        Returns any

_registerSoftwareDecoderFactory: ((factory: null | SoftwareDecoderFactory) => 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: {
    width: number;
    height: number;
}, pixels: Uint8Array, tag: string) => void)

Type declaration

    • (info: {
          width: number;
          height: number;
      }, pixels: Uint8Array, tag: string): void
    • Parameters

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

      Returns void

registerSoftwareDecoderFactory: ((factory: null | SoftwareDecoderFactory) => void)

Type declaration

SDKVersion: (() => string)

Type declaration

    • (): string
    • Returns string

currentPlayer: null | PAGPlayer
arguments: string[]
environment: EnvironmentType
preInit: (() => void)[]
preRun: (() => void)[]
postRun: (() => void)[]
onAbort: ((what: any) => void)

Type declaration

    • (what: any): 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
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: WebAssemblyImports
    • successCallback: ((module: Module) => void)
        • (module: Module): void
        • Parameters

          • module: Module

          Returns void

    Returns WebAssemblyExports

  • 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