Skip to content

@vue-flow/monorepo • Docs


Function: useGetPointerPosition() ​

useGetPointerPosition(): (event) => object

Internal

Composable that returns a function to get the pointer position

Returns ​

Function

Parameters ​

• event: UseDragEvent | MouseTouchEvent

Returns ​

object

x ​

x: number

xSnapped ​

xSnapped: number

y ​

y: number

ySnapped ​

ySnapped: number

Released under the MIT License.