Strata - v1.4.10
    Preparing search index...

    Interface DamageNumberConfig

    Configuration for animated damage/healing text numbers.

    interface DamageNumberConfig {
        color?: string;
        duration?: number;
        fadeStart?: number;
        floatDistance?: number;
        fontFamily?: string;
        fontSize?: number;
        fontWeight?: string;
        randomOffset?: number;
        scale?: number;
        type?: "normal" | "block" | "critical" | "heal" | "miss";
        value: number;
    }
    Index

    Properties

    color?: string

    CSS-compatible color string override.

    duration?: number

    Total animation duration in milliseconds.

    fadeStart?: number

    Percentage of duration (0-1) when fading begins.

    floatDistance?: number

    Vertical distance the number floats upwards.

    fontFamily?: string

    CSS-compatible font family string.

    fontSize?: number

    Font size in pixels.

    fontWeight?: string

    CSS font-weight value.

    randomOffset?: number

    Maximum random horizontal jitter in pixels.

    scale?: number

    Initial scale multiplier for impact emphasis.

    type?: "normal" | "block" | "critical" | "heal" | "miss"

    Category determining visual style (color/size).

    value: number

    The numeric value to display.