iink-ts - v4.0.0
    Preparing search index...

    Type Alias TStrokeQueryResult

    Result type for stroke queries

    type TStrokeQueryResult = {
        context?: {
            char?: { index: number; label: string; wordIndex: number };
            expression?: { expressionPath: string; label?: string; type: string };
            word?: { index: number; label: string };
        };
        element: TJIIXElement;
        label?: string;
        strokeId: string;
    }
    Index
    context?: {
        char?: { index: number; label: string; wordIndex: number };
        expression?: { expressionPath: string; label?: string; type: string };
        word?: { index: number; label: string };
    }

    Additional context (word, char, expression, etc.)

    Type Declaration

    • Optionalchar?: { index: number; label: string; wordIndex: number }

      For text strokes: char info

    • Optionalexpression?: { expressionPath: string; label?: string; type: string }

      For math strokes: expression info

    • Optionalword?: { index: number; label: string }

      For text strokes: word info

    element: TJIIXElement

    The JIIX element containing this stroke

    label?: string

    The precise label for this stroke

    strokeId: string

    The stroke ID