dino-ge
    Preparing search index...

    Interface RectProps

    Configuration for creating a Rectangle object.

    interface RectProps {
        __sourceId?: string;
        colour?: string;
        height: number;
        physics?: {
            acceleration?: default;
            friction?: number;
            isSensor?: boolean;
            isStatic?: boolean;
            mass?: number;
            restitution?: number;
            velocity?: default;
        };
        position: default;
        tag?: string;
        visible?: boolean;
        width: number;
        zIndex?: number;
    }
    Index

    Properties

    __sourceId?: string

    Hidden identifier linking runtime object to its source code location.

    colour?: string

    Fill colour.

    height: number

    Height of the rectangle.

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

    Initial physics configuration.

    position: default

    Initial position of the top-left corner.

    tag?: string

    Unique tag for identification.

    visible?: boolean

    Whether the rectangle is initially visible.

    width: number

    Width of the rectangle.

    zIndex?: number

    Render order.