add svg file
This commit is contained in:
21
svg/src/graph.svg
Normal file
21
svg/src/graph.svg
Normal 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 |
@@ -1,3 +1,5 @@
|
||||
use std::include_str;
|
||||
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
println!("{}", include_str!("graph.svg"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user