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

    A class responsible for managing package-provided art and applying it to Documents in compendium packs.

    Hierarchy

    • Map
      • CompendiumArt
    Index

    Constructors

    Properties

    enabled: boolean = true

    Whether art application is enabled. This should be switched off when performing client-side compendium migrations in order to avoid persisting injected data.

    FLAG: string = "compendiumArtMappings"

    The key for the package manifest flag used to store the mapping information.

    SETTING: string = "compendiumArtConfiguration"

    The key for the setting used to store the World's art preferences.

    Methods

    • Internal

      Collate Document art mappings from active packages.

      Returns Promise<void>

    • Apply any art configured for a Document to its source data as it is initialized from a compendium pack.

      Parameters

      • documentClass: typeof Document

        The class of the Document being initialized.

      • source: object

        The Document's source data.

      • OptionalpackId: string

        The ID of the compendium pack the Document is initialized from.

      Returns object

      The Document's source data.