Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hierarchical edge bundling improvements.
The input to the layout is now an array of edges to bundle, rather than nodes. This eliminates the need for an `outgoing` accessor, since the links are passed to the bundle layout directly. The svg line generator now supports a beta (straightening; bundle strength) parameter. I haven't decided if this is the right place or the right name for it, but it seems like a reasonable starting point. I'm not happy with the cos & sin needed to produce radial lines (both here and for the diagonal projection in other examples), but I don't have a good alternative yet. This commit also tries to make the construction of the links from the layout nodes a bit easier to follow. The previous code was used another intermediate representation, and I think it's cleaner to construct the default format expected by the layouts. However, there's still a good chunk of code required to massage the JSON format into a node hierarchy and array of dependencies, so I'd like to find a way to simplify that, too.
- Loading branch information
Showing
11 changed files
with
164 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,6 @@ | |
|
||
.link { | ||
stroke: #000; | ||
stroke-width: .5px; | ||
stroke-opacity: .5; | ||
fill: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.