chore(examples): update imports
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ You can find more information in our [React Flow Pro FAQs](https://pro.reactflow
|
|||||||
The easiest way to get the latest version of React Flow is to install it via npm:
|
The easiest way to get the latest version of React Flow is to install it via npm:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install react-flow-renderer
|
npm install reactflow
|
||||||
```
|
```
|
||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
@@ -44,7 +44,7 @@ npm install react-flow-renderer
|
|||||||
This is only a very basic usage example of React Flow. To see everything that is possible with the library, please refer to the [website](https://reactflow.dev) for [guides](https://reactflow.dev/docs/guides/custom-nodes), [examples](https://reactflow.dev/docs/examples/overview) and [API reference](https://reactflow.dev/docs/api/react-flow-props).
|
This is only a very basic usage example of React Flow. To see everything that is possible with the library, please refer to the [website](https://reactflow.dev) for [guides](https://reactflow.dev/docs/guides/custom-nodes), [examples](https://reactflow.dev/docs/examples/overview) and [API reference](https://reactflow.dev/docs/api/react-flow-props).
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
import ReactFlow, { MiniMap, Controls } from 'react-flow-renderer';
|
import ReactFlow, { MiniMap, Controls } from 'reactflow';
|
||||||
|
|
||||||
function Flow({ nodes, edges, onNodesChange, onEdgesChange, onConnect }) {
|
function Flow({ nodes, edges, onNodesChange, onEdgesChange, onConnect }) {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import React, { FC } from 'react';
|
import React, { FC } from 'react';
|
||||||
|
|
||||||
import {
|
import ReactFlow, {
|
||||||
ReactFlow,
|
|
||||||
Node,
|
Node,
|
||||||
ReactFlowProvider,
|
ReactFlowProvider,
|
||||||
useNodesState,
|
useNodesState,
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import {
|
import ReactFlow, {
|
||||||
ReactFlow,
|
|
||||||
useReactFlow,
|
useReactFlow,
|
||||||
Node,
|
Node,
|
||||||
Edge,
|
Edge,
|
||||||
@@ -9,7 +8,7 @@ import {
|
|||||||
useEdgesState,
|
useEdgesState,
|
||||||
Background,
|
Background,
|
||||||
BackgroundVariant,
|
BackgroundVariant,
|
||||||
} from '@react-flow/bunde';
|
} from 'reactflow';
|
||||||
|
|
||||||
const defaultNodes: Node[] = [
|
const defaultNodes: Node[] = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import React, { useCallback } from 'react';
|
import React, { useCallback } from 'react';
|
||||||
import {
|
import ReactFlow, {
|
||||||
ReactFlow,
|
|
||||||
Node,
|
Node,
|
||||||
addEdge,
|
addEdge,
|
||||||
Connection,
|
Connection,
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import React, { useState, useEffect, MouseEvent, ChangeEvent, useCallback } from 'react';
|
import React, { useState, useEffect, MouseEvent, ChangeEvent, useCallback } from 'react';
|
||||||
import {
|
import ReactFlow, {
|
||||||
ReactFlow,
|
|
||||||
MiniMap,
|
MiniMap,
|
||||||
Controls,
|
Controls,
|
||||||
addEdge,
|
addEdge,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { ReactFlow, useReactFlow, Node, Edge, ReactFlowProvider, Background, BackgroundVariant } from 'reactflow';
|
import ReactFlow, { useReactFlow, Node, Edge, ReactFlowProvider, Background, BackgroundVariant } from 'reactflow';
|
||||||
|
|
||||||
const defaultNodes: Node[] = [
|
const defaultNodes: Node[] = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,11 +1,5 @@
|
|||||||
import React, { MouseEvent } from 'react';
|
import React, { MouseEvent } from 'react';
|
||||||
import {
|
import ReactFlow, { Node, Edge, useNodesState, useEdgesState } from 'reactflow';
|
||||||
ReactFlow,
|
|
||||||
Node,
|
|
||||||
Edge,
|
|
||||||
useNodesState,
|
|
||||||
useEdgesState,
|
|
||||||
} from '@react-flow/core';
|
|
||||||
|
|
||||||
import DragHandleNode from './DragHandleNode';
|
import DragHandleNode from './DragHandleNode';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import React, { useState, DragEvent } from 'react';
|
import React, { useState, DragEvent } from 'react';
|
||||||
import {
|
import ReactFlow, {
|
||||||
ReactFlow,
|
|
||||||
ReactFlowProvider,
|
ReactFlowProvider,
|
||||||
addEdge,
|
addEdge,
|
||||||
ReactFlowInstance,
|
ReactFlowInstance,
|
||||||
|
|||||||
@@ -3,8 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
import React, { useCallback } from 'react';
|
import React, { useCallback } from 'react';
|
||||||
|
|
||||||
import {
|
import ReactFlow, {
|
||||||
ReactFlow,
|
|
||||||
Background,
|
Background,
|
||||||
Controls,
|
Controls,
|
||||||
MiniMap,
|
MiniMap,
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import React, { MouseEvent, useCallback } from 'react';
|
import React, { MouseEvent, useCallback } from 'react';
|
||||||
import {
|
import ReactFlow, {
|
||||||
Controls,
|
Controls,
|
||||||
Background,
|
Background,
|
||||||
ReactFlow,
|
|
||||||
MiniMap,
|
MiniMap,
|
||||||
addEdge,
|
addEdge,
|
||||||
Connection,
|
Connection,
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import React, { MouseEvent, CSSProperties, useCallback } from 'react';
|
import React, { MouseEvent, CSSProperties, useCallback } from 'react';
|
||||||
|
|
||||||
import {
|
import ReactFlow, {
|
||||||
ReactFlow,
|
|
||||||
Background,
|
Background,
|
||||||
BackgroundVariant,
|
BackgroundVariant,
|
||||||
Controls,
|
Controls,
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import React, { useCallback } from 'react';
|
import React, { useCallback } from 'react';
|
||||||
|
|
||||||
import {
|
import ReactFlow, {
|
||||||
ReactFlow,
|
|
||||||
Background,
|
Background,
|
||||||
addEdge,
|
addEdge,
|
||||||
ReactFlowInstance,
|
ReactFlowInstance,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React, { useState, useEffect, useCallback } from 'react';
|
import React, { useState, useEffect, useCallback } from 'react';
|
||||||
|
|
||||||
import { ReactFlow, addEdge, Connection, Edge, Node, useNodesState, useEdgesState, MiniMap, Controls } from 'reactflow';
|
import ReactFlow, { addEdge, Connection, Edge, Node, useNodesState, useEdgesState, MiniMap, Controls } from 'reactflow';
|
||||||
|
|
||||||
const initialNodes: Node[] = [
|
const initialNodes: Node[] = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import React, { useState, MouseEvent as ReactMouseEvent, WheelEvent } from 'react';
|
import React, { useState, MouseEvent as ReactMouseEvent, WheelEvent } from 'react';
|
||||||
import {
|
import ReactFlow, {
|
||||||
ReactFlow,
|
|
||||||
addEdge,
|
addEdge,
|
||||||
Node,
|
Node,
|
||||||
Connection,
|
Connection,
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import React, { useCallback } from 'react';
|
import React, { useCallback } from 'react';
|
||||||
import {
|
import ReactFlow, {
|
||||||
Controls,
|
Controls,
|
||||||
ReactFlow,
|
|
||||||
ReactFlowProvider,
|
ReactFlowProvider,
|
||||||
addEdge,
|
addEdge,
|
||||||
Connection,
|
Connection,
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import React, { FC } from 'react';
|
import React, { FC } from 'react';
|
||||||
|
|
||||||
import {
|
import ReactFlow, {
|
||||||
ReactFlow,
|
|
||||||
Background,
|
Background,
|
||||||
addEdge,
|
addEdge,
|
||||||
Node,
|
Node,
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
import React, { useState, MouseEvent, useCallback } from 'react';
|
import React, { useState, MouseEvent, useCallback } from 'react';
|
||||||
import {
|
import ReactFlow, {
|
||||||
Controls,
|
Controls,
|
||||||
MiniMap,
|
MiniMap,
|
||||||
Background,
|
Background,
|
||||||
ReactFlow,
|
|
||||||
addEdge,
|
addEdge,
|
||||||
useNodesState,
|
useNodesState,
|
||||||
useEdgesState,
|
useEdgesState,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React, { CSSProperties, useCallback } from 'react';
|
import React, { CSSProperties, useCallback } from 'react';
|
||||||
|
|
||||||
import { ReactFlow, addEdge, Node, Position, Connection, Edge, useNodesState, useEdgesState } from 'reactflow';
|
import ReactFlow, { addEdge, Node, Position, Connection, Edge, useNodesState, useEdgesState } from 'reactflow';
|
||||||
|
|
||||||
const initialNodes: Node[] = [
|
const initialNodes: Node[] = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
import React, { useState, CSSProperties, FC, useCallback } from 'react';
|
import React, { useState, CSSProperties, FC, useCallback } from 'react';
|
||||||
|
import ReactFlow, {
|
||||||
import {
|
|
||||||
ReactFlow,
|
|
||||||
addEdge,
|
addEdge,
|
||||||
Node,
|
Node,
|
||||||
Position,
|
Position,
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
import React, { MouseEvent as ReactMouseEvent, CSSProperties, useCallback } from 'react';
|
import React, { MouseEvent as ReactMouseEvent, CSSProperties, useCallback } from 'react';
|
||||||
|
import ReactFlow, {
|
||||||
import {
|
|
||||||
ReactFlow,
|
|
||||||
addEdge,
|
addEdge,
|
||||||
Node,
|
Node,
|
||||||
Viewport,
|
Viewport,
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import React, { MouseEvent, useCallback } from 'react';
|
import React, { MouseEvent, useCallback } from 'react';
|
||||||
import {
|
import ReactFlow, {
|
||||||
ReactFlow,
|
|
||||||
Controls,
|
Controls,
|
||||||
ReactFlowProvider,
|
ReactFlowProvider,
|
||||||
addEdge,
|
addEdge,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React, { useCallback } from 'react';
|
import React, { useCallback } from 'react';
|
||||||
import { ReactFlow, ReactFlowProvider, Node, addEdge, Connection, Edge, useNodesState, useEdgesState } from 'reactflow';
|
import ReactFlow, { ReactFlowProvider, Node, addEdge, Connection, Edge, useNodesState, useEdgesState } from 'reactflow';
|
||||||
import Controls from './Controls';
|
import Controls from './Controls';
|
||||||
|
|
||||||
const initialNodes: Node[] = [
|
const initialNodes: Node[] = [
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import React, { useState, CSSProperties, useCallback } from 'react';
|
import React, { useState, CSSProperties, useCallback } from 'react';
|
||||||
import {
|
import ReactFlow, {
|
||||||
ReactFlow,
|
|
||||||
ReactFlowInstance,
|
ReactFlowInstance,
|
||||||
Edge,
|
Edge,
|
||||||
Node,
|
Node,
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import React, { useState, MouseEvent, useCallback } from 'react';
|
import React, { useState, MouseEvent, useCallback } from 'react';
|
||||||
import {
|
import ReactFlow, {
|
||||||
ReactFlow,
|
|
||||||
addEdge,
|
addEdge,
|
||||||
Node,
|
Node,
|
||||||
Edge,
|
Edge,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React, { MouseEvent, useCallback } from 'react';
|
import React, { MouseEvent, useCallback } from 'react';
|
||||||
import { ReactFlow, addEdge, Node, Connection, Edge, useNodesState, useEdgesState } from 'reactflow';
|
import ReactFlow, { addEdge, Node, Connection, Edge, useNodesState, useEdgesState } from 'reactflow';
|
||||||
|
|
||||||
const onNodeDragStop = (_: MouseEvent, node: Node) => console.log('drag stop', node);
|
const onNodeDragStop = (_: MouseEvent, node: Node) => console.log('drag stop', node);
|
||||||
const onNodeClick = (_: MouseEvent, node: Node) => console.log('click', node);
|
const onNodeClick = (_: MouseEvent, node: Node) => console.log('click', node);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React, { useCallback } from 'react';
|
import React, { useCallback } from 'react';
|
||||||
import { ReactFlow, Node, Edge, useNodesState, useEdgesState, Position, Connection, addEdge } from 'reactflow';
|
import ReactFlow, { Node, Edge, useNodesState, useEdgesState, Position, Connection, addEdge } from 'reactflow';
|
||||||
|
|
||||||
import styles from './touch-device.module.css';
|
import styles from './touch-device.module.css';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
import React, { MouseEvent, useCallback } from 'react';
|
import React, { MouseEvent, useCallback } from 'react';
|
||||||
|
import ReactFlow, {
|
||||||
import {
|
|
||||||
ReactFlow,
|
|
||||||
useReactFlow,
|
useReactFlow,
|
||||||
NodeTypes,
|
NodeTypes,
|
||||||
addEdge,
|
addEdge,
|
||||||
@@ -15,6 +13,7 @@ import {
|
|||||||
useNodesState,
|
useNodesState,
|
||||||
useEdgesState,
|
useEdgesState,
|
||||||
} from 'reactflow';
|
} from 'reactflow';
|
||||||
|
|
||||||
import CustomNode from './CustomNode';
|
import CustomNode from './CustomNode';
|
||||||
|
|
||||||
const initialNodes: Node[] = [
|
const initialNodes: Node[] = [
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import React, { useState, useCallback } from 'react';
|
import React, { useState, useCallback } from 'react';
|
||||||
import {
|
import ReactFlow, {
|
||||||
ReactFlow,
|
|
||||||
updateEdge,
|
updateEdge,
|
||||||
addEdge,
|
addEdge,
|
||||||
applyNodeChanges,
|
applyNodeChanges,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { ReactFlow, Node, Edge, useNodesState, useEdgesState } from 'reactflow';
|
import ReactFlow, { Node, Edge, useNodesState, useEdgesState } from 'reactflow';
|
||||||
|
|
||||||
import styles from './updatenode.module.css';
|
import styles from './updatenode.module.css';
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import React, { useCallback, MouseEvent, useEffect } from 'react';
|
import React, { useCallback, MouseEvent, useEffect } from 'react';
|
||||||
import {
|
import ReactFlow, {
|
||||||
Background,
|
Background,
|
||||||
MiniMap,
|
MiniMap,
|
||||||
ReactFlow,
|
|
||||||
Node,
|
Node,
|
||||||
addEdge,
|
addEdge,
|
||||||
useReactFlow,
|
useReactFlow,
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { useCallback, MouseEvent } from 'react';
|
import { useCallback, MouseEvent } from 'react';
|
||||||
import {
|
import ReactFlow, {
|
||||||
ReactFlow,
|
|
||||||
NodeTypes,
|
NodeTypes,
|
||||||
addEdge,
|
addEdge,
|
||||||
useReactFlow,
|
useReactFlow,
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import React, { FC, useCallback, useState } from 'react';
|
import React, { FC, useCallback, useState } from 'react';
|
||||||
import {
|
import ReactFlow, {
|
||||||
ReactFlow,
|
|
||||||
addEdge,
|
addEdge,
|
||||||
Handle,
|
Handle,
|
||||||
Connection,
|
Connection,
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
import React, { MouseEvent } from 'react';
|
import React, { MouseEvent } from 'react';
|
||||||
|
import ReactFlow, {
|
||||||
import {
|
|
||||||
MiniMap,
|
MiniMap,
|
||||||
ReactFlow,
|
|
||||||
Background,
|
Background,
|
||||||
BackgroundVariant,
|
BackgroundVariant,
|
||||||
Controls,
|
Controls,
|
||||||
|
|||||||
@@ -1,16 +1,104 @@
|
|||||||
# reactflow
|

|
||||||
|

|
||||||
|
|
||||||
Bundles:
|
<div align="center">
|
||||||
|
|
||||||
* @react-flow/core
|

|
||||||
* @react-flow/background
|

|
||||||
* @react-flow/controls
|

|
||||||
* @react-flow/minimap
|

|
||||||
|
|
||||||
|
A highly customizable React component for building interactive graphs and node-based editors.
|
||||||
|
|
||||||
|
[🚀 Getting Started](https://reactflow.dev/docs/getting-started/installation) | [📖 Documentation](https://reactflow.dev/docs/api/react-flow-props) | [📺 Examples](https://reactflow.dev/docs/examples/overview) | [☎️ Discord](https://discord.gg/RVmnytFmGW) | [💎 React Flow Pro](https://pro.reactflow.dev/pricing)
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Key Features
|
||||||
|
|
||||||
|
- **Easy to use:** Seamless zooming and panning, single- and multi selection of graph elements and keyboard shortcuts are supported out of the box
|
||||||
|
- **Customizable:** Different [node](https://reactflow.dev/docs/api/nodes/node-types) and [edge types](https://reactflow.dev/docs/api/edges/edge-types) and support for custom nodes with multiple handles and custom edges
|
||||||
|
- **Fast rendering:** Only nodes that have changed are re-rendered and only those in the viewport are displayed
|
||||||
|
- **Hooks and Utils:** [Hooks](https://reactflow.dev/docs/api/hooks/use-react-flow) for handling nodes, edges and the viewport and graph [helper functions](https://reactflow.dev/docs/api/graph-util-functions)
|
||||||
|
- **Plugin Components:** [Background](https://reactflow.dev/docs/api/plugin-components/background), [MiniMap](https://reactflow.dev/docs/api/plugin-components/minimap) and [Controls](https://reactflow.dev/docs/api/plugin-components/controls)
|
||||||
|
- **Reliable**: Written in [Typescript](https://www.typescriptlang.org/) and tested with [cypress](https://www.cypress.io/)
|
||||||
|
|
||||||
|
## Commercial Usage / Attribution
|
||||||
|
|
||||||
|
React Flow includes a small attribution that links to the React Flow website. **We expect companies who are using React Flow commercially to subscribe to [React Flow Pro](https://pro.reactflow.dev/pricing) if they want to remove the attribution.** By subscribing you get access to other exclusive services like advanced examples, individual support or prioritized bug reports. In non-commercial applications you may hide the attribution without subscribing but are welcome to [sponsor us on Github](https://github.com/sponsors/wbkd).
|
||||||
|
|
||||||
|
You can find more information in our [React Flow Pro FAQs](https://pro.reactflow.dev/faq).
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```sh
|
The easiest way to get the latest version of React Flow is to install it via npm:
|
||||||
|
|
||||||
|
```bash
|
||||||
npm install reactflow
|
npm install reactflow
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Quick Start
|
||||||
|
|
||||||
|
This is only a very basic usage example of React Flow. To see everything that is possible with the library, please refer to the [website](https://reactflow.dev) for [guides](https://reactflow.dev/docs/guides/custom-nodes), [examples](https://reactflow.dev/docs/examples/overview) and [API reference](https://reactflow.dev/docs/api/react-flow-props).
|
||||||
|
|
||||||
|
```jsx
|
||||||
|
import ReactFlow, { MiniMap, Controls } from 'reactflow';
|
||||||
|
|
||||||
|
function Flow({ nodes, edges, onNodesChange, onEdgesChange, onConnect }) {
|
||||||
|
return (
|
||||||
|
<ReactFlow
|
||||||
|
nodes={nodes}
|
||||||
|
edges={edges}
|
||||||
|
onNodesChange={onNodesChange}
|
||||||
|
onEdgesChange={onEdgesChange}
|
||||||
|
onConnect={onConnect}
|
||||||
|
>
|
||||||
|
<MiniMap />
|
||||||
|
<Controls />
|
||||||
|
</ReactFlow>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Development
|
||||||
|
|
||||||
|
Before you can start developing please make sure that you have yarn classic installed (`npm i -g yarn`). Then install the dependencies using yarn: `yarn`.
|
||||||
|
|
||||||
|
For local development, you can use `yarn dev`. This will run preconstruct and build all the packages.
|
||||||
|
|
||||||
|
## Testing
|
||||||
|
|
||||||
|
Testing is done with cypress. You can find the tests in the [`integration/flow`](/cypress/integration/flow) folder. In order to run the tests do:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm run test
|
||||||
|
```
|
||||||
|
|
||||||
|
## Maintainers
|
||||||
|
|
||||||
|
React Flow is developed and maintained by [webkid](https://webkid.io), a web development agency with focus on data driven applications from Berlin. If you need help or want to talk to us about a collaboration, feel free to contact us:
|
||||||
|
|
||||||
|
- Moritz Klack • [Twitter](https://twitter.com/moklick) • [Github](https://github.com/moklick)
|
||||||
|
- Christopher Möller • [Twitter](https://twitter.com/chrtze) • [Github](https://github.com/chrtze)
|
||||||
|
|
||||||
|
You can also use our [contact form](https://pro.reactflow.dev/contact) or join the [React Flow Discord Server](https://discord.gg/Bqt6xrs).
|
||||||
|
|
||||||
|
## Community Packages
|
||||||
|
|
||||||
|
- [useUndoable](https://github.com/Infinium8/useUndoable) - Hook for undo/redo functionality with an explicit React Flow example
|
||||||
|
- [react-flow-smart-edge](https://github.com/tisoap/react-flow-smart-edge) - Custom edge that doesn't intersect with nodes
|
||||||
|
- [Feliz.ReactFlow](https://github.com/tforkmann/Feliz.ReactFlow) - Feliz React Bindings for React Flow
|
||||||
|
|
||||||
|
## Credits
|
||||||
|
|
||||||
|
React Flow was initially developed for [datablocks](https://datablocks.pro), a graph-based editor for transforming, analyzing and visualizing data in your browser. Under the hood, React Flow depends on these great libraries:
|
||||||
|
|
||||||
|
- [d3-zoom](https://github.com/d3/d3-zoom) - used for zoom, pan and drag interactions with the graph canvas
|
||||||
|
- [d3-drag](https://github.com/d3/d3-drag) - used for making the nodes draggable
|
||||||
|
- [zustand](https://github.com/pmndrs/zustand) - internal state management
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
React Flow is [MIT licensed](https://github.com/wbkd/react-flow/blob/main/LICENSE).
|
||||||
|
|||||||
@@ -2,3 +2,7 @@ export * from '@react-flow/core';
|
|||||||
export * from '@react-flow/minimap';
|
export * from '@react-flow/minimap';
|
||||||
export * from '@react-flow/controls';
|
export * from '@react-flow/controls';
|
||||||
export * from '@react-flow/background';
|
export * from '@react-flow/background';
|
||||||
|
|
||||||
|
import { ReactFlow } from '@react-flow/core';
|
||||||
|
|
||||||
|
export default ReactFlow;
|
||||||
|
|||||||
Reference in New Issue
Block a user