Commit Graph
100 Commits
Author SHA1 Message Date
Ian Gulliver 970c3faba9 Save selection to allow replay during undo 2019-07-12 01:05:04 +00:00
Ian Gulliver ed5c79c05d Stop us from undoing right off the page 2019-07-12 00:45:03 +00:00
Ian Gulliver 7274886d76 Add undo/redo keys 2019-07-11 22:43:18 +00:00
Ian Gulliver 498d1cbb1e Remove debug logging 2019-07-11 22:31:27 +00:00
Ian Gulliver 0485580b89 Proper history tracking 2019-07-11 22:30:53 +00:00
Ian Gulliver d906e6a933 Remove unnecessary keydown capture 2019-07-11 21:44:50 +00:00
Ian Gulliver e04c8b50dd Add flip link 2019-07-11 20:08:29 +00:00
Ian Gulliver 0ecbd40642 More key shortcut cases 2019-07-11 19:58:22 +00:00
Ian Gulliver f4893cd20d Alias ` to Escape for the ipad hardware keyboard 2019-07-11 19:50:35 +00:00
Ian Gulliver f3e93176b9 Safari fixes 2019-07-11 18:14:06 +00:00
Ian Gulliver 2cbaade0d5 Fix bugs in previous change 2019-07-11 16:23:41 +00:00
Ian Gulliver c80f8c57de Don't start editing pre-filled fields 2019-07-11 16:15:53 +00:00
Ian Gulliver e81f3b9868 Save and restore IDs to prevent dupes 2019-07-11 16:12:02 +00:00
Ian Gulliver ea5e3cb7e1 Make nodes selectable from the grid 2019-07-11 05:12:08 +00:00
Ian Gulliver 15ad72dc0a s/data-arch-value/data-arch-refresh/ 2019-07-11 04:44:33 +00:00
Ian Gulliver 7390acb978 Populate EditorLink based on highlighted items 2019-07-11 04:40:43 +00:00
Ian Gulliver f7822b24b5 Escape at top level cancels highlights 2019-07-11 04:28:55 +00:00
Ian Gulliver 057856a2d2 Auto-populate groups based on highlighted entries 2019-07-11 04:25:06 +00:00
Ian Gulliver b6c8441f61 favicon 2019-07-11 04:10:02 +00:00
Ian Gulliver 591d4814a7 Expand lines on highlight, fix EditorLabel highlight attempt 2019-07-10 23:51:14 +00:00
Ian Gulliver c52f93d6d2 Highlight groups 2019-07-10 23:46:25 +00:00
Ian Gulliver dda2102f99 Highlight links 2019-07-10 23:41:41 +00:00
Ian Gulliver 0aa272c224 Help for highlight 2019-07-10 23:25:27 +00:00
Ian Gulliver d52c8206a6 Node highlighting 2019-07-10 23:19:39 +00:00
Ian Gulliver 4857bb97cb Factor out grid code 2019-07-10 22:43:29 +00:00
Ian Gulliver 14108c0164 Handle an empty graph 2019-07-10 22:31:51 +00:00
Ian Gulliver d22fb20da5 Fix graph title space 2019-07-10 22:23:06 +00:00
Ian Gulliver 103aacfc42 Grid file 2019-07-10 22:18:00 +00:00
Ian Gulliver 1ef19ad751 Handle global label 2019-07-10 22:05:32 +00:00
Ian Gulliver 4fa89d4237 Discard a TODO 2019-07-10 21:45:36 +00:00
Ian Gulliver 5c9194179c Clarify help 2019-07-10 21:42:28 +00:00
Ian Gulliver 32fc5e300b Make deleteAfter obey mayDelete 2019-07-10 21:41:26 +00:00
Ian Gulliver da1ab28a33 Don't add label fields on refresh 2019-07-10 21:35:03 +00:00
Ian Gulliver 703be7aa75 Add help 2019-07-10 21:32:52 +00:00
Ian Gulliver 04ec47e393 Rip out all the graphviz stuff 2019-07-10 20:34:44 +00:00
Ian Gulliver bc990c48d9 Always move key events back to the editor 2019-07-10 20:21:46 +00:00
Ian Gulliver 78436cd98c Link labels 2019-07-10 20:03:05 +00:00
Ian Gulliver 245bbb86f4 Plumb link labels through to layout 2019-07-10 17:17:17 +00:00
Ian Gulliver 75bc85919c Don't avoid drawing lines over groups that we're coming to or from. 2019-07-10 08:27:07 +00:00
Ian Gulliver 01542d67f6 Working label as an editor entry type 2019-07-10 08:14:53 +00:00
Ian Gulliver 56ff0d1201 Add EditorLabel 2019-07-10 04:09:54 +00:00
Ian Gulliver 9202ab2001 Get initial focus to input for link and gruop 2019-07-09 20:44:22 +00:00
Ian Gulliver b0bc1e5f3b Fix overlapping groups 2019-07-09 20:34:36 +00:00
Ian Gulliver b7d51417d6 Clean up initial positioning code 2019-07-09 18:45:48 +00:00
Ian Gulliver 15c55d0b8d More compact editor layout using symbols 2019-07-09 17:57:35 +00:00
Ian Gulliver 25545e51ab Clean up group boundaries 2019-07-09 17:42:15 +00:00
Ian Gulliver d07f631f10 Don't force apart nodes with the same label, even if not connected 2019-07-09 17:34:54 +00:00
Ian Gulliver b44a9d40a7 Improve intersecting group behavior 2019-07-09 17:30:09 +00:00
Ian Gulliver 6e82a8a78b Group background 2019-07-09 16:51:26 +00:00
Ian Gulliver 236585f3fb Lines from different pairs running together is really bad 2019-07-09 16:44:07 +00:00
Ian Gulliver 042fa66a1d Avoid group label text with lines 2019-07-09 16:43:33 +00:00
Ian Gulliver 130a208bfc Swap light and dark backgrounds to add offset by preserve contrast 2019-07-09 16:30:42 +00:00
Ian Gulliver 898e234171 Slight background color for nodes 2019-07-09 06:08:50 +00:00
Ian Gulliver 97ada9c2ff Fix diagonal cost 2019-07-09 06:01:10 +00:00
Ian Gulliver 3f015a3540 Encourage link merging 2019-07-09 05:55:04 +00:00
Ian Gulliver cda3cad6f9 Try to preserve pagerank left-to-right flow 2019-07-09 05:36:32 +00:00
Ian Gulliver d4f90eb91d Allow lines to cross but not travel together 2019-07-09 05:24:11 +00:00
Ian Gulliver 91afac2ecc Allow lines to or from the same node to overlap 2019-07-09 04:57:52 +00:00
Ian Gulliver 81540590ef Remove some cruft weights that aren't providing value 2019-07-09 04:29:02 +00:00
Ian Gulliver a68471d1da Draw directional arrows 2019-07-09 04:19:09 +00:00
Ian Gulliver 311c32b2c5 Try to stack like nodes 2019-07-08 03:00:31 +00:00
Ian Gulliver 83ce35c2dd Nevermind, helper function 2019-07-08 02:41:27 +00:00
Ian Gulliver df811ec7fa Pass vector to distanceToWeight, remove some useless affinities 2019-07-08 02:40:43 +00:00
Ian Gulliver bb45fba08f Minimum graph size, center smaller graph 2019-07-08 02:35:40 +00:00
Ian Gulliver d2ec4d45a2 Add TODO 2019-07-08 02:24:23 +00:00
Ian Gulliver abc4b2ce0d Plan shortest links first 2019-07-07 23:49:42 +00:00
Ian Gulliver d3374af802 Add cost to diagonals, actually count cost for the midpoint 2019-07-07 23:39:29 +00:00
Ian Gulliver 119f879479 Very fast bidirectional search for links 2019-07-07 22:47:23 +00:00
Ian Gulliver 6790bf06fd Just stop when we reach the goal, since we always find a min-cost path 2019-07-07 22:32:35 +00:00
Ian Gulliver d0856de6ef Remove getDirect() 2019-07-07 22:30:49 +00:00
Ian Gulliver 975f40b1c4 Switch from sorted array to minheap 2019-07-07 22:28:38 +00:00
Ian Gulliver 39a3d20e73 Util cleanup 2019-07-07 21:47:16 +00:00
Ian Gulliver 7a2ac17344 Simulated minheap 2019-07-07 21:45:15 +00:00
Ian Gulliver 9d84177b78 Fix todo 2019-07-07 21:36:39 +00:00
Ian Gulliver f6dba7bfa7 include lines when finding total size 2019-07-07 21:31:59 +00:00
Ian Gulliver ab28ef5909 Penalize link lines crossing over each other 2019-07-07 21:27:55 +00:00
Ian Gulliver d53e3260a8 Add LayoutLink, start with BFS for line drawing 2019-07-06 20:59:27 +00:00
Ian Gulliver 70b0e88f0d Short-circuit layout evaluation 2019-07-05 16:41:12 +00:00
Ian Gulliver 8857a7dfe5 Simplify nodesByPos fixup 2019-07-05 16:23:05 +00:00
Ian Gulliver 29babaf1e0 Create StringMap 2019-07-05 16:18:22 +00:00
Ian Gulliver 396436aa01 Make LayoutGroup.moveBy() linear time 2019-07-05 06:10:41 +00:00
Ian Gulliver 9331f7b101 Don't build an unused map 2019-07-05 05:51:45 +00:00
Ian Gulliver 37002541d6 Avoid nodesByPos corruption during LayoutGroup.restorePos() due to ordering 2019-07-05 05:50:03 +00:00
Ian Gulliver e26463047a Working, basic line drawing 2019-07-05 04:59:04 +00:00
Ian Gulliver 6543e36378 Contained, auto-resize group labels 2019-07-05 04:09:24 +00:00
Ian Gulliver b4a072c8da Disable some useless interactions 2019-07-04 07:02:05 +00:00
Ian Gulliver 94f28f00cd Tweaks to group border margin 2019-07-04 06:48:43 +00:00
Ian Gulliver b86994093b Draw group borders 2019-07-04 06:42:05 +00:00
Ian Gulliver 9a4e90de51 Drawing protocol for line and group 2019-07-04 06:15:39 +00:00
Ian Gulliver db86cb83d5 Switch to CSS variables for line color 2019-07-04 05:46:00 +00:00
Ian Gulliver 353a209ea1 Fix addLine() 2019-07-04 04:40:46 +00:00
Ian Gulliver 22960e57b0 Remove broken graphviz export 2019-07-03 22:27:40 +00:00
Ian Gulliver 5591ec6f54 Worker pool instead of a single worker 2019-07-03 22:23:41 +00:00
Ian Gulliver 3d0d0d5fd0 render in worker thread 2019-07-03 22:10:36 +00:00
Ian Gulliver 27411817b1 Optimize setTension() CPU usage 2019-07-03 20:00:05 +00:00
Ian Gulliver b066001423 Fix node drops during LayoutGroup movement 2019-07-03 19:33:10 +00:00
Ian Gulliver 0f73c595f4 Avoid useless layout on blur 2019-07-03 18:38:08 +00:00
Ian Gulliver b4316a1eb5 Actually draw! 2019-07-03 18:35:24 +00:00
Ian Gulliver dcc8981693 Refactor checkin: drawing (but not iterating?) 2019-07-03 18:27:32 +00:00
Ian Gulliver b91b92eef3 Broken, but checkpoint editor/graph/layout split 2019-07-03 18:13:11 +00:00