mirror of
https://github.com/d3/d3.git
synced 2026-01-25 15:24:06 +00:00
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.
15 lines
208 B
CSS
15 lines
208 B
CSS
.cell {
|
|
border: solid 1px white;
|
|
font: 10px sans-serif;
|
|
line-height: 12px;
|
|
overflow: hidden;
|
|
position: absolute;
|
|
text-indent: 2px;
|
|
}
|
|
|
|
.link {
|
|
stroke: #000;
|
|
stroke-opacity: .5;
|
|
fill: none;
|
|
}
|