Skip to content

Commit

Permalink
fix(hierarchical): ignore invisible nodes (#270)
Browse files Browse the repository at this point in the history
* fix(hierarchical): ignore invisible nodes

The layout originally made space for invisible nodes (for example after
clustering). Now it takes into account only the nodes that are actually
rendered solving the problems with mysterios empty spaces in hierarchies
with clusters.

* chore(examples): add clustering to hierarchy methods

The example is mostly rewritten. It has brand new design. A lot of weird
stuff was rewritten (like a comment talking about randomly generating
nodes when in fact it was just generating ordered numbers 0 to 18 in
simple for; edges being pushed one by one into an array; the String
constructor etc.)

The example now allows layouting method and shaking direction to be
chosen using radio buttons (ordinary buttons were used before) and
checkboxes to choose which nodes should be clustered.
  • Loading branch information
Thomaash committed Nov 28, 2019
1 parent f093a74 commit 75f4e13
Show file tree
Hide file tree
Showing 3 changed files with 336 additions and 139 deletions.
Loading

0 comments on commit 75f4e13

Please sign in to comment.