Skip to content

Commit

Permalink
Merge pull request #123 from ulilicht/master
Browse files Browse the repository at this point in the history
Added documentation for lineInterpolate
  • Loading branch information
cpettitt committed Nov 26, 2014
2 parents 086aeb7 + 1d7aba9 commit 80e9c87
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions demo/style-attrs.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ <h1>Dagre D3 Demo: Style Attributes</h1>
// Double the size of the font for node "C"
g.setNode("C", { labelStyle: "font-size: 2em" });

g.setNode("D", {});

// Make the edge from "A" to "B" red, thick, and dashed
g.setEdge("A", "B", {
style: "stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;",
Expand All @@ -61,6 +63,13 @@ <h1>Dagre D3 Demo: Style Attributes</h1>
labelStyle: "font-style: italic; text-decoration: underline;"
});

// Make the edge between A and D smoother.
// see available options for lineInterpolate here: https://github.com/mbostock/d3/wiki/SVG-Shapes#line_interpolate
g.setEdge("A", "D", {
label: "line interpolation different",
lineInterpolate: 'basis'
});

// Create the renderer
var render = new dagreD3.render();

Expand Down

0 comments on commit 80e9c87

Please sign in to comment.