@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Interface SignatureStrokeValue

    A stroke-based signature captured by the user drawing on the canvas. Stroke data is ordered and replayable.

    interface SignatureStrokeValue {
        bounds?: { height: number; width: number };
        kind: "strokes";
        strokes: StrokeGroup[];
    }
    Index

    Properties

    Properties

    bounds?: { height: number; width: number }

    The canvas dimensions at the time the signature was captured. Used to scale the strokes correctly when replaying on canvases of different sizes.

    kind: "strokes"

    Discriminator – always 'strokes'.

    strokes: StrokeGroup[]

    Ordered groups of stroke points, one per pen-down / pen-up pair.