xyflow / react-flow-docs Goto Github PK
View Code? Open in Web Editor NEW⚠️ This repo contains old versions of the React Flow website. The new repo is located at:
Home Page: https://github.com/xyflow/web
License: MIT License
⚠️ This repo contains old versions of the React Flow website. The new repo is located at:
Home Page: https://github.com/xyflow/web
License: MIT License
The code example for useReactFlow hook does not in fact use a hook called useReactFlow. Is the doc up to date?
add docs for custom mini map node component
Because Moritz is sitting next to me and told me this would be a good idea, unfortunately I don't know the difference between the two.
Create a new edge when a node between two nodes gets deleted.
https://github.com/wbkd/react-flow-docs/blob/main/docs/examples/stress.mdx
The description is mistakenly from the "Save and Restore" example.
PS: Same issue in "Smooth Transition".
Hi, Duplicated autoPanOnConnect
and autoPanOnNodeDrag
are in the doc (https://reactflow.dev/docs/api/react-flow-props/#panondrag).
https://reactflow.dev/docs/quickstart/#some-extra-goodies directs the learner to use a Minimap
component, but the component is named MiniMap
(see https://reactflow.dev/docs/api/plugin-components/minimap/). The page fails to render due to this error and the browser console identifies Minimap
as unknown.
Changing the import and the component to MiniMap solves the problem.
https://reactflow.dev/docs/guides/custom-nodes/
The last example shown in the documentation uses the same key (edge-1) for both edges hence throwing some warnings
In "Graph Utils Functions" -> getConnectedEdges()
, the "this example" link points to this dead link: https://github.com/wbkd/react-flow/blob/main/example/src/Overview/index.tsx#L100.
Is it possible to update the example link, if the example still exists? Thank you very much!
Url: https://reactflow.dev/docs/examples/interaction/drag-and-drop/
If you remove the initial node in the example - that is, start without initial nodes deployed -, when you drag and drop the first node it will be dropped in the centered position instead of the position the user dropped it (it will be positioned as if it were the initial node of the example).
For this you only need to change useNodesState(initialNodes)
to useNodesState([])
. Looks like some initialization issue, any help is greatly appreciated.
Nuno
The example code seems to behave incorrectly when there is difference in nodes size. Here's the link for example code:
It should be like:
return { ...node, position: { x: x - node.width / 2, y: y - node.height / 2 } };
The File is not found linked to the store
in the Internal actions in https://reactflow.dev/docs/api/hooks/use-store/
Tried running project locally and on incognito, works fine, but crashes on https://reactflow.dev/ , i think the issue is related webgl not being loaded for the hero banner section animation
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.