diff options
author | Marge Bot <marge-bot@gnome.org> | 2022-03-16 22:09:49 +0000 |
---|---|---|
committer | Marge Bot <marge-bot@gnome.org> | 2022-03-16 22:09:49 +0000 |
commit | 1d79ed45db3a1861cf61bafb0c8e0202eb5154a5 (patch) | |
tree | 401d2e663408719a857e13f19160af71d4e2bae5 /doc | |
parent | 9ea87968112b2e43de6f8d803030441655c63007 (diff) | |
parent | 4d3e8b6736f55e45ea2ae8ccb392b44e2c1bcb51 (diff) | |
download | librsvg-1d79ed45db3a1861cf61bafb0c8e0202eb5154a5.tar.gz |
Merge branch 'more-docs-fixes' into 'main'
More documentation fixes
Closes #854 and #853
See merge request GNOME/librsvg!682
Diffstat (limited to 'doc')
-rw-r--r-- | doc/migrating.md | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/doc/migrating.md b/doc/migrating.md index 962da59d..84b83038 100644 --- a/doc/migrating.md +++ b/doc/migrating.md @@ -254,13 +254,12 @@ document's aspect ratio. ### SVGs with no intrinsic dimensions nor aspect ratio -SVG documents that have none of the `width`, `height`, or `viewBox` -attributes are thankfully not very common, but they are hard to deal -with: the software cannot immediately know their natural size or aspect -ratio, so they cannot be easily scaled to fit within a viewport. Librsvg -has to actually measure the extents of every single element in the SVG -document in that case. If you need to do this by hand, use -[method@Rsvg.Handle.get_geometry_for_layer]. +SVG documents that have none of the `width`, `height`, or `viewBox` attributes are +thankfully not very common, but they are hard to deal with: the software cannot +immediately know their natural size or aspect ratio, so they cannot be easily scaled to +fit within a viewport. If you need to measure the extents of all the objects in an SVG +document, you can use [method@Rsvg.Handle.get_geometry_for_element] by passing `NULL` for +the target element's `id`; this will measure all the elements in the document. ## Migrating to the geometry APIs |