Class WorkerPAGFile

Hierarchy

  • WorkerPAGFile

Methods

  • Get a text data of the specified index. The index ranges from 0 to numTexts - 1. Note: It always returns the default text data.

    Parameters

    • editableTextIndex: number

    Returns Promise<TextDocument & {
        key: number;
    }>

  • Replace the text data of the specified index. The index ranges from 0 to PAGFile.numTexts - 1. Passing in null for the textData parameter will reset it to default text data.

    Parameters

    • editableTextIndex: number
    • textData: TextDocument & {
          [prop: string]: any;
      }

    Returns Promise<void>

  • Replace the image content of the specified index with a PAGImage object. The index ranges from 0 to PAGFile.numImages - 1. Passing in null for the image parameter will reset it to default image content.

    Parameters

    Returns Promise<undefined>

Constructors

Properties

key: number
worker: Worker
isDestroyed: boolean = false

Generated using TypeDoc