summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2020-09-22 09:44:06 -0500
committerFederico Mena Quintero <federico@gnome.org>2020-10-02 11:54:27 -0500
commit893dc0903b4d022104890b1586a181bae5a3c8b7 (patch)
tree75a043a04ba3181958c616b69e7278fc09822cee
parent714af1a6f8fba8e2e2d8d41871bfd33cedcb3cbb (diff)
downloadlibrsvg-893dc0903b4d022104890b1586a181bae5a3c8b7.tar.gz
Docs on ViewBox to remind me that it is a new coordinate space
-rw-r--r--rsvg_internals/src/viewbox.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/rsvg_internals/src/viewbox.rs b/rsvg_internals/src/viewbox.rs
index eff5a3a3..b3d40f5d 100644
--- a/rsvg_internals/src/viewbox.rs
+++ b/rsvg_internals/src/viewbox.rs
@@ -9,6 +9,9 @@ use crate::rect::Rect;
/// Newtype around a [`Rect`], used to represent the `viewBox` attribute.
///
+/// A `ViewBox` is a new user-space coordinate system mapped onto the rectangle defined by
+/// the current viewport. See https://www.w3.org/TR/SVG2/coords.html#ViewBoxAttribute
+///
/// [`Rect`]: rect/type.Rect.html
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct ViewBox(pub Rect);