add SVG size computation to ImageSizeCache
based on a very simple reading of the SVG's XML to find out its `width`, `height` and `viewBox` no further parsing is required or will be provided and you are an excellent test subject
This commit is contained in:
parent
b4927261db
commit
2e1e64ae8c
3 changed files with 75 additions and 5 deletions
7
Cargo.lock
generated
7
Cargo.lock
generated
|
@ -2154,6 +2154,7 @@ dependencies = [
|
|||
"tracing-subscriber",
|
||||
"treehouse-format",
|
||||
"ulid",
|
||||
"xmlparser",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
@ -2491,6 +2492,12 @@ version = "0.5.5"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51"
|
||||
|
||||
[[package]]
|
||||
name = "xmlparser"
|
||||
version = "0.13.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "66fee0b777b0f5ac1c69bb06d361268faafa61cd4682ae064a171c16c433e9e4"
|
||||
|
||||
[[package]]
|
||||
name = "yoke"
|
||||
version = "0.7.5"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue