Commit Graph
33 Commits
Author SHA1 Message Date
moklick 714cecaba9 refactor(easy-peasy): return single values from useStoreActions 2020-05-25 17:14:09 +02:00
moklick 56cfc8d731 refactor(easy-peasy): return single values from useStoreState 2020-05-25 17:12:11 +02:00
moklick 17614bda6b refactor(callbacks): dont provide noops as defaults, but make cbs optional 2020-05-25 16:24:50 +02:00
moklick 7324c79fd0 refactor(background): export background as component closes #235 2020-05-25 15:53:56 +02:00
MoritzandGitHub 63b83b2d63 chore(selectionlistener): comment typo 2020-05-25 14:00:56 +02:00
moklick f154f59e74 feat(wrapper): add onSelectionChange handler 2020-05-25 14:00:46 +02:00
moklick 5049379e3b feat(nodes): add onDragStart handler #241 2020-05-25 12:14:47 +02:00
moklick 1e447a204c refactor(types): use types for prop type functions 2020-05-15 21:53:13 +02:00
AndyandGitHub 8b2640bd42 Handle Properties
* id is used in an example
* isValidConnection has to take the connection argument to validate
2020-05-14 19:26:24 +02:00
moklick 1cc4e2676d refactor(inactivemode): no pointer events for nodes and edges closes #218 2020-05-13 11:09:22 +02:00
moklick 7a2bff2502 fix(connectionline): set stroke color 2020-05-11 17:49:07 +02:00
moklick 9e534f83ff fix(connection): no fill fixes #210 2020-05-11 17:07:04 +02:00
moklick 0c30eebb94 feat(edges): add label props 2020-05-11 12:18:36 +02:00
moklick 51cbb44492 fix(nodes): connection from output node 2020-05-06 09:38:38 +02:00
moklick 98978df6a1 fix(nodes): cehck if touchevent exists fixes #188 2020-05-05 21:16:03 +02:00
moklick 6c641a15ee fix(nodes): drag nodes on touch screens 2020-05-05 16:03:28 +02:00
moklick 6354aa4330 refactor(userselection): use store for handling updates 2020-04-20 13:20:51 +02:00
moklick 544e666478 fix(drag): use correct coordinates closes #72 2019-10-28 22:31:26 +01:00
moklick caebec6f6a refactor(wrapnode): put update node logic in action 2019-10-25 15:01:40 +02:00
moklick 4986ba7fa1 refactor(wrapnode): only add resize oberver once 2019-10-25 14:25:09 +02:00
moklick 5030f7dc1b feat(node): handle nodrag class 2019-10-24 14:48:35 +02:00
moklick 6a4c43df4b refactor(examples): update custom node example, create rich example 2019-10-23 20:38:36 +02:00
MoritzandGitHub 873fb50b19 Graph Prop: isInteractive (#56)
* feat(props): add isInteractive

* refactor(selection): dont allow if not interactive

* feat(renderer): add class if is interactive

* chore(inactive): add tests

* refactor(inactive): no connection line, no edge selection

closes #49
2019-10-23 18:42:17 +02:00
moklick 15fb49ea75 fix(selection): work correctly when snapToGrid = true 2019-10-23 13:59:56 +02:00
AndyLndandMoritz 8ca5c0f84b refactor: Change Position into enum (#48) 2019-10-22 16:37:47 +02:00
MoritzandGitHub a793f8c2ff develop (#43)
* fix(ts): use strict mode strictNullChecks etc

* chore: Use extended React.HTMLAttributes<> (#41)

* refactor(code-format): add prettier closes #42

* feat(renderer): add snap to grid option closes #20

* chore(dependabot): use develop as target branch
2019-10-21 20:58:28 +02:00
MoritzandGitHub c5632323c3 Develop (#35)
* refactor(ts): add ReactFlowProps

* Refactor/grid.tsx (#24)

* chore(deps-dev): bump start-server-and-test from 1.10.4 to 1.10.5

Bumps [start-server-and-test](https://github.com/bahmutov/start-server-and-test) from 1.10.4 to 1.10.5.
- [Release notes](https://github.com/bahmutov/start-server-and-test/releases)
- [Commits](https://github.com/bahmutov/start-server-and-test/compare/v1.10.4...v1.10.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* chore(deps-dev): bump typescript from 3.6.3 to 3.6.4

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.6.3 to 3.6.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.6.3...v3.6.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* refactor: grid.js -> grid.tsx

* refactor(bg): remove unused renderer

* refactor(connectionline): use ts

* refactor(ts): edges

* chore(build): update

* Refactor/typescript (WIP) (#25)

* refactor(store): use ts

* refactor(edgewrapper): use ts

* fix(handle): provide onConnect default func

* refactor(nodeselection): use ts

* refactor(userselction): use ts

* refactor(plugins): use ts

* refactor(hooks): use ts

* refactor(nodes): use ts

* refactor(edgerenderer): use ts

* refactor(graphview): use ts

* refactor(utils): rename js to ts

* refactor(app): fix ts errors

* fix(ts): errors

* fix(app): ts errors

* refactor(app): ts erros

* refactor(app): ts errors

* fix(utils): removeElements

* feat(example): add empty renderer closes #34

* fix(connect): dont drag node on connect

* chore(build): update
2019-10-15 22:44:10 +02:00
moklick 492ab71929 fix(connection): remove connecting class on mouse leave 2019-10-07 20:50:02 +02:00
moklick ae1bb70882 feat(handles): validate connection 2019-10-07 19:56:47 +02:00
moklick eba97b586f refactor(utils): rename function 2019-10-07 14:28:43 +02:00
moklick 4f4f597eb6 refactor(app): rename react-graph to react-flow 2019-10-06 19:13:18 +02:00
moklick 3bb6e892aa refactor(utils): put in folder 2019-10-06 19:05:14 +02:00
moklick cc2775dd78 refactor(app): folder structure, components cleanup 2019-10-06 19:01:02 +02:00