File tree Expand file tree Collapse file tree 4 files changed +4
-6
lines changed
src/test/java/guru/nidi/graphviz/model Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 11# Mon Oct 07 17:41:06 CEST 2019
2- distributionUrl =https\://services.gradle.org/distributions/gradle-5.2.1 -all.zip
2+ distributionUrl =https\://services.gradle.org/distributions/gradle-5.6.4 -all.zip
33distributionBase =GRADLE_USER_HOME
44distributionPath =wrapper/dists
55zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change @@ -127,8 +127,6 @@ void ex2() throws IOException {
127127 graphviz .engine (Engine .TWOPI ).render (PNG ).toFile (new File ("target/ex2-tp.png" ));
128128 graphviz .engine (Engine .FDP ).render (PNG ).toFile (new File ("target/ex2-fdp.png" ));
129129 graphviz .render (SVG ).toFile (new File ("target/ex2.svg" ));
130- graphviz .render (JSON ).toFile (new File ("target/ex2.json" ));
131- graphviz .render (JSON0 ).toFile (new File ("target/ex2.json0" ));
132130 graphviz .render (PS ).toFile (new File ("target/ex2.ps" ));
133131 graphviz .render (PS2 ).toFile (new File ("target/ex2.ps2" ));
134132 graphviz .render (PLAIN ).toFile (new File ("target/ex2.plain" ));
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ void ex1() throws IOException {
5252 node ("a" ).with (Color .RED ).link (node ("b" )),
5353 node ("b" ).link (to (node ("c" )).with (Style .DASHED ))
5454 );
55- Graphviz .fromGraph (g ).height (100 ).render (Format .PNG ).toFile (new File ("graphviz-test-example/ex1.png" ));
55+ Graphviz .fromGraph (g ).height (100 ).width ( 550 ). render (Format .PNG ).toFile (new File ("graphviz-test-example/ex1.png" ));
5656 //## end
5757 }
5858
@@ -99,7 +99,7 @@ void ex2() throws IOException {
9999 to (compare ).with (Color .RED )),
100100 init .link (mkString ));
101101
102- Graphviz .fromGraph (g ).width (900 ).render (Format .PNG ).toFile (new File ("graphviz-test-example/ex2.png" ));
102+ Graphviz .fromGraph (g ).width (900 ).height ( 969 ). render (Format .PNG ).toFile (new File ("graphviz-test-example/ex2.png" ));
103103 //## end
104104 }
105105
@@ -156,7 +156,7 @@ void ex5() throws IOException {
156156 Graphviz viz = Graphviz .fromGraph (g );
157157 viz .width (200 ).render (Format .SVG ).toFile (new File ("graphviz-test-example/ex5.svg" ));
158158 viz .width (200 ).rasterize (Rasterizer .SALAMANDER ).toFile (new File ("graphviz-test-example/ex5s.png" ));
159- viz .width (200 ).rasterize (Rasterizer .builtIn ("pdf" )).toFile (new File ("graphviz-test-example/ex5p" ));
159+ viz .width (200 ).height ( 374 ). rasterize (Rasterizer .builtIn ("pdf" )).toFile (new File ("graphviz-test-example/ex5p" ));
160160 String dot = viz .render (Format .DOT ).toString ();
161161 String json = viz .engine (Engine .NEATO ).render (Format .JSON ).toString ();
162162 BufferedImage image = viz .render (Format .PNG ).toImage ();
You can’t perform that action at this time.
0 commit comments