Perseus
    Preparing search index...

    Hierarchy

    Index

    Constructors

    • Parameters

      Returns InnerMathInput

    • Parameters

      Returns InnerMathInput

    Properties

    __mathField: MathFieldInterface | null = null
    __mathFieldWrapperRef: HTMLSpanElement | null = null
    blur: () => void = ...

    If using the new style context, re-declare this in your class to be the React.ContextType of your static contextType. Should be used with type annotation or static contextType.

    static contextType = MyContext
    // For TS pre-3.7:
    context!: React.ContextType<typeof MyContext>
    // For TS 3.7 and above:
    declare context: React.ContextType<typeof MyContext>
    focus: () => void = ...
    handleKeypadPress: (
        key:
            | "PLUS"
            | "MINUS"
            | "NEGATIVE"
            | "TIMES"
            | "DIVIDE"
            | "DECIMAL"
            | "PERIOD"
            | "PERCENT"
            | "CDOT"
            | "EQUAL"
            | "NEQ"
            | "GT"
            | "LT"
            | "GEQ"
            | "LEQ"
            | "FRAC_INCLUSIVE"
            | "FRAC_EXCLUSIVE"
            | "FRAC"
            | "EXP"
            | "EXP_2"
            | "EXP_3"
            | "SQRT"
            | "CUBE_ROOT"
            | "RADICAL"
            | "LEFT_PAREN"
            | "RIGHT_PAREN"
            | "LN"
            | "LOG"
            | "LOG_N"
            | "SIN"
            | "COS"
            | "TAN"
            | "PI"
            | "THETA"
            | "UP"
            | "RIGHT"
            | "DOWN"
            | "LEFT"
            | "BACKSPACE"
            | "DISMISS"
            | "JUMP_OUT_PARENTHESES"
            | "JUMP_OUT_EXPONENT"
            | "JUMP_OUT_BASE"
            | "JUMP_INTO_NUMERATOR"
            | "JUMP_OUT_NUMERATOR"
            | "JUMP_OUT_DENOMINATOR"
            | "NUM_0"
            | "NUM_1"
            | "NUM_2"
            | "NUM_3"
            | "NUM_4"
            | "NUM_5"
            | "NUM_6"
            | "NUM_7"
            | "NUM_8"
            | "NUM_9"
            | "a"
            | "b"
            | "c"
            | "d"
            | "e"
            | "f"
            | "g"
            | "h"
            | "i"
            | "j"
            | "k"
            | "l"
            | "m"
            | "n"
            | "o"
            | "p"
            | "q"
            | "r"
            | "s"
            | "t"
            | "u"
            | "v"
            | "w"
            | "x"
            | "y"
            | "z"
            | "A"
            | "B"
            | "C"
            | "D"
            | "E"
            | "F"
            | "G"
            | "H"
            | "I"
            | "J"
            | "K"
            | "L"
            | "M"
            | "N"
            | "O"
            | "P"
            | "Q"
            | "R"
            | "S"
            | "T"
            | "U"
            | "V"
            | "W"
            | "X"
            | "Y"
            | "Z",
        e: any,
    ) => void = ...
    insert: (value: any) => void = ...
    mathField: () => MathFieldInterface | null = ...
    mouseDown: boolean
    state: State = ...
    contextType: Context<I18nContextType> = PerseusI18nContext

    If set, this.context will be set at runtime to the current value of the given Context.

    type MyContext = number
    const Ctx = React.createContext<MyContext>(0)

    class Foo extends React.Component {
    static contextType = Ctx
    context!: React.ContextType<typeof Ctx>
    render () {
    return <>My context's value: {this.context}</>;
    }
    }
    defaultProps: DefaultProps = ...

    Methods

    • Called immediately after updating occurs. Not called for the initial render.

      The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

      Parameters

      Returns void