Penpot plugins API
    Preparing search index...

    Type Alias Bounds

    Bounds represents the boundaries of a rectangular area, defined by the coordinates of the top-left corner and the dimensions of the rectangle.

    const bounds = { x: 50, y: 50, width: 200, height: 100 };
    console.log(bounds);
    type Bounds = {
        x: number;
        y: number;
        width: number;
        height: number;
    }
    Index

    Properties

    Properties

    x: number

    Top-left x position of the rectangular area defined

    y: number

    Top-left y position of the rectangular area defined

    width: number

    Width of the represented area

    height: number

    Height of the represented area