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

    Type Alias InsertExtras

    InsertExtras:
        | { kind: "rect" }
        | { kind: "ellipse" }
        | {
            a: { x: number; y: number };
            b: { x: number; y: number };
            kind: "line";
        }
        | {
            center?: { x: number; y: number };
            kind: "polygon";
            radius?: number;
            rotation: number;
            sides: number;
        }
        | {
            center?: { x: number; y: number };
            innerRadiusRatio: number;
            kind: "star";
            outerRadius?: number;
            points: number;
            rotation: number;
        }
        | { kind: "pencil"; samples: ReadonlyArray<DragSample> }
        | { kind: "text"; text?: string }
        | { kind: string; [extra: string]: unknown }

    Per-kind extra geometry passed to InsertDep.commit.

    Built-in tools populate a typed variant so the kit's default factory can render the true tool params (line endpoints, polygon side count, star geometry, pencil sample list). Consumer-defined tools may pass any { kind: string; ... } payload; the kit's factory falls back to AABB inscription for unknown kinds.

    bounds is still passed alongside as a useful AABB pose hint — factories may use it as the node's pose even when richer geometry is available.