konfeti - v0.6.0
    Preparing search index...

    Type Alias TextShapeOptions

    TextShapeOptions: ShapeEntryBase & {
        fontFamily?: string;
        fontWeight?: number | "normal" | "bold";
        size?: Range<Pixels>;
        text: OneOrMany<string>;
        type: "text";
    }

    Text Shape Entry. Words or letters filled with the particle colors (one cached bitmap per text × color).

    Type Declaration

    • Optional ReadonlyfontFamily?: string

      Font Family. Make sure web fonts are loaded before firing (document.fonts.ready).

      "system-ui, sans-serif"

    • Optional ReadonlyfontWeight?: number | "normal" | "bold"

      Font Weight.

      700

    • Optional Readonlysize?: Range<Pixels>

      Font Size.

      [14, 22]

    • Readonlytext: OneOrMany<string>

      Text Content(s).

    • Readonlytype: "text"

      Shape Type.

    shapes: [{ type: "text", text: ["YAY", "WOW"], fontWeight: 900, colors: ["#ff0a54", "#00c2ff"] }]