reaviz / reagraph

🕸 WebGL Graph Visualizations for React. Maintained by @goodcodeus.

Home Page:https://reagraph.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lasso won't select nodes if custom nodes are used

royassis opened this issue · comments

commented

Describe the bug

Lasso won't select nodes if custom nodes are used:
https://reagraph.dev/?path=/docs/docs-advanced-custom-nodes--docs

Steps to Reproduce the Bug or Issue

See https://reagraph.dev/?path=/docs/docs-advanced-custom-nodes--docs and add lassoType={"node"}

Expected behavior

Lasso selected nodes

Screenshots or Videos

No response

Platform

  • Reagraph Version: 4.15.24
  • OS: Windows
  • Browser: Chrome
  • NodeJS version: v18.17.1

Your Example Website or App

No response

Additional context

No response

Ah - you have to set the userData - https://github.com/reaviz/reagraph/blob/master/src/symbols/Node.tsx#L383

Would you mind making a PR for docs for this?