Strata - v1.4.10
    Preparing search index...

    Interface DamageNumberProps

    Props for the DamageNumber component.

    Displays floating, animated text in world space to indicate damage or healing.

    interface DamageNumberProps {
        color?: string;
        duration?: number;
        fadeStart?: number;
        floatDistance?: number;
        fontFamily?: string;
        fontSize?: number;
        fontWeight?: string;
        onComplete?: () => void;
        position: [number, number, number];
        randomOffset?: number;
        scale?: number;
        type?: "normal" | "block" | "critical" | "heal" | "miss";
        value?: number;
    }

    Hierarchy

    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.

    onComplete?: () => void

    Callback fired when the fade animation completes and the component can be unmounted.

    position: [number, number, number]

    Starting world position [x, y, z] where the number appears.

    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.