Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "src/module/dom/getMousePos"

Index

Functions

Functions

getMousePos

  • getMousePos(e: MouseEvent): { x: number; y: number }
  • 获取鼠标的位置

    Parameters

    • e: MouseEvent

      触发的鼠标事件对象

    Returns { x: number; y: number }

    鼠标的坐标

    • x: number
    • y: number

Generated using TypeDoc