Any object with a top-left corner and a size (e.g. a Rect, DOMRect, sprotty
Bounds, ELK node).
Remarks
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 }.
Any object with a top-left corner and a size (e.g. a Rect, DOMRect, sprotty Bounds, ELK node).
Remarks
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 }.