React Flow | Svelte Flow - Powerful open source libraries for building node-based UIs with React (https://reactflow.dev) or Svelte (https://svelteflow.dev). Ready out-of-the-box and infinitely customizable.
Please describe the feature that you want to propose
The deletable property exists on Nodes and Edges, but isn't exposed to NodeProps and EdgeProps. This means you can't use the deletable property for conditional rendering for Node and Edge types.
In my specific case, I want to hide the delete icon I normally show on Edges in my EdgeType if deletable is false. I tried to access deletable anyway, hoping it was just at the type level, but it's always undefined.
As a workaround, I'm adding my own deletable property in my Edge's data property.
Please describe the feature that you want to propose
The
deletable
property exists on Nodes and Edges, but isn't exposed to NodeProps and EdgeProps. This means you can't use thedeletable
property for conditional rendering for Node and Edge types.In my specific case, I want to hide the delete icon I normally show on Edges in my EdgeType if
deletable
is false. I tried to accessdeletable
anyway, hoping it was just at the type level, but it's always undefined.As a workaround, I'm adding my own
deletable
property in my Edge'sdata
property.