chore(lib): rename

This commit is contained in:
moklick
2020-05-04 17:26:48 +02:00
parent a82a5f637f
commit 38b4ea2428
10 changed files with 10660 additions and 305 deletions

View File

@@ -30,7 +30,7 @@ This is a very basic example of how to use react-flow. There are more advanced e
```javascript
import React from 'react';
import Graph from 'react-flow';
import Graph from 'react-flow-renderer';
const elements = [
{ id: '1', data: { label: 'Node 1' }, position: { x: 250, y: 5 } },

10947
example/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -4,7 +4,7 @@
"private": true,
"dependencies": {
"react-dom": "^16.13.1",
"react-flow": "file:../",
"react-flow-renderer": "file:../",
"react-router-dom": "^5.1.2",
"react-scripts": "3.4.1"
},

View File

@@ -1,6 +1,6 @@
import React, { useState } from 'react';
import Graph, { removeElements, addEdge } from 'react-flow';
import Graph, { removeElements, addEdge } from 'react-flow-renderer';
const onNodeDragStop = node => console.log('drag stop', node);
const onLoad = graphInstance => console.log('graph loaded:', graphInstance);

View File

@@ -1,6 +1,6 @@
import React from 'react';
import { Handle } from 'react-flow';
import { Handle } from 'react-flow-renderer';
export default ({ data, styles }) => {
return (

View File

@@ -1,6 +1,6 @@
import React, { useState, useEffect } from 'react';
import Graph, { isEdge, removeElements, addEdge, MiniMap, Controls } from 'react-flow';
import Graph, { isEdge, removeElements, addEdge, MiniMap, Controls } from 'react-flow-renderer';
import ColorSelectorNode from './ColorSelectorNode';

View File

@@ -1,6 +1,6 @@
import React, { useState } from 'react';
import Graph, { removeElements, addEdge, MiniMap, Controls } from 'react-flow';
import Graph, { removeElements, addEdge, MiniMap, Controls } from 'react-flow-renderer';
const onNodeDragStop = node => console.log('drag stop', node);
const onLoad = graphInstance => console.log('graph loaded:', graphInstance);

View File

@@ -1,6 +1,6 @@
import React, { useState } from 'react';
import Graph, { MiniMap, Controls } from 'react-flow';
import Graph, { MiniMap, Controls } from 'react-flow-renderer';
const initialElements = [
{ id: '1', type: 'input', data: { label: 'Node 1' }, position: { x: 250, y: 5 } },

View File

@@ -1,6 +1,6 @@
import React, { useState } from 'react';
import Graph, { removeElements, addEdge, MiniMap, Controls } from 'react-flow';
import Graph, { removeElements, addEdge, MiniMap, Controls } from 'react-flow-renderer';
const onNodeDragStop = node => console.log('drag stop', node);
const onElementClick = element => console.log('click', element);

View File

@@ -1,6 +1,6 @@
import React, { useState } from 'react';
import Graph, { removeElements, addEdge, MiniMap } from 'react-flow';
import Graph, { removeElements, addEdge, MiniMap } from 'react-flow-renderer';
import { getElements } from './utils';
const onLoad = graph => {