Perseus
    Preparing search index...

    This is the v2 equivalent of v1's ProvidedKeypad. It follows the same external API so that it can be hot-swapped with the v1 keypad and is responsible for connecting the keypad with MathInput and the Renderer.

    Ideally this strategy of attaching methods on the class component for other components to call will be replaced props/callbacks since React doesn't support this type of code anymore (functional components can't have methods attached to them).

    Hierarchy

    Implements

    Index

    Constructors

    • Parameters

      Returns MobileKeypadInternals

    • Parameters

      Returns MobileKeypadInternals

    Properties

    _containerRef: RefObject<HTMLDivElement> = ...
    _containerResizeObserver: ResizeObserver | null = null
    _throttleResize: boolean = false
    activate: () => void = ...
    configure: (configuration: KeypadConfiguration, cb: () => void) => void = ...
    dismiss: () => void = ...
    getDOMNode: () => Element | Text | null = ...
    setCursor: (cursor: Cursor) => void = ...
    setKeyHandler: (keyHandler: KeyHandler) => void = ...
    state: State = ...

    Methods

    • Parameters

      • 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"

      Returns void

    • Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as cancelled network requests, or cleaning up any DOM elements created in componentDidMount.

      Returns void