gradum-kit - v0.1.0
    Preparing search index...

    Function getEventPosition

    • Function

      getEventPosition

      Parameters

      • e: Event

        The event to read.

      Returns Point

      The pointer position, or undefined for an event that carries none.

      Read the pointer position out of an event, whichever kind it is. A GradumEvent yields its scaled position, so the result already accounts for a panned or zoomed canvas; a native pointer event yields raw client coordinates.