@mathjax/src
    Preparing search index...

    The CopyDialog subclass of InfoDialog

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    action: string

    The drag acction being taken (move, left, right, top, bottom, etc.)

    actions: ActionMap = ...

    Functions to handle the various mouse events, returning an array [dx, dy, dw, dh] of changes to the position and size od the dialog.

    background: HTMLElement

    The background element when

    is not available

    content: HTMLElement

    The content div element

    dialog: HTMLDialogElement

    The dialog element node

    dragging: boolean = false

    True when the dialog is being dragged or sized

    events: any[][] = ...

    Events to add when dragging and remove when drag completes

    h: number

    The current dialog height

    minH: number = 80

    The maximum width of the dialog

    minW: number = 200

    The minimum width of the dialog

    mode: string = ''

    When moving/sizing by keyboard, this gives which is being adjusted.

    node: HTMLElement

    The node to focus when dialog closes

    noDrag: HTMLElement[]

    Elements where clicking doesn't cause dragging

    title: HTMLElement

    The title element

    tx: number = 0

    The current x translation of the dialog

    ty: number = 0

    The current y translation of the dialog

    w: number

    The current dialog width

    x: number

    The current mouse x position

    y: number

    The current mouse y position

    className: string = ''

    The class name to use for the dialog, if any

    id: number = 0

    An id incremented for each instance of a dialog

    styleId: string = 'MJX-DIALOG-styles'

    The style element ID for dialog styles

    styles: StyleJson = ...

    The default styles for all dialogs

    Methods

    • Handle the enter or space key on a button icon

      Parameters

      • action: (event: KeyboardEvent) => void

        The action to take on enter or space

      • event: KeyboardEvent

        The event to check

      Returns void

    • Handle the arrow keys

      Parameters

      • event: KeyboardEvent

        The key event to handle

      • direction: string

        The direction of the arrow

      Returns void

    • Perform a drag action (resize or move)

      Parameters

      • type: string

        The action type to perform

      • event: MouseEvent = null

        The event causing the action

      Returns void

    • Parameters

      • text: string

        The text to be displayed in the Info box

      Returns string

      The text with HTML specials being escaped

    • Check if an event is inside the dialog.

      Parameters

      • event: MouseEvent

        The event to check

      Returns boolean

      True if the event is in the dialog, false if in the background

    Staticpost