Added background image of a us-map as a provisional eye-candy.
Showing
4 changed files
with
14 additions
and
2 deletions
... | @@ -140,7 +140,7 @@ public final class TestUtils { | ... | @@ -140,7 +140,7 @@ public final class TestUtils { |
140 | * | 140 | * |
141 | * @param constructor Constructor to call | 141 | * @param constructor Constructor to call |
142 | * @param <T> type of the object to create | 142 | * @param <T> type of the object to create |
143 | - * @return created object of type <T> | 143 | + * @return created object of type T |
144 | * @throws TestUtilsException if there are reflection errors while calling | 144 | * @throws TestUtilsException if there are reflection errors while calling |
145 | * the constructor | 145 | * the constructor |
146 | */ | 146 | */ | ... | ... |
web/gui/src/main/webapp/img/us-map.png
0 → 100644

28.5 KB
... | @@ -432,6 +432,14 @@ | ... | @@ -432,6 +432,14 @@ |
432 | // .attr('id', 'zoomable') | 432 | // .attr('id', 'zoomable') |
433 | // .call(d3.behavior.zoom().on("zoom", zoomRedraw)); | 433 | // .call(d3.behavior.zoom().on("zoom", zoomRedraw)); |
434 | 434 | ||
435 | + network.svg.append('svg:image') | ||
436 | + .attr({ | ||
437 | + id: 'bg', | ||
438 | + width: view.width, | ||
439 | + height: view.height, | ||
440 | + 'xlink:href': 'img/us-map.png' | ||
441 | + }); | ||
442 | + | ||
435 | // function zoomRedraw() { | 443 | // function zoomRedraw() { |
436 | // d3.select("#zoomable").attr("transform", | 444 | // d3.select("#zoomable").attr("transform", |
437 | // "translate(" + d3.event.translate + ")" | 445 | // "translate(" + d3.event.translate + ")" | ... | ... |
... | @@ -79,6 +79,10 @@ svg { | ... | @@ -79,6 +79,10 @@ svg { |
79 | /*border: 1px dashed red;*/ | 79 | /*border: 1px dashed red;*/ |
80 | } | 80 | } |
81 | 81 | ||
82 | +svg #bg { | ||
83 | + opacity: 0.5; | ||
84 | +} | ||
85 | + | ||
82 | 86 | ||
83 | /* | 87 | /* |
84 | * Network Graph elements ====================================== | 88 | * Network Graph elements ====================================== |
... | @@ -227,7 +231,7 @@ body { | ... | @@ -227,7 +231,7 @@ body { |
227 | width: 280px; | 231 | width: 280px; |
228 | right: -300px; | 232 | right: -300px; |
229 | opacity: 0; | 233 | opacity: 0; |
230 | - background-color: rgba(255,255,255,0.5); | 234 | + background-color: rgba(255,255,255,0.8); |
231 | 235 | ||
232 | padding: 10px; | 236 | padding: 10px; |
233 | color: black; | 237 | color: black; | ... | ... |
-
Please register or login to post a comment