bcakmakoglu / vue-flow

A highly customizable Flowchart component for Vue 3. Features seamless zoom & pan 🔎, additional components like a Minimap 🗺 and utilities to interact with state and graph.
https://vueflow.dev/
MIT License
3.74k stars 242 forks source link

🐛 [BUG]: useHandle have different type description from official document #1601

Closed Fnxxxxo closed 2 weeks ago

Fnxxxxo commented 2 weeks ago

Is there an existing issue for this?

Current Behavior

Actually, it returns handlePointerDown and handleClick. It also requires different argments.

Expected Behavior

As document says, useHandle should return onMouseDown and onClick.

Steps To Reproduce

  1. use @vue-flow/core#^1.30.0 or @vue-flow/core#^1.40.0
  2. import useHandle and invoke it
  3. check returns

Relevant log output

public export function useHandle(     {handleId, nodeId, type, isValidConnection, edgeUpdaterType, onEdgeUpdate, onEdgeUpdateEnd}: UseHandleProps):    {handlePointerDown: (event: MouseTouchEvent) => void, handleClick: (event: MouseEvent) => void}

Anything else?

No response

bcakmakoglu commented 2 weeks ago

Thanks for the report, docs are updated now to reflect the implementation correctly.