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

    Interface TokenAnimationData

    interface TokenAnimationData {
        alpha: number;
        bar1: object;
        bar2: object;
        depth: number;
        elevation: number;
        height: number;
        ring: { subject: { scale: number; texture: string } };
        rotation: number;
        texture: {
            anchorX: number;
            anchorY: number;
            scaleX: number;
            scaleY: number;
            src: string;
            tint: Color;
        };
        width: number;
        x: number;
        y: number;
    }
    Index

    Properties

    alpha: number

    The alpha value

    bar1: object

    Attribute bar 1

    bar2: object

    Attribute bar 2

    depth: number

    The depth in grid spaces

    elevation: number

    The elevation in grid units

    height: number

    The height in grid spaces

    ring: { subject: { scale: number; texture: string } }

    The ring data

    Type Declaration

    • subject: { scale: number; texture: string }

      The ring subject data

      • scale: number

        The ring subject scale

      • texture: string

        The ring subject texture

    rotation: number

    The rotation in degrees

    texture: {
        anchorX: number;
        anchorY: number;
        scaleX: number;
        scaleY: number;
        src: string;
        tint: Color;
    }

    The texture data

    Type Declaration

    • anchorX: number

      The texture anchor X

    • anchorY: number

      The texture anchor Y

    • scaleX: number

      The texture scale X

    • scaleY: number

      The texture scale Y

    • src: string

      The texture file path

    • tint: Color

      The texture tint

    width: number

    The width in grid spaces

    x: number

    The x position in pixels

    y: number

    The y position in pixels