Home > PCB_SelectControl > getCurrentMousePosition
PCB_SelectControl.getCurrentMousePosition() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
获取当前鼠标在画布上的位置
Signature
typescript
getCurrentMousePosition(): Promise<{
x: number;
y: number;
} | undefined>;
1
2
3
4
2
3
4
Returns
Promise<{ x: number; y: number; } | undefined>
鼠标在画布上的位置,undefined
代表当前鼠标不在画布上