commit f3b7532990b5efc8e1b630bbdac5ea3317a522d4
parent 5de1b353d101dac91b89854a54b282c2e755bee8
Author: William Casarin <jb55@jb55.com>
Date: Thu, 16 Aug 2018 20:19:36 -0700
document controls
Diffstat:
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
@@ -3,6 +3,7 @@
A Lightning Network Visualizer
+
## Usage
LNvis requires a json dump of nodes and channels. Currently only clightning
@@ -11,3 +12,16 @@ channel/node output is supported
lightning-cli listnodes > clightning-nodes.json && \
lightning-cli listchannels > clightning-channels.json && \
./lnvis
+
+
+## Controls
+
+```
+b view multiple channels between nodes
+t toggle dark/light theme
+a toggle aliases
+g toggle grid
+s toggle stroked nodes (small perf boost)
+left click move + focus node
+right click filter node
+```
diff --git a/render.c b/render.c
@@ -282,7 +282,8 @@ void render_ln(struct ln *ln)
struct channel *draw_last = NULL, *c = NULL;
- draw_grid(vg, ln);
+ if (ln->display_flags & DISP_GRID)
+ draw_grid(vg, ln);
// render channels first
for (i = 0; i < ln->channel_count; i++) {