@types/edtr-io__mathquill
TypeScript icon, indicating that this package has built-in type declarations

0.11.4 • Public • Published

Installation

npm install --save @types/edtr-io__mathquill

Summary

This package contains type definitions for @edtr-io/mathquill (https://github.com/edtr-io/mathquill#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/edtr-io__mathquill.

index.d.ts

export interface MathField {
    focus(): MQ;
    blur(): MQ;
    write(latex: string): MQ;
    cmd(latex: string): MQ;
    select(): MQ;
    clearSelection(): MQ;
    moveToLeftEnd(): MQ;
    moveToRightEnd(): MQ;
    moveToDirEnd(direction: number): MQ;
    keystroke(keys: string): MQ;
    typedText(text: string): MQ;
    config(config: Config): MQ;
}

export interface MQ extends MathField {
    L: number;
    R: number;
    revert(): MQ;
    reflow(): MQ;
    el(): HTMLElement;
    latex(): string;
    latex(latex: string): MQ;
}

export interface Config {
    spaceBehavesLikeTab?: boolean | undefined;
    leftRightIntoCmdGoes?: string | undefined;
    restrictMismatchedBrackets?: boolean | undefined;
    sumStartsWithNEquals?: boolean | undefined;
    supSubsRequireOperand?: boolean | undefined;
    charsThatBreakOutOfSupSub?: string | undefined;
    autoSubscriptNumerals?: boolean | undefined;
    autoCommands?: string | undefined;
    autoOperatorNames?: string | undefined;
    maxDepth?: number | undefined;
    substituteTextarea?(): HTMLTextAreaElement;
    handlers?: {
        enter?(mathField: MQ): any;
        edit?(mathField: MQ): any;
        upOutOf?(mathField: MQ): any;
        moveOutOf?(direction: number, mathField: MQ): any;
    } | undefined;
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by Marco Gonzalez.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/edtr-io__mathquill

Weekly Downloads

18

Version

0.11.4

License

MIT

Unpacked Size

5.19 kB

Total Files

5

Last publish

Collaborators

  • types