18 Commits

Author SHA1 Message Date
4117af8a33 wip 2018-05-02 11:20:23 +02:00
91c1ee0169 WIP 2018-04-27 15:54:28 +02:00
3ea6375011 rather import from storm-react-diagrams to further test the library 2018-03-13 22:46:06 +02:00
1debc9c891 clean refactor / consistent TSLint / Prettier 2018-03-02 16:31:50 +01:00
259782ecfa upgrade all the widgets to use bem in a smart way 2018-02-25 11:21:22 +02:00
e2285cec16 reformat code 2018-02-24 18:44:28 +02:00
6980fa091e super advanced custom link demo 2018-02-23 19:29:51 +02:00
a318b71ef1 fix more bugs 2018-02-23 18:58:34 +02:00
6dea182ab8 fix custom links 2018-02-23 18:27:03 +02:00
372af4341d Merge branch 'flow-diagram-changes' of https://github.com/yngndrw/react-diagrams into links_refactor 2018-02-11 19:17:14 +02:00
16523dac85 more refactor, this ones a big one 2018-02-11 19:03:08 +02:00
b7698ca53a Added a new demo showing off flow diagram usage:
- PortModel can now decide whether or not a link should be allowed (E.g. only allowing outputs to connect to inputs)
- PortModel now has an optional maximum number of links - When set to 1 an existing link is returned by createLinkModel and when set to another finite number null will be returned when the maximum is reached
- LinkModel has been updated to support the resetting of existing links (I.e. removing ports and removing mid-points)
- DiagramWidget has been updated to handle null being returned by createLinkModel as well as an existing link (this also supports an existing link where the link's target port should now be the source port)
- DiagramWidget has been updated to respect the PortModel's new canLinkToPort method
- DiagramWidget has been updated to disallow duplicate links
2018-01-24 17:02:58 +00:00
c447103f0f Quite the overhaul and improvement 2018-01-21 16:29:06 +02:00
c6ac076204 started splitting out the links 2018-01-20 15:41:17 +02:00
75412dfb2e run pretty 2018-01-08 20:57:58 +02:00
518f481776 complete refactor 2018-01-08 20:50:54 +02:00
0291bd41fd cleaned up the demos nicely 2018-01-04 23:18:49 +02:00
bbf88ca951 cleaned up demos 2018-01-04 21:45:23 +02:00