dino-ge
    Preparing search index...

    Interface TextProperties

    Configuration for creating a Text object.

    interface TextProperties {
        __sourceId?: string;
        backgroundColour?: string;
        colour?: string;
        font?: string;
        fontSize?: string;
        height?: number;
        horizontalAlign?: HorizontalAlign;
        onClick?: () => void;
        physics?: {
            acceleration?: default;
            friction?: number;
            isSensor?: boolean;
            isStatic?: boolean;
            mass?: number;
            restitution?: number;
            velocity?: default;
        };
        position: default;
        register?: boolean;
        tag?: string;
        text: string;
        verticalAlign?: VerticalAlign;
        visible?: boolean;
        width?: number;
        zIndex?: number;
    }
    Index

    Properties

    __sourceId?: string

    Hidden identifier linking runtime object to its source code location.

    backgroundColour?: string

    Optional background box colour.

    colour?: string

    Fill colour of the text.

    font?: string

    Font family (e.g., 'Arial', 'Helvetica').

    fontSize?: string

    Font size in pixels.

    height?: number

    Optional height for background box.

    horizontalAlign?: HorizontalAlign

    Horizontal alignment relative to the position.

    onClick?: () => void

    Callback for click events.

    physics?: {
        acceleration?: default;
        friction?: number;
        isSensor?: boolean;
        isStatic?: boolean;
        mass?: number;
        restitution?: number;
        velocity?: default;
    }

    Initial physics configuration.

    position: default

    Anchor position for the text.

    register?: boolean

    Whether to register with the engine immediately.

    tag?: string

    Unique tag for identification.

    text: string

    The text content to display.

    verticalAlign?: VerticalAlign

    Vertical alignment relative to the position.

    visible?: boolean

    Whether the text is initially visible.

    width?: number

    Optional width for background box.

    zIndex?: number

    Render order.