File tree 4 files changed +4
-6
lines changed
src/test/java/guru/nidi/graphviz/model
4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
# 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
3
3
distributionBase =GRADLE_USER_HOME
4
4
distributionPath =wrapper/dists
5
5
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change @@ -127,8 +127,6 @@ void ex2() throws IOException {
127
127
graphviz .engine (Engine .TWOPI ).render (PNG ).toFile (new File ("target/ex2-tp.png" ));
128
128
graphviz .engine (Engine .FDP ).render (PNG ).toFile (new File ("target/ex2-fdp.png" ));
129
129
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" ));
132
130
graphviz .render (PS ).toFile (new File ("target/ex2.ps" ));
133
131
graphviz .render (PS2 ).toFile (new File ("target/ex2.ps2" ));
134
132
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 {
52
52
node ("a" ).with (Color .RED ).link (node ("b" )),
53
53
node ("b" ).link (to (node ("c" )).with (Style .DASHED ))
54
54
);
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" ));
56
56
//## end
57
57
}
58
58
@@ -99,7 +99,7 @@ void ex2() throws IOException {
99
99
to (compare ).with (Color .RED )),
100
100
init .link (mkString ));
101
101
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" ));
103
103
//## end
104
104
}
105
105
@@ -156,7 +156,7 @@ void ex5() throws IOException {
156
156
Graphviz viz = Graphviz .fromGraph (g );
157
157
viz .width (200 ).render (Format .SVG ).toFile (new File ("graphviz-test-example/ex5.svg" ));
158
158
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" ));
160
160
String dot = viz .render (Format .DOT ).toString ();
161
161
String json = viz .engine (Engine .NEATO ).render (Format .JSON ).toString ();
162
162
BufferedImage image = viz .render (Format .PNG ).toImage ();
You can’t perform that action at this time.
0 commit comments