@mathjax/src
    Preparing search index...

    Class AbstractExplorer<T>

    Abstract class implementing the very basic explorer functionality.

    Explorers use creator pattern to ensure they automatically attach themselves to their node. This class provides the create method and is consequently not declared abstract.

    Type Parameters

    • T

      The type that is consumed by the Region of this explorer.

    Hierarchy (View Summary)

    Implements

    Index

    The current document.

    events: [string, (x: Event) => void][] = []

    Named events and their functions.

    node: HTMLElement

    The node on which the explorer works.

    The explorer pool.

    region: Region<T>

    A region to display results.

    stoppable: boolean = true
    • Returns [string, (x: Event) => void][]

      The events associated with this explorer.

    • Parameters

      • x: number

        The x-coordinate of the point to test

      • y: number

        The y-coordinate of the point to test

      • bbox: DOMRect

        The bounding box to test

      Returns boolean

      True if (x,y) is inside the bounding box

    • Find the smallest item in the expression's DOM tree that contains am event's point.

      Parameters

      • event: MouseEvent

        The event whose (x,y) is to be used

      • query: (node: HTMLElement) => boolean

        A test for which nodes to accept

      • skip: HTMLElement[] = []

        Optional list of nodes to ignore

      • icon: HTMLElement = null

        The info icon, if there is one

      Returns HTMLElement

      The smallest matching element containing the event's point

    • Stops the events of this explorer from bubbling.

      Parameters

      • event: Event

        The event to stop.

      Returns void

    • Stops event bubbling.

      Parameters

      • event: Event

        The event that is stopped.

      Returns void