iink-ts - v3.2.1
    Preparing search index...

    Class RecognizerHTTPV1

    Use RecognizerHTTPV2 instead.

    Index

    Accessors

    • get url(): string

      Returns string

    Constructors

    • Parameters

      • config: {
            recognition?: {
                convert?: { force?: { "on-stylesheet-change"?: boolean } };
                diagram?: {
                    convert?: {
                        "match-text-size"?: boolean;
                        types?: ("shape" | "text" | undefined)[];
                    };
                    "enable-sub-blocks"?: boolean;
                    eraser?: { "erase-precisely"?: boolean };
                    mimeTypes?: (
                        | "application/vnd.myscript.jiix"
                        | "application/vnd.openxmlformats-officedocument.presentationml.presentation"
                        | "image/svg+xml"
                        | undefined
                    )[];
                    "session-time"?: number;
                    text?: {
                        addLKText?: boolean;
                        customLexicon?: (string | undefined)[];
                        customResources?: (string | undefined)[];
                    };
                };
                export?: {
                    image?: {
                        guides?: boolean;
                        viewport?: { height?: number; width?: number; x?: number; y?: number };
                    };
                    "image-resolution"?: number;
                    jiix?: {
                        "bounding-box"?: boolean;
                        "full-stroke-ids"?: boolean;
                        ids?: boolean;
                        strokes?: boolean;
                        style?: boolean;
                        text?: { chars?: boolean; lines?: boolean; words?: boolean };
                    };
                    mathml?: { flavor?: { name?: string } };
                };
                lang?: string;
                math?: {
                    customGrammar?: string;
                    customGrammarContent?: string;
                    customGrammarId?: string;
                    eraser?: { "erase-precisely"?: boolean };
                    margin?: { bottom?: number; left?: number; right?: number; top?: number };
                    mimeTypes?: (
                        | "application/vnd.myscript.jiix"
                        | "application/x-latex"
                        | "application/mathml+xml"
                        | undefined
                    )[];
                    "recognition-timeout"?: number;
                    "session-time"?: number;
                    solver?: {
                        "angle-unit"?: TAngleUnit;
                        "decimal-separator"?: string;
                        enable?: boolean;
                        "fractional-part-digits"?: number;
                        options?: TSolverOptions;
                        "rounding-mode"?: TRoundingMode;
                    };
                    "undo-redo"?: { mode?: TUndoRedoMode };
                };
                "raw-content"?: {
                    classification?: {
                        types?: (
                            "shape"
                            | "text"
                            | "math"
                            | "decoration"
                            | "drawing"
                            | undefined
                        )[];
                    };
                    eraser?: { "erase-precisely"?: boolean };
                    recognition?: {
                        types?: ("shape" | "text" | "math" | "decoration" | undefined)[];
                    };
                    "session-time"?: number;
                    text?: {
                        addLKText?: boolean;
                        customLexicon?: (string | undefined)[];
                        customResources?: (string | undefined)[];
                    };
                };
                renderer?: {
                    debug?: { "draw-image-boxes"?: boolean; "draw-text-boxes"?: boolean };
                };
                text?: {
                    configuration?: {
                        addLKText?: boolean;
                        customLexicon?: (string | undefined)[];
                        customResources?: (string | undefined)[];
                    };
                    eraser?: { "erase-precisely"?: boolean };
                    guides?: { enable?: boolean };
                    margin?: { bottom?: number; left?: number; right?: number; top?: number };
                    mimeTypes?: ("text/plain" | "application/vnd.myscript.jiix" | undefined)[];
                    text?: boolean;
                };
                type?: TRecognitionType;
            };
            server?: {
                applicationKey?: string;
                hmacKey?: string
                | {};
                host?: string;
                scheme?: TScheme;
                version?: string;
            };
        }

      Returns RecognizerHTTPV1

    Methods

    • Parameters

      Returns Promise<Model>

    • Parameters

      • model: Model
      • OptionalrequestedMimeTypes: string[]

      Returns Promise<Model>

    • Parameters

      • OptionalrequestedMimeTypes: string[]

      Returns string[]

    Protectedpost

    • post(data: unknown, mimeType: string): Promise<unknown>

      Parameters

      • data: unknown
      • mimeType: string

      Returns Promise<unknown>

    • Parameters

      Returns Promise<Model>

    Properties