Commit Graph
34 Commits
Author SHA1 Message Date
moklick b3391860da feat(edges): add data and classname props, unify node/edge handling closes #357 2020-07-27 12:40:39 +02:00
moklick 2fee4c35ae feat(onLoad): add setTransform function #358 2020-07-25 13:38:55 +02:00
moklick b77977997b feat(props): add onMoveStart and onMoveEnd #358 2020-07-24 17:39:35 +02:00
moklick 48bde20ded feat(node): add draggable, connectable and selectable options 2020-07-22 11:27:11 +02:00
moklick 70121edcd8 feat(smoothstepedge): add border radius param 2020-07-21 16:47:35 +02:00
moklick b51a25191f feat(elements): add isHidden option 2020-07-15 10:31:16 +02:00
moklick 0593db289a feat(edges): add arrow head options 2020-07-14 12:57:12 +02:00
moklick 152acbe70a feat(connectionline): add step and smoothstep types 2020-07-13 18:02:59 +02:00
moklick 1d8a9d6d87 feat(graph): more adjustable interaction closes #329, closes #291 2020-07-13 17:36:15 +02:00
moklick 32f6101d37 feat(nodes): add enter, move, leave and context handler #301 2020-07-13 16:04:49 +02:00
Andy f065c65099 fitView argument is optional 2020-06-19 01:14:15 +02:00
moklick 5a3adab3a0 refactor(internals): rename __rg to __rf 2020-06-05 00:17:28 +02:00
moklick 407e34b1cb refactor(controls): dont import store but use actions 2020-06-04 23:46:37 +02:00
moklick 5cbeda5c3f feat(components): add ReactFlowProvider #275 2020-06-02 18:34:02 +02:00
moklick 3f3a79b5f6 feat(rfInstance): add getElements function #274 2020-06-02 16:06:08 +02:00
moklick ce32d34c6b fix(connectionline): draw line from handle where user starts closes #270 2020-06-01 23:14:14 +02:00
moklick c620d0f40c refactor(connectionLine): create connection line type enum 2020-05-29 18:53:23 +02:00
MoritzandGitHub 714c916121 refactor(styling): use css for default styles (#259)
* refactor(minimap): use css for default styles

* refactor(controls): use css for default styles

* refactor(background): use css for default styles

* refactor(edges): add edge type class name

* refactor(nodes): use css for default styles

* refactor(outputnode): add display name

* refactor(wrapnode): cleanup

* refactor(rollup): minimize css for prod build

* refactor(additional-comps): extract css

* test(graphs): adjust for new markup
2020-05-29 18:33:29 +02:00
moklick f2313916b6 feat(handle): add class name prop type 2020-05-29 16:50:59 +02:00
moklick a555df0458 feat(nodes): add class name option closes #254 2020-05-28 11:22:51 +02:00
moklick 02b4dc82df feat(nodes): add selectNodesOnDrag prop type 2020-05-25 18:13:12 +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
moklick 5049379e3b feat(nodes): add onDragStart handler #241 2020-05-25 12:14:47 +02:00
moklick c0390eec79 feat(helper): export project function closes #237 2020-05-19 18:33:29 +02:00
moklick a204834525 refactor(types): use interfaces 2020-05-16 01:12:46 +02:00
moklick 1e447a204c refactor(types): use types for prop type functions 2020-05-15 21:53:13 +02:00
moklick 0c30eebb94 feat(edges): add label props 2020-05-11 12:18:36 +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
AndyLndandMoritz 8ca5c0f84b refactor: Change Position into enum (#48) 2019-10-22 16:37:47 +02:00
AndyLndandMoritz dcc38b23d8 Feat/minimap (#44)
* feat: New minimap

* imporved preview

* better start values

* smarter destructure

* getNodesInside refactor

* refactor(minimap): add maskColor and nodeBorderRadius props

* refactor(gitignore): add dist

* refactor(minimap): show empty minimap when there are no nodes

closes #39
2019-10-22 14:15:36 +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