35 Commits

Author SHA1 Message Date
174ec45f8f initial work on group nodes support 2018-03-21 16:40:25 +02:00
1debc9c891 clean refactor / consistent TSLint / Prettier 2018-03-02 16:31:50 +01:00
e2285cec16 reformat code 2018-02-24 18:44:28 +02:00
4d3ad389df more fixes to testing framework 2018-02-24 13:02:17 +02:00
9b3ad7a47f improve testing frameworks 2018-02-24 12:16:47 +02:00
942a0c3894 some demos were using the wrong ports 2018-02-23 19:34:47 +02:00
6dea182ab8 fix custom links 2018-02-23 18:27:03 +02:00
85f97a63fa Merge branch 'smart-routing' of https://github.com/klauspaiva/react-diagrams into links_refactor 2018-02-18 20:13:10 +02:00
2fdf944e0f Smart routing: flattening changes 2018-02-12 16:58:13 +11: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
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
c6ac076204 started splitting out the links 2018-01-20 15:41:17 +02:00
2c0c5ffaff Rendering a conditional label with static styling 2018-01-18 16:13:15 +11:00
75412dfb2e run pretty 2018-01-08 20:57:58 +02:00
32738688a6 Demos are a whole lot better now 2018-01-07 22:48:52 +02:00
5bb9591478 Now display code side to size 2018-01-07 13:49:18 +02:00
0be7157cd2 Add some helper widgets 2018-01-04 23:01:30 +02:00
83d5d50a3b started work on docs 2018-01-04 22:45:55 +02:00
bbf88ca951 cleaned up demos 2018-01-04 21:45:23 +02:00
b71f82bc73 add entity cloning, fix #123, split link if point dropped on different node 2017-12-26 16:32:15 -06:00
94388f4aef clean up code style 2017-12-16 23:04:01 +02:00
9b047ca4e4 custom link demo 2017-11-28 19:35:52 +01:00
a1369453c1 house keeping 2017-11-24 00:09:26 +02:00
45eaafffa2 Add zoom to fit method to DiagramEngine 2017-11-21 11:13:12 +01:00
9965bd1066 trying out some deterministic stuff 2017-11-21 00:39:19 +02:00
9523d64113 first tests 2017-11-20 23:35:33 +02:00
600a386f32 fix a bunch of stuff 2017-11-20 12:06:20 +02:00
8b7b32f4ed fix for dagre 2017-11-20 11:55:45 +02:00
e93bf76167 Merge branch 'master' into rdi-94-dagre-example 2017-11-20 11:18:29 +02:00
55030b9358 Added two new demos.
First simply demonstrates how events can be handled.
Second demonstrates a new functionality: limiting the number of points to be created per link using the new property maxNumberPointsPerLink
2017-11-19 11:06:19 +11:00
47fcae619a rdi-94 example of dagre redistribution 2017-11-14 22:50:42 +02:00
efb26a899e Apply prettier linting 2017-09-13 15:32:15 -03:00
4c9a9d2f3e Fixed on keyup pointer 2017-08-19 18:35:11 +02:00
147465f9d9 more work on the demos which now use storybook 2017-08-19 17:48:33 +02:00
0fedb85ca2 started moving to storybook 2017-08-19 17:09:06 +02:00