moklick
084030dbb2
refactor(smoothstepedge): simplify conditions
2020-07-14 15:00:43 +02:00
moklick
cbc98df74a
fix(smoothstepedge): draw straight line when source and target have same x positions
2020-07-14 14:57:56 +02:00
moklick
0593db289a
feat(edges): add arrow head options
2020-07-14 12:57:12 +02:00
moklick
1b3f58486a
refactor(classnames): use faster classcat alternative
2020-07-14 10:11:26 +02:00
moklick
dec1f973cb
refactor(edges): create index for all edge types
2020-07-14 09:54:39 +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
moklick
b32d5454e1
feat(edges): add smooth step type
2020-07-13 15:24:14 +02:00
moklick
6b8e7bfbc3
refactor(nodes): wrap with memo, update transform without creatin new array #282
2020-06-05 12:55:11 +02:00
moklick
33d2770b23
fix(userselection): dont render user selection when its not active
2020-06-05 12:37:54 +02:00
moklick
4ae4f2e213
fix(userselection): handle shift key + mouse up handling
2020-06-05 01:04:40 +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
2d4a64d341
refactor(handle): use weaker selectors so its easier to overwrite
2020-06-02 10:23:14 +02:00
moklick
ce32d34c6b
fix(connectionline): draw line from handle where user starts closes #270
2020-06-01 23:14:14 +02:00
moklick
0558ff86c4
fix(bezieredge): correctly connect diagonally nodes closes #256
2020-05-30 20:26:55 +02:00
moklick
c620d0f40c
refactor(connectionLine): create connection line type enum
2020-05-29 18:53:23 +02:00
Moritz and GitHub
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
11a3605c1b
refactor(connectionline): handle horizontal flows correctly closes #253
2020-05-28 11:30:05 +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
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
Moritz and GitHub
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
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
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
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
15fb49ea75
fix(selection): work correctly when snapToGrid = true
2019-10-23 13:59:56 +02:00
AndyLnd and Moritz
8ca5c0f84b
refactor: Change Position into enum ( #48 )
2019-10-22 16:37:47 +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