14 Commits

Author SHA1 Message Date
3fd418ce29 Remove useless FocusScope 2020-08-21 11:02:36 +02:00
7c1eade09b GraphView: Show the Node's label 2020-08-18 13:37:57 +02:00
f2dcc4d193 GraphView: Highlight the edges of the selected node 2020-08-18 13:35:33 +02:00
f1d8546e81 GraphView: Start layouting on moving the nodes
This is awesome. It's exactly what I wanted. The graph layout algorithm
will need to be improved, but this is already quite usable.
2020-08-18 13:33:30 +02:00
f2e61d3efd GraphView: Draw the edges with a normal canvas
We no longer need the touchy canvas as the nodes are proper Widgets
which makes everything so much easier.
2020-08-18 13:17:57 +02:00
06275ae206 Graph: Try to implement it with a Stack
This seems a far easier way, and moving it around also works so so much
better.
2020-08-18 13:12:27 +02:00
9411a36f4a Graph Drawing: Add some todos 2020-08-09 00:56:46 +02:00
7b7c170792 Graph Rendering Experiment: Try layouting via a RenderBox
Instead of using a Custom Painter and then re-implementing all the hit
testing and everything, instead lets try to learn about Flutter's lower
level RenderObjects and let each node just be a simple Widget and
provide a GraphView class, which will take a list of nodes (widgets),
and edges.

This is a small PoC, which looks quite promising as instead of drawing a
circle as a node, we will be able to render the node as how a Note is
rendered in Markdown.
2020-08-07 00:50:37 +02:00
12ec4c243f Graph Layout: Minor refactor 2020-08-03 01:04:14 +02:00
b27f63f829 Force Directed Graph Visualization: Do not let nodes overlap
This really won't scale with lots of nodes
2020-08-03 00:55:44 +02:00
e09ea4313b Graph Rendering: Implement a simple Force Directed Layout
Based on the paper "Simple Algorithms for Network Visualization: A
Tutorial" by Michael J. McGuffin.
2020-08-03 00:14:34 +02:00
8e8c11c5ef FolderView: Refactor NewNoteNavBar into its own widget 2020-07-31 20:47:18 +02:00
de9c4dfea2 Graph Visualization: Allow moving the nodes by dragging
It's not perfect as if the nodes are too small, then this doesn't seem
to work, but it's a start. This was just an experiment, anyway.
2020-07-30 17:24:29 +02:00
51c112101a Expirment: Try drawing a network graph with nodes and edges
This works okay, but the touchable libary doesn't seem to propogate the
touch events very well, especially the pan events.
2020-07-30 16:44:58 +02:00