konfeti - v0.6.0
    Preparing search index...

    Type Alias PaperGeometry

    Paper-Only Geometry.

    type PaperGeometry = {
        aspectRatio?: Range<Multiplier>;
        cornerRadius?: CornerRadius;
        form?: OneOrMany<PaperForm>;
        height?: Range<Pixels>;
        skew?: Range<Degrees>;
        width?: Range<Pixels>;
    }
    Index
    aspectRatio?: Range<Multiplier>

    Height-to-Width Ratio. When set, height is width × aspectRatio instead of height. Values ≤ 0 are rejected.

    undefined (use height)

    paper: { width: [6, 12], aspectRatio: 1.6 }
    
    cornerRadius?: CornerRadius

    Corner Radius. Rounds "rect" and "square" corners. A number rounds all corners; an object sets each corner. Clamped to half of the shorter side.

    0

    paper: { cornerRadius: 3 }
    paper: { cornerRadius: { tl: 6, br: 6 } }

    Paper Silhouette(s). A single form, or a list — each particle picks one (weights supported).

    "rect"

    paper: { form: ["rect", "circle", { value: "strip", weight: 2 }] }
    
    height?: Range<Pixels>

    Paper Height. Ignored when aspectRatio is set or the picked form is "square".

    [10, 16]

    skew?: Range<Degrees>

    Horizontal Skew. Slants the piece into a parallelogram for a hand-cut look. Clamped to -60…60.

    0

    width?: Range<Pixels>

    Paper Width.

    [6, 10]