Atrium — shared contracts and the typesetting engine
    Preparing search index...

    Function strokeNibPasses

    • The passes for a whole stored stroke — the entry point both renderers use.

      Parameters

      • stroke: {
            color: string;
            points: [number, number, number][];
            size: number;
            tool: "pen" | "fountain-pen" | "pencil" | "highlighter";
        }
        • color: string

          CSS color string (a token-derived hex from the editor palette).

        • points: [number, number, number][]
        • size: number

          Nib width as a fraction of page width.

        • tool: "pen" | "fountain-pen" | "pencil" | "highlighter"

      Returns NibPass[]