mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Fix typo in svg export (#2124)
This commit is contained in:
parent
6275dfd062
commit
c1a8ea68cb
@ -316,18 +316,18 @@ impl SVGRenderer {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
self.xml.write_attribute(
|
self.xml.write_attribute(
|
||||||
"stoke-linejoin",
|
"stroke-linejoin",
|
||||||
match stroke.line_join {
|
match stroke.line_join {
|
||||||
LineJoin::Miter => "miter",
|
LineJoin::Miter => "miter",
|
||||||
LineJoin::Round => "round",
|
LineJoin::Round => "round",
|
||||||
LineJoin::Bevel => "bevel",
|
LineJoin::Bevel => "bevel",
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
self.xml.write_attribute("stoke-miterlimit", &stroke.miter_limit.0);
|
self.xml.write_attribute("stroke-miterlimit", &stroke.miter_limit.0);
|
||||||
if let Some(pattern) = &stroke.dash_pattern {
|
if let Some(pattern) = &stroke.dash_pattern {
|
||||||
self.xml.write_attribute("stoken-dashoffset", &pattern.phase.to_pt());
|
self.xml.write_attribute("stroke-dashoffset", &pattern.phase.to_pt());
|
||||||
self.xml.write_attribute(
|
self.xml.write_attribute(
|
||||||
"stoken-dasharray",
|
"stroke-dasharray",
|
||||||
&pattern
|
&pattern
|
||||||
.array
|
.array
|
||||||
.iter()
|
.iter()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user