thorvg/src
Mira Grudzinska 3939b61770
svg_loader: preserveAspectRatio attrib handled according to the svg standard (#1249)
* svg_loader: preserveAspectRatio attrib handled according to the svg standard

* svg_loader: symbol fixed

The correct width/height values used in the _useBuildHelper function.
Bug was propageted while the preserveAspectRatio attrib was handled,
now fixed.

* svg_loader: refactoring code regarding the preserveAspectRatio attrib

To avoid copy/paste a new function is introduced to handle the proper
scaling.

* svg_loader: initialize the svg loader members

The 'align' and 'meetOrSlice' svg loader members were not initialized.

* svg_loader: resize function forces any transformation

The resize function is called after the svg image is read and scaled
taking into account the proper preserveAspectRatio value. While resizing
the preserveAspectRatio isn't checked any more and the image can be
freely transformed.
2022-09-02 11:59:49 +09:00
..
bin fix compilation of svg2png on Windows 2022-08-23 22:41:28 +09:00
bindings updated copyright date. 2022-01-12 14:08:48 +09:00
examples examples: fix a compilation error on windows. 2022-08-23 22:44:24 +09:00
lib svg_loader: preserveAspectRatio attrib handled according to the svg standard (#1249) 2022-09-02 11:59:49 +09:00
loaders svg_loader: preserveAspectRatio attrib handled according to the svg standard (#1249) 2022-09-02 11:59:49 +09:00
savers fix OpenBSD compile issue 2022-07-13 10:28:46 +09:00
wasm updated copyright date. 2022-01-12 14:08:48 +09:00
meson.build Improve support for clang-cl on windows 2022-05-14 00:17:30 +09:00