Nutrient Web SDK
    Preparing search index...

    Type Alias InkDrawingState

    Represents the current state of an ink drawing operation. Tracks whether the user is actively drawing, which annotation is being drawn, and timing information for the most recent stroke.

    type InkDrawingState = {
        activeAnnotationId: ID | null;
        isDrawing: boolean;
        lastDrawDurationMs: number | null;
        lastDrawEndAt: number | null;
        lastDrawStartAt: number | null;
    }
    Index

    Properties

    activeAnnotationId: ID | null

    The ID of the ink annotation currently being drawn, or null if idle.

    isDrawing: boolean

    Whether the user is currently in the middle of a drawing stroke.

    lastDrawDurationMs: number | null

    Duration of the most recent stroke in milliseconds, or null if unavailable.

    lastDrawEndAt: number | null

    Timestamp (ms since epoch) when the most recent stroke ended, or null if no stroke has completed.

    lastDrawStartAt: number | null

    Timestamp (ms since epoch) when the most recent stroke started, or null if no stroke has occurred.