Skip to main content
Rust4PM

Rect

An axis-aligned rectangle from its top-left min to its bottom-right max. The default is
the empty rectangle at the origin.
Used as Input

0

functions accept this type(+16 nested)

Used as Output

0

functions return this type(+11 nested)

Type Definition

6 nested items
struct— An axis-aligned rectangle from its top-left min to its bottom-right max. The default is
max*:Point— A point in output (drawing) space, in px.
x*:f64— Horizontal coordinate, growing to the right.
y*:f64— Vertical coordinate, growing downwards (SVG convention).
min*:Point— A point in output (drawing) space, in px.
x*:f64— Horizontal coordinate, growing to the right.
y*:f64— Vertical coordinate, growing downwards (SVG convention).

Example JSON Value

json
{
  "max": {
    "x": 0.2,
    "y": 0.2
  },
  "min": {
    "x": 0.2,
    "y": 0.2
  }
}