diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2021-01-27 13:28:27 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2021-01-27 13:28:27 +0000 |
| commit | 10763285c8ef03e2e7639ba1c49e7e9162edbf2a (patch) | |
| tree | 6ffb629cc2031f1092f9cef692a244b19032ae75 /src/layout.js | |
| parent | use jsonld framing, add discussion title (diff) | |
| download | fedidag-10763285c8ef03e2e7639ba1c49e7e9162edbf2a.tar.gz fedidag-10763285c8ef03e2e7639ba1c49e7e9162edbf2a.zip | |
node collapsing (w/o relayouting)
Diffstat (limited to 'src/layout.js')
| -rw-r--r-- | src/layout.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/layout.js b/src/layout.js index 788edca..e256681 100644 --- a/src/layout.js +++ b/src/layout.js @@ -7,6 +7,9 @@ export const init = () => { } export const addNode = (dot, node) => { + if (node.collapsed) + return dot; + const id = node.data.id; dot += ` "${id}" [fixedsize=true; width=${node.dom.offsetWidth / 72}; height=${node.dom.offsetHeight / 72}];\n`; |
