Body, Mind & Soul — API Reference
    Preparing search index...

    A viewer for displaying an actor's roll data with labeled paths. Helps players understand what data is available for roll formulas.

    Hierarchy

    • any
      • default
    Index
    • Parameters

      • options: {} = {}

      Returns default

    document: any
    DEFAULT_OPTIONS: {
        actions: { toggleSection: (event: Event, target: HTMLElement) => void };
        classes: string[];
        position: { height: number; width: number };
        tag: string;
        window: { icon: string; resizable: boolean; title: string };
    } = ...
    PARTS: { content: { scrollable: string[]; template: string } } = ...
    • Parameters

      • partId: any
      • htmlElement: any
      • options: any

      Returns void

    • Build organized sections of roll data for display.

      Parameters

      • rollData: object

        The raw roll data from getRollData()

      Returns object[]

      Array of section objects with label, entries

    • Build the variable shortcuts reference section. Shows {str}/{strength} etc. shortcuts alongside their current values.

      Returns object

      Section object

    • Get an appropriate icon for an archetype.

      Parameters

      • arcKey: string

        The archetype key

      Returns string

      Font Awesome icon class

    • Parameters

      • options: any

      Returns Promise<any>

    • Handle toggling a collapsible section.

      Parameters

      • event: Event
      • target: HTMLElement

      Returns void