Field Notes
    Preparing search index...

    Type Alias StrokePreview

    StrokePreview:
        | {
            blendMode?: "multiply";
            color: string;
            id: string;
            opacity?: number;
            points: readonly (readonly [number, number, number?])[];
            width: number;
        }
        | { cleared: true; id: string }

    A full-state preview of the stroke being drawn, keyed by the id its committed element will have, or cleared when the gesture was cancelled.

    Type Declaration

    • {
          blendMode?: "multiply";
          color: string;
          id: string;
          opacity?: number;
          points: readonly (readonly [number, number, number?])[];
          width: number;
      }
      • Optional ReadonlyblendMode?: "multiply"
      • Readonlycolor: string
      • Readonlyid: string
      • Optional Readonlyopacity?: number
      • Readonlypoints: readonly (readonly [number, number, number?])[]

        The newest points as [x, y, pressure], oldest first.

      • Readonlywidth: number
    • { cleared: true; id: string }