122 questions
-2
votes
0
answers
37
views
React Flow + Dagre layout issue when node content size varies
import dagre from 'dagre';
import { Node, Edge, Position } from 'reactflow';
export default function layoutDAG(
nodes: Node[],
edges: Edge[],
dagType: 'T' | 'I' | 'D'
): { nodes: Node[]; edges: ...
0
votes
1
answer
97
views
How to create a react flow where you have 2 nodes with multiple edges?
I am trying to create a react flow where you have 2 nodes with multipule edges. I have the following set up but it renders only 1 edge. How do I render all 3 edges?
import ReactFlow from 'reactflow';
...
0
votes
0
answers
49
views
How to disable auto sorting elkjs ladder layout Ractjs Reactflow
I am building a ladder layout diagram application using ReactJS, React Flow, and ELK for layout. However, I’m encountering an issue with the layout generation. When I add a new node using ELK, the ...
0
votes
2
answers
268
views
React Flow edge not updating position after collapsing node section with nested handles
I'm using React Flow with a custom collapsible tree structure inside a node. Each leaf node has a <Handle />. The edge that was connected to that handle stays in its previous screen position, ...
0
votes
1
answer
194
views
Edges are not rendering in my ReactFlow component
So my edges are not rendering (nodes work just fine), here are the checks that I have made:
there is not any issue with id's, they are strings and they match the nodes ids
the custom nodes work fine
...
2
votes
1
answer
211
views
Creating the layout on reactflow canva as a grouped organization chart
I am trying to visualize the organization chart of our company, but there is a part that I have difficulty with and that is grouping. Since Reactflow sells this feature for a fee, I need to develop it ...
0
votes
0
answers
112
views
TypeError: Cannot read properties of null (reading 'useState')" on useState usage react
So, my react-flow code is throwing this error.
it's probably a dumb mistake on my part. But it could be happening due to a conflict between the react versions.
Although I tried using different react ...
0
votes
1
answer
324
views
React Flow Dagre how to disable overlapping
This is the example React Flow uses to showcase Dagre horizontal layout
node 2c is in front of node 3. I want node 2 and its children and node 3 on different rows. Like this:
...
1
vote
1
answer
287
views
React flow switching handle types not working
I am trying to make a button on a react flow node that switches the type of the handles (target or source) and it does not work. In the devtools i can see that the handles ares switching types, but ...
1
vote
0
answers
254
views
Zoom with Command Key and Scroll Wheel Not Working as Expected on Reactflow
The documentation states that 'zoomActivationKeyCode' defaults to Meta, which corresponds to the Command key on Mac. However, scrolling with the wheel to zoom doesn't work as expected; instead, it ...
0
votes
0
answers
186
views
Drag-drop custom nodes on react-flow
I am new to Reactflow and trying to make this basic drag-drop workflow builder to work but I m not able to drag-drop my nodes from left to right panel. page renders ok. I am able to drag the nodes but ...
0
votes
2
answers
1k
views
How to Align react-flow__renderer to Top-Left (0,0) with fitView in React Flow?
I'm using React Flow to build a node-based diagram interface. When I render the diagram and apply fitView, the react-flow__renderer does not start at the top-left corner (0,0). Instead, there's an ...
1
vote
0
answers
318
views
How do I wrap Reactflow in Scrollable container
Is it possible to wrap reactflow in a scrollable container:Row direction:
I have the following component that I created for my reactflow nodes,I am using custom Nodes to render the view for the ...
0
votes
1
answer
129
views
How to get dialogflow analytics data
So what I am trying is, I have a dialogflow cx phone-gateway setup and a react project and python backend. What I'm trying is when I load the frontend page, it calls the backend which gets the ...
0
votes
1
answer
444
views
How to export Diagram (reactFlow nodes & edges) into VSDX (Visio 2013) file format
I am trying to export my diagram like flowchart to VSDX file but, I have not found a single lead on How can I do that. also there is no such thing like structure of VSDX file or anything available.
I ...
-1
votes
1
answer
220
views
React Flow: UseStore call inside EdgeLabelRenderer causes hook error
Description
I'm developing a front-end for an epidemic modeling framework I've created in Python, and I'm currently struggling with adding customized labels to my edges.
The error message:
Error: ...
1
vote
2
answers
2k
views
Why edges doesn't render in react flow?
I am new at react flow. My goal is connect to nodes with same type. I want to have one template for node and use it everywhere.
Below simple example, but edges doesn't appear.
If i remove type in ...
2
votes
0
answers
514
views
issue with the edge creation while creating a react-flow structure
Using react-flow to develop a flow I am able to get the nodes but I am facing issue with the edges while rendering. It is giving the error react-flow:800 as
"typeof.js:9 [React Flow]: Couldn't ...
1
vote
0
answers
595
views
Reactflow, drag and drop to a parent node
I can't drop a node as a child of another node when drop from a external sidebar.
I try two attempts. I was inspired in doc. In onDrop function I put this code trying that one of them works
Collision ...
0
votes
1
answer
1k
views
Dragging a Node with Its Children in React Flow
I am working with React Flow and I am trying to achieve a behavior where dragging a node also moves all the nodes connected to it as children. Does anyone know of a solution that would allow for this?
...
0
votes
1
answer
229
views
how to make SVG LinearGradient invariant
I am complete beginer in SVG and React, I am working on a reactflow app to design a low-code tool to produce DAGs.
I have nodes with different colors for source and target handles and I used this ...
9
votes
5
answers
5k
views
Is it possible to shape reactflow edges by dragging them?
When we draw a line on draw.io it provides a feature to shape the line by providing a handle in the middle that can be dragged to adjust the shape of the line.
When that handle is dragged two straight ...
0
votes
1
answer
2k
views
How to get node data when connecting two nodes in reactflow?
I want to retrieve the data from two nodes when I connect them in reactflow App. I want to do this in the on connect function.
I currently have this function.
function Flow() {
const [elements, ...
0
votes
2
answers
3k
views
React is working fine but when I call the react flow getting Error: (0 , react__WEBPACK_IMPORTED_MODULE_0__.createContext) is not a function
I created a react (version 18) application with next.js with typescript it was working fine when running the application npm run dev working fine, but after installing the react flow npm install ...
3
votes
1
answer
7k
views
React Flow Lock the Interactivity
Is it possible to lock the interactivity in react flow charts programmatically, I want to make the chart non movable, and any component inside the chart no to do any interactivity, just a state of ...