libavoid-js
    Preparing search index...

    Interface RectLike

    Any object with a top-left corner and a size (e.g. a Rect, DOMRect, sprotty Bounds, ELK node).

    libavoid: its Rectangle(centre, width, height) constructor takes the centre; this API always takes the top-left corner. To convert a centre-based rectangle: { x: cx - w / 2, y: cy - h / 2, width: w, height: h }.

    interface RectLike {
        x: number;
        y: number;
        width: number;
        height: number;
    }
    Index
    x: number
    y: number
    width: number
    height: number