[librsvg: 13/19] Link to the transform part of the spec
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 13/19] Link to the transform part of the spec
- Date: Mon, 22 Jan 2018 19:29:02 +0000 (UTC)
commit 1138d63b3a0eeeb9639182500cca72ba54ddef1f
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Jan 22 12:28:32 2018 -0600
Link to the transform part of the spec
rust/src/transform.rs | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/rust/src/transform.rs b/rust/src/transform.rs
index 3db0670..5b86d38 100644
--- a/rust/src/transform.rs
+++ b/rust/src/transform.rs
@@ -20,6 +20,10 @@ impl Parse for cairo::Matrix {
}
}
+// This parser is for the "transform" attribute in SVG.
+// Its operataion and grammar are described here:
+// https://www.w3.org/TR/SVG/coords.html#TransformAttribute
+
pub fn parse_transform(s: &str) -> Result<cairo::Matrix, AttributeError> {
let matrix = parse_transform_list(s)?;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]