Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    An Application responsible for displaying and editing a single pdf-type JournalEntryPage Document.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    isV2: boolean = ...

    Indicates that the sheet renders with App V2 rather than V1.

    toc: Record<string, JournalEntryPageHeading>

    The table of contents for this text page.

    _appId: number = 0

    An incrementing integer Application ID.

    _maxZ: number = ...

    The current maximum z-index of any displayed Application.

    BASE_APPLICATION: typeof ApplicationV2 = ApplicationV2

    Designates which upstream Application class in this class' inheritance chain is the base application. Any DEFAULT_OPTIONS of super-classes further upstream of the BASE_APPLICATION are ignored. Hook events for super-classes further upstream of the BASE_APPLICATION are not dispatched.

    DEFAULT_OPTIONS: { classes: string[]; window: { icon: string } } = ...
    EDIT_PARTS: {
        content: { classes: string[]; template: string };
        footer: HandlebarsTemplatePart;
        header: HandlebarsTemplatePart;
    } = ...
    emittedEvents: readonly [unknown, "closeView"] = ...
    isV2: boolean = true

    Indicates that the sheet renders with App V2 rather than V1.

    RENDER_STATES: Record<string, number> = ...

    The sequence of rendering states that describe the Application life-cycle.

    TABS: Record<string, ApplicationTabsConfiguration> = {}

    Configuration of application tabs, with an entry per tab group.

    VIEW_PARTS: { content: { root: boolean; template: string } } = ...
    _sizes: Record<string, number> = {}

    Maintain a cache of PDF sizes to avoid making HEAD requests every render.

    Accessors

    • get isView(): boolean

      Whether the sheet is in view mode.

      Returns boolean

    Methods

    • Parameters

      • options: any

      Returns any

    • Parameters

      • element: any
      • options: any

      Returns Promise<any>

    • Parameters

      • context: any
      • options: any

      Returns Promise<void>

    • Parameters

      • context: any
      • options: any

      Returns Promise<void>

    • Parameters

      • options: any

      Returns Promise<any>

    • Parameters

      • partId: any
      • context: any
      • options: any

      Returns Promise<any>

    • Parameters

      • event: any
      • form: any
      • formData: any
      • updateData: any

      Returns any

    • Protected

      Marshall URL query parameters to pass to the PDF viewer.

      Returns URLSearchParams

    • Protected

      Actions performed when this sheet is closed in some parent view.

      Returns void

    • Protected

      Handle a request to load a PDF.

      Parameters

      • event: PointerEvent

        The triggering event.

      Returns void

    • Protected

      Prepare heading level choices.

      Returns Record<string, string>

    • Iterate over the inheritance chain of this Application. The chain includes this Application itself and all parents until the base application is encountered.

      Returns Generator<typeof ApplicationV2, void, unknown>

    • Iterate over the instances of this Application.

      Returns Generator<typeof ApplicationV2, any, any>

    • Parse a CSS style rule into a number of pixels which apply to that dimension.

      Parameters

      • style: string

        The CSS style rule

      • parentDimension: number

        The relevant dimension of the parent element

      Returns number | void

      The parsed style dimension in pixels

    • Wait for any images in the given element to load.

      Parameters

      • element: HTMLElement

        The element.

      Returns Promise<void>