Skip to content

Commit

Permalink
Merge pull request #257 from magjac/upgrade-graphviz-to-7.0.1
Browse files Browse the repository at this point in the history
Upgrade Graphviz to 7.0.1
  • Loading branch information
magjac authored Dec 11, 2022
2 parents fcf24dc + b84e346 commit 800b882
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 26 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [4.5.0]

### Changed
* Upgrade @hpcc-js/wasm to 1.16.6 (Graphviz 7.0.1)

## [4.4.0]

### Changed
Expand Down Expand Up @@ -131,7 +136,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## 2.x & 1.x
See the [release notes](https://github.com/magjac/d3-graphviz/releases).

[Unreleased]: https://github.com/magjac/d3-graphviz/compare/v4.4.0...HEAD
[Unreleased]: https://github.com/magjac/d3-graphviz/compare/v4.5.0...HEAD
[4.5.0]: https://github.com/magjac/d3-graphviz/compare/v4.4.0...v4.5.0
[4.4.0]: https://github.com/magjac/d3-graphviz/compare/v4.3.0...v4.4.0
[4.3.0]: https://github.com/magjac/d3-graphviz/compare/v4.2.0...v4.3.0
[4.2.0]: https://github.com/magjac/d3-graphviz/compare/v4.1.1...v4.2.0
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "d3-graphviz",
"version": "4.4.0",
"version": "4.5.0",
"description": "Graphviz DOT rendering and animated transitions for D3",
"keywords": [
"d3",
Expand Down Expand Up @@ -63,7 +63,7 @@
"tiny-worker": "^2.1.2"
},
"dependencies": {
"@hpcc-js/wasm": "1.16.1",
"@hpcc-js/wasm": "1.16.6",
"d3-dispatch": "^2.0.0",
"d3-format": "^2.0.0",
"d3-interpolate": "^2.0.1",
Expand Down
16 changes: 8 additions & 8 deletions test/dot-data-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ var basic_data = {
},
"center": {
"x": "27",
"y": "-85.8",
"y": "-85.8"
},
"parent": "[Circular ~.children.1.children.7]",
"children": [
Expand Down Expand Up @@ -345,7 +345,7 @@ var basic_data = {
},
"center": {
"x": "27",
"y": "-13.8",
"y": "-13.8"
},
"parent": "[Circular ~.children.1.children.11]",
"children": [
Expand Down Expand Up @@ -451,17 +451,17 @@ var basic_data = {
"attributes": {
"fill": "none",
"stroke": "black",
"d": "M27,-71.7C27,-63.98 27,-54.71 27,-46.11"
"d": "M27,-71.7C27,-64.41 27,-55.73 27,-47.54"
},
"bbox": {
"x": 27,
"y": -71.7,
"width": 0,
"height": 25.590000000000003
"height": 24.160000000000004
},
"center": {
"x": 27,
"y": -58.905
"y": -59.620000000000005
},
"totalLength": 100,
"parent": "[Circular ~.children.1.children.15]",
Expand All @@ -483,17 +483,17 @@ var basic_data = {
"attributes": {
"fill": "black",
"stroke": "black",
"points": "30.5,-46.1 27,-36.1 23.5,-46.1 30.5,-46.1"
"points": "30.5,-47.62 27,-37.62 23.5,-47.62 30.5,-47.62"
},
"bbox": {
"x": 23.5,
"y": -46.1,
"y": -47.62,
"width": 7,
"height": 10
},
"center": {
"x": 27,
"y": -41.1
"y": -42.62
},
"parent": "[Circular ~.children.1.children.15]",
"children": [],
Expand Down
10 changes: 6 additions & 4 deletions test/drawEdge-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ tape("Check our understanding of how Graphviz draws edges.", function(test) {
test.equal(d3.selectAll('path').size(), num_edges, 'Number of initial paths');
const arrowHeadLength = 10;
const arrowHeadWidth = 7;
const margin = 0.1;
const margin = -0.1;
// start of edge tail
const x1 = 54.4;
const y1 = -18;
const x2 = 89.92;
// end of edge arrowhead
const x2 = 88.1;
const y2 = -18.000;

const line = d3.selectAll('.edge').selectAll('path').filter(function(d) {
Expand All @@ -51,9 +53,9 @@ tape("Check our understanding of how Graphviz draws edges.", function(test) {
var expected_y = [];
expected_x.push(x1);
expected_y.push(y1);
expected_x.push(62.39);
expected_x.push(61.89);
expected_y.push(y1);
expected_x.push(71.31);
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
4 changes: 2 additions & 2 deletions test/graphviz-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ tape("graphviz().render() renders an SVG from graphviz DOT.", function(test) {
<!-- a&#45;&gt;b -->
<g id="edge1" class="edge">
<title>a-&gt;b</title>
<path fill="none" stroke="black" d="M27,-71.7C27,-63.98 27,-54.71 27,-46.11"></path>
<polygon fill="black" stroke="black" points="30.5,-46.1 27,-36.1 23.5,-46.1 30.5,-46.1"></polygon>
<path fill="none" stroke="black" d="M27,-71.7C27,-64.41 27,-55.73 27,-47.54"></path>
<polygon fill="black" stroke="black" points="30.5,-47.62 27,-37.62 23.5,-47.62 30.5,-47.62"></polygon>
</g>
</g>
</svg>`;
Expand Down

0 comments on commit 800b882

Please sign in to comment.