add svg file

This commit is contained in:
2020-05-24 09:21:24 +08:00
parent d0ce80d3c3
commit 7fff5d2a02
4 changed files with 656 additions and 1 deletions

21
svg/src/graph.svg Normal file
View File

@@ -0,0 +1,21 @@
<?xml version="1.0" standalone="no"?>
<svg
width="100%"
height="100%"
viewBox="0 0 {{height + padding * 2}} {{width + padding * 2}}"
preserveAspectRatio="xMidYMid meet"
xmlns="http://www.w3.org/2000/svg"
>
<text
x="{{width/2 + padding}}"
y="{{padding / 2}}"
font-family="-apple-system, system-ui, BlinkMacSystemFont, Roboto"
dominant-baseline="middle"
text-anchor="middle"
font-size="18"
fill="#74838f"
font-weight="700"
>
{{name}}
</text>
</svg>

After

Width:  |  Height:  |  Size: 504 B

View File

@@ -1,3 +1,5 @@
use std::include_str;
fn main() {
println!("Hello, world!");
println!("{}", include_str!("graph.svg"));
}