Eliav2 / react-xarrows

Draw arrows (or lines) between components in React!
https://codesandbox.io/embed/github/Eliav2/react-xarrows/tree/master/examples?fontsize=14&hidenavigation=1&theme=dark
MIT License
584 stars 75 forks source link

TypeError: lineRef.current.getTotalLength is not a function #72

Closed RomanPanaget closed 3 years ago

RomanPanaget commented 3 years ago

Describe the bug & Expected behavior TypeError: lineRef.current.getTotalLength is not a function --> getTotalLength is no longer supported

To Reproduce Launch create-react-app, install react-xarrows and use it somewhere. Run yarn upgrade if the error doesn't show up.

Eliav2 commented 3 years ago

Well I need to add as any at the end of this line https://github.com/Eliav2/react-xarrows/blob/2dd35ac1439d210ca741b3c66bd0437c490e2436/src/index.tsx#L755 I will do so

Eliav2 commented 3 years ago

fixed with v1.7.1