Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Mon Oct 07 17:41:06 CEST 2019
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
Expand Down
Binary file modified graphviz-test-example/ex5p.pdf
Binary file not shown.
2 changes: 0 additions & 2 deletions src/test/java/guru/nidi/graphviz/model/ExampleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ void ex2() throws IOException {
graphviz.engine(Engine.TWOPI).render(PNG).toFile(new File("target/ex2-tp.png"));
graphviz.engine(Engine.FDP).render(PNG).toFile(new File("target/ex2-fdp.png"));
graphviz.render(SVG).toFile(new File("target/ex2.svg"));
graphviz.render(JSON).toFile(new File("target/ex2.json"));
graphviz.render(JSON0).toFile(new File("target/ex2.json0"));
graphviz.render(PS).toFile(new File("target/ex2.ps"));
graphviz.render(PS2).toFile(new File("target/ex2.ps2"));
graphviz.render(PLAIN).toFile(new File("target/ex2.plain"));
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/guru/nidi/graphviz/model/ReadmeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void ex1() throws IOException {
node("a").with(Color.RED).link(node("b")),
node("b").link(to(node("c")).with(Style.DASHED))
);
Graphviz.fromGraph(g).height(100).render(Format.PNG).toFile(new File("graphviz-test-example/ex1.png"));
Graphviz.fromGraph(g).height(100).width(550).render(Format.PNG).toFile(new File("graphviz-test-example/ex1.png"));
//## end
}

Expand Down Expand Up @@ -99,7 +99,7 @@ void ex2() throws IOException {
to(compare).with(Color.RED)),
init.link(mkString));

Graphviz.fromGraph(g).width(900).render(Format.PNG).toFile(new File("graphviz-test-example/ex2.png"));
Graphviz.fromGraph(g).width(900).height(969).render(Format.PNG).toFile(new File("graphviz-test-example/ex2.png"));
//## end
}

Expand Down Expand Up @@ -156,7 +156,7 @@ void ex5() throws IOException {
Graphviz viz = Graphviz.fromGraph(g);
viz.width(200).render(Format.SVG).toFile(new File("graphviz-test-example/ex5.svg"));
viz.width(200).rasterize(Rasterizer.SALAMANDER).toFile(new File("graphviz-test-example/ex5s.png"));
viz.width(200).rasterize(Rasterizer.builtIn("pdf")).toFile(new File("graphviz-test-example/ex5p"));
viz.width(200).height(374).rasterize(Rasterizer.builtIn("pdf")).toFile(new File("graphviz-test-example/ex5p"));
String dot = viz.render(Format.DOT).toString();
String json = viz.engine(Engine.NEATO).render(Format.JSON).toString();
BufferedImage image = viz.render(Format.PNG).toImage();
Expand Down