Commit Graph

405 Commits

Author SHA1 Message Date
Robbie Gleichman
3991b1531d Add note about random line colors to tutorial. 2016-12-08 12:21:32 -08:00
Robbie Gleichman
fd7a4a2e1f Randomly color edges. 2016-12-08 02:41:47 -08:00
Robbie Gleichman
7d994f0ff3 Update tutorial SVG in README 2016-12-07 22:11:33 -08:00
Robbie Gleichman
97cff80df0 Revise tutorial. 2016-12-07 22:09:52 -08:00
Robbie Gleichman
13ebabe0a2 Remove old rotateNodes. Reduce warnings. 2016-12-07 20:30:13 -08:00
Robbie Gleichman
4815b4466d Improve icon rotation using port angles. 2016-12-07 20:14:01 -08:00
Robbie Gleichman
07b4f9bdb2 Add back pattern nesting in Translate.hs. 2016-12-06 21:09:04 -08:00
Robbie Gleichman
89a8afbfee Lookup the root node in the embedding map during syntaxGraphToFglGraph. 2016-12-06 18:48:47 -08:00
Robbie Gleichman
078a3305bf Add and embedding Map to SyntaxGraph. 2016-12-06 18:39:38 -08:00
Robbie Gleichman
dca1434c68 Simplify syntaxGraphToFglGraph. 2016-12-06 17:22:36 -08:00
Robbie Gleichman
5e1d724418 Change node identifier from string to Int. Now, data NameAndPort = NameAndPort NodeName (Maybe Port), where NodeName and Port are both Int newtypes. 2016-12-06 17:02:54 -08:00
Robbie Gleichman
d3c463d41f Pretty print graphs in tests. 2016-12-06 13:45:12 -08:00
Robbie Gleichman
8187ca9af9 Add note about Microsoft browsers to README 2016-12-05 17:26:20 -08:00
Robbie Gleichman
49bad57e2c Remove pattern embedding from GraphAlgorithms. 2016-12-05 17:24:03 -08:00
Robbie Gleichman
9fd08c7432 Add test for improper pattern nesting. 2016-12-05 17:14:54 -08:00
Robbie Gleichman
7f03bf54f5 Update tutorial SVG in README 2016-12-02 20:19:50 -08:00
Robbie Gleichman
4ab82128f7 Update tutorial. 2016-12-02 20:18:32 -08:00
Robbie Gleichman
a64809406f Reduce warnings. 2016-12-02 20:08:42 -08:00
Robbie Gleichman
0f9c4d5b80 Generalize the number type in SepcialQDiagram 2016-12-02 19:43:03 -08:00
Robbie Gleichman
59cd6757fe Rotate nodes with bezier curve edges. 2016-12-02 17:21:13 -08:00
Robbie Gleichman
e9abde2c8b Change the order of TransformableDia so Name is first. 2016-12-02 13:19:01 -08:00
Robbie Gleichman
987a9b8869 Use applicatives for Angle arithmetic. 2016-12-02 13:06:30 -08:00
Robbie Gleichman
0b81421971 Allow literals to be embedded in pattern apply. 2016-12-01 22:32:12 -08:00
Robbie Gleichman
eb6291b11d Pick best port angles for edges. 2016-12-01 22:11:11 -08:00
Robbie Gleichman
a250b479a5 Use bezier curves for edges. 2016-12-01 20:46:24 -08:00
Robbie Gleichman
334369afac Remove nameDiagramMap parameters from placeNode and its sub-functions. 2016-12-01 00:18:49 -08:00
Robbie Gleichman
3b6da410b4 Use TransformableDia type synonym. 2016-11-30 22:13:43 -08:00
Robbie Gleichman
762a6539c8 Remove syntaxGraphFromDrawing and ingSyntaxGraphToDrawing from TranslateCore. 2016-11-30 20:59:25 -08:00
Robbie Gleichman
989a8f520e Refactor Rendering.hs to use IngSyntaxGraph instead of Drawing. Eliminate warnings in AllTests. 2016-11-30 20:45:50 -08:00
Robbie Gleichman
582528d74e Remove sub-Drawings from Drawing. 2016-11-28 13:55:26 -08:00
Robbie Gleichman
b393acd949 Add bezierArrowShaft that can draw an arrow shaft with its ends at parameterized angles. 2016-11-28 13:31:13 -08:00
Robbie Gleichman
7e139e114b Update getting started guide (tutorial) in README. 2016-11-27 18:10:21 -08:00
Robbie Gleichman
a7f2330d5d Update tutorial svg 2016-11-27 18:07:55 -08:00
Robbie Gleichman
860e00a724 Fix edge transfer for embedded pattern apply. 2016-11-27 18:07:14 -08:00
Robbie Gleichman
02446b5b15 Reduce GHC warnings. 2016-11-27 17:25:30 -08:00
Robbie Gleichman
d617914139 Hlint suggestions. 2016-11-27 15:44:43 -08:00
Robbie Gleichman
4371f2d4c6 Fix factorial test. 2016-11-27 15:07:35 -08:00
Robbie Gleichman
0156f2af1d Refactor GraphAlgorithms. Child edge transfer for embedded pattern apply still needs to be fixed. 2016-11-27 14:41:07 -08:00
Robbie Gleichman
15fc06a260 Progress towards embedding pattern apply. 2016-11-27 12:51:56 -08:00
Robbie Gleichman
533392f3c1 Fix bind names not having special colors by adding BindNameNode. 2016-11-26 13:46:05 -08:00
Robbie Gleichman
dd821cbb47 Fix bug in GraphAlgorithms where a node counted as its own parent. 2016-11-21 21:51:35 -08:00
Robbie Gleichman
9c61368bd2 Allow a node with 2 or more parents that can embed to be a root node. 2016-11-21 20:54:46 -08:00
Robbie Gleichman
64acccfcd5 Fix bug in GraphAlgorithms where the wrong graph was being used. This caused a non-child to be identified as a child. 2016-11-21 20:46:29 -08:00
Robbie Gleichman
4dafd8ea7e Use the new collapseNodes algorithm when rendering. Still need to do embedding for patterns. 2016-11-21 19:18:08 -08:00
Robbie Gleichman
69f6a6c4f2 Add ingSyntaxGraphtoDrawing, and add case for NestedApplyNode to nodeToIcon. 2016-11-21 17:20:18 -08:00
Robbie Gleichman
deb999a71b Delete/remove IconGraph. 2016-11-21 13:57:53 -08:00
Robbie Gleichman
fc15c5a58b Rename the SyntaxGraph in GraphAlgorithms to IngSyntaxGraph. 2016-11-20 15:47:40 -08:00
Robbie Gleichman
99e2ad9493 Change the function name in NestedApply from a string to an Icon. 2016-11-20 15:34:18 -08:00
Robbie Gleichman
b395dfb428 Delete embedded children. TODO: Transfer the childrens' edges. 2016-11-19 22:17:40 -08:00
Robbie Gleichman
12d28b4b07 Add embedChildSyntaxNodes for ApplyNodes. 2016-11-19 14:45:16 -08:00