Skip to content

Commit

Permalink
update data in drawEdge-test.js to Graphviz version 9.0.0 format
Browse files Browse the repository at this point in the history
  • Loading branch information
magjac committed Nov 5, 2023
1 parent 76a1929 commit e277902
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/drawEdge-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ it("Check our understanding of how Graphviz draws edges.", async () => {
assert.equal(d3.selectAll('path').size(), num_edges, 'Number of initial paths');
const arrowHeadLength = 10;
const arrowHeadWidth = 7;
const margin = -0.14;
const margin = -0.1;
// start of edge tail
const x1 = 54.4;
const y1 = -18;
// end of edge arrowhead
const x2 = 88.62;
const x2 = 88.1;
const y2 = -18.000;

const line = d3.selectAll('.edge').selectAll('path').filter(function (d) {
Expand All @@ -55,9 +55,9 @@ it("Check our understanding of how Graphviz draws edges.", async () => {
var expected_y = [];
expected_x.push(x1);
expected_y.push(y1);
expected_x.push(62.06);
expected_x.push(61.89);
expected_y.push(y1);
expected_x.push(70.57);
expected_x.push(70.18);
expected_y.push(y1);
expected_x.push(Math.round((x2 - margin - arrowHeadLength) * 1000) / 1000);
expected_y.push(y2);
Expand Down

0 comments on commit e277902

Please sign in to comment.