weasel API - v0.8.0
    Preparing search index...

    Interface RectPath

    Axis-aligned rectangle. Fast path for the (very common) case where the shape is just a rect — preserves O(1) bounds and hit-test, avoids the polygon kernel entirely. Promote to PolygonPath only when the shape grows beyond what a rect can express.

    interface RectPath {
        height: number;
        kind: "rect";
        width: number;
        x: number;
        y: number;
    }
    Index

    Properties

    Properties

    height: number
    kind: "rect"
    width: number
    x: number
    y: number