jasonpul
d9ba18d49c
broke out handleId by itself rather than joined with nodeID, modded necessary functions to give handles not assigned IDs an empty string for backwards compadibility. Also modded handles so that only target-source and source-target connections are allowed, and no repeat connections are allowed.
2020-10-01 15:47:37 -04:00
jasonpul
bee2ca5c0c
initial working mod with nodeId and handleId split up in Connection type so that target-target and source-source connections cannot be made
2020-10-01 12:48:56 -04:00
moklick
1f7d88fd5e
feat(connectionline): custom component option #516
2020-09-19 13:38:40 +02:00
moklick
0b15211e18
refactor(edges): pass original source and target ids, cleanup #476
2020-09-15 11:17:06 +02:00
moklick
8a0a928e17
refactor(nodes): always render nodes that are dragged closes #477
2020-09-11 17:12:09 +02:00
moklick
d17e6ebaea
refactor(wrapNode): simplify dragging behaviour
2020-09-11 16:36:23 +02:00
moklick
fe3dd87d24
fix(selection): handle snap grid correctly
2020-09-11 01:39:40 +02:00
moklick
5c2c1eecad
feat(paneview): add translateExtent option closes #479
2020-09-10 18:39:40 +02:00
moklick
5b4b114935
feat(props): add onConnectEnd function #451
2020-08-21 09:40:27 +02:00
moklick
58b0d88208
refactor(nodes): no jumping nodes on start
2020-08-20 14:54:23 +02:00
moklick
23660b5903
feat(reactflowInstance): add zoomTo function closes #433
2020-08-19 19:12:28 +02:00
Nate Amack
27c8ac02dc
fix(types): add id to EdgeProps
2020-08-18 15:21:54 -06:00
moklick
ee74c90f15
feat(edges): add labelBgBorderRadius option closes #421
2020-08-12 13:00:54 +02:00
moklick
6bbc152041
feat(edge-options): add labelBgPadding #421
2020-08-11 10:36:22 +02:00
moklick
59742c9526
refactor(variables): dont use abbreviations
2020-08-10 12:10:17 +02:00
Nate Amack
fddb3e777d
feat(props): add mouse event to onConnectStart and onConnectStop
2020-08-04 12:22:38 -06:00
Nate Amack
97ec24fa14
feat(props): add mouse event to onNodeDragStart, onNodeDragStop, onElementClick, and onPaneClick
2020-08-04 12:05:03 -06:00
moklick
56dc40b7cc
refactor(types): export onLoadParams #391
2020-08-03 14:38:06 +02:00
moklick
5f91498d19
feat(connection): add start and stop props closes #380
2020-08-01 12:54:14 +02:00
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
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
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
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
AndyLnd and Moritz
8ca5c0f84b
refactor: Change Position into enum ( #48 )
2019-10-22 16:37:47 +02:00