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

    Interface TokenResizingInstruction

    Resize the Token such that its center point remains (almost) unchanged. The center point might change slightly because the new (x, y) position is rounded.

    interface TokenResizingInstruction {
        autoRotate?: false;
        constrainOptions?: { ignoreCost: true; ignoreWalls: true };
        dimensions: Partial<
            Omit<TokenData & TokenMovementWaypoint, "x" | "y" | "elevation">,
        >;
        measureOptions?: {};
        method?: TokenMovementMethod;
        planned?: boolean;
        showRuler?: false;
        terrainOptions?: {};
    }
    Index

    Properties

    autoRotate?: false

    Resizing never auto rotates.

    constrainOptions?: { ignoreCost: true; ignoreWalls: true }

    Resizing always ignores walls, surfaces and impassable terrain.

    dimensions: Partial<
        Omit<TokenData & TokenMovementWaypoint, "x" | "y" | "elevation">,
    >

    The new dimensions and additional data.

    measureOptions?: {}

    Resizing doesn't cost anything.

    The method of movement. Default: TokenMovementOptions#method.

    planned?: boolean

    Don't start the movement yet? Default: TokenMovementOptions#planned.

    showRuler?: false

    Resizing never shows the ruler.

    terrainOptions?: {}

    Resizing doesn't move through terrain.