Skip to main content

KMouseEvent

kds-plugin-document / Exports / KMouseEvent

Interface: KMouseEvent

酷大师鼠标事件

The KMouseEvent class describes a user interaction with the mouse. It is similar to the MouseEvent class in Web APIs.

Table of contents

Methods

Methods

clientX

clientX(): number

获取 client 窗口中的 X 坐标

Get the horizontal position of the mouse event on the client window of user's screen.

Returns

number

Defined in

api.d.ts:3442


clientY

clientY(): number

获取 client 窗口中的 Y 坐标

Get the vertical position of the mouse event on the client window of the user's screen.

Returns

number

Defined in

api.d.ts:3451