moklick
edefe860cf
refactor(helper): use type predicates for isEdge and isNode
2020-05-16 12:41:33 +02:00
moklick
fcb0a3e9f1
refactor(onConnect): param can be edge or connection
2020-05-16 01:13:28 +02:00
moklick
a204834525
refactor(types): use interfaces
2020-05-16 01:12:46 +02:00
moklick
34188549f3
refactor(ts): export types
2020-05-16 01:11:56 +02:00
moklick
fb543d290e
refactor(plugins): create MiniMapNode file for component, cleanup
2020-05-16 01:10:20 +02:00
moklick
1e447a204c
refactor(types): use types for prop type functions
2020-05-15 21:53:13 +02:00
Andy and GitHub
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
1922c37155
fix(nodes): don't project position when adding a new node #220
2020-05-14 14:36:28 +02:00
moklick
267187b8d1
feat(elementUpdater): apply position and style changes #220
2020-05-14 10:56:50 +02:00
moklick
1cc4e2676d
refactor(inactivemode): no pointer events for nodes and edges closes #218
2020-05-13 11:09:22 +02:00
moklick
f30999ea7a
fix(edges): add step edge to standard types
2020-05-11 22:50:43 +02:00
moklick
4af6261771
feat(examples): add custom edge closes #193
2020-05-11 22:05:50 +02:00
moklick
6ea206e3be
feat(controls): add showZoom, showFitView, showInteractive options #211
2020-05-11 19:08:07 +02:00
Moritz and GitHub
55b684e4ad
Merge pull request #211 from raichuk/feat/lock
...
Feat/lock
2020-05-11 18:59:35 +02:00
Sebastián Alvarez
c0b80f2d89
feat(lock): Lock/unlock button at bottom
2020-05-11 13:55:44 -03:00
moklick
6dcb9f5120
refactor(renderer): show error when no width or height is set #196
2020-05-11 18:50:09 +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
Sebastián Alvarez
7514e2fb86
feat(lock): update className of lock button based on interactivity state
2020-05-11 11:39:51 -03:00
Sebastián Alvarez
f500d52f2f
feat(lock): button enabling and disabling interactivity on Controls plugin
2020-05-11 11:39:50 -03: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
ecbc2944e6
refactor(node): only update size when changed
2019-10-25 15:07:28 +02:00
moklick
caebec6f6a
refactor(wrapnode): put update node logic in action
2019-10-25 15:01:40 +02:00
moklick
d44bbf7164
fix(snap): default is false closes #63
2019-10-25 14:33:06 +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
70ab31b993
refactor(node): dont select when button inside node is clicked
2019-10-23 20:52:41 +02:00
moklick
6a4c43df4b
refactor(examples): update custom node example, create rich example
2019-10-23 20:38:36 +02:00
Moritz and GitHub
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
1879ba1e4e
refactor(edgerenderer): dont draw edge when node has no height or width
2019-10-23 17:12:02 +02:00
moklick
cf118f1c8c
fix(fitview): emtpy graph doesnt crash closes #50
2019-10-23 16:16:54 +02:00
moklick
15fb49ea75
fix(selection): work correctly when snapToGrid = true
2019-10-23 13:59:56 +02:00
moklick
c76483a264
fix(graph.ts): overlapping area calculation
2019-10-23 13:49:41 +02:00
AndyLnd and Moritz
66711f19fa
refactor: EdgeRenderer ( #53 )
2019-10-22 22:37:33 +02:00
AndyLnd and Moritz
bd60ad0ecd
refactor: NodeRenderer ( #51 )
...
* refactor: NodeRenderer
* fix getNodesInside partially param
* add `skipInvisible` prop
* refactor(noderenderer): rename skipInvisble to onlyRenderVisibleNodes
closes #40
2019-10-22 21:03:11 +02:00
AndyLnd and Moritz
8ca5c0f84b
refactor: Change Position into enum ( #48 )
2019-10-22 16:37:47 +02:00
AndyLnd and Moritz
59caff6505
refactor: graph.ts ( #47 )
2019-10-22 16:08:45 +02:00
AndyLnd and Moritz
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
moklick
99dcc775b4
feat(snap): snap initial nodes to grid
2019-10-21 21:27:00 +02:00
Moritz and GitHub
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
Moritz and GitHub
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
Moritz and GitHub
9148229c19
Refactor/ts ( #21 )
...
* refactor(ts): add deps
* refactor(ts): add tsconfig
* refactor(rollup): configure ts
2019-10-09 22:56:59 +02:00
moklick
50e076dffa
refactor(rollup): use svgr instead off svg-rollup-plugin
2019-10-09 19:28:17 +02:00
moklick
3eea88d533
fix(tests): grid
2019-10-09 17:36:11 +02:00
moklick
477cc09927
fix(bgTypes): add bg types to bg renderer #19
2019-10-09 17:23:02 +02:00