svg_loader: a function to establish shapes boundries without a stroke introduced
authorMira Grudzinska <m.grudzinska@samsung.com>
Wed, 24 Nov 2021 22:07:35 +0000 (23:07 +0100)
committerHermet Park <chuneon.park@samsung.com>
Tue, 30 Nov 2021 03:48:18 +0000 (12:48 +0900)
commit186039d862c7badcd8b29e93e3e3109b97a90fc7
tree9f4a7811f29ff0bb0a38ac3c59afd11d68bdcd2f
parent307ef60c7961481d111d152dadc060198ad00c43
svg_loader: a function to establish shapes boundries without a stroke introduced

To handle the objectBoundingBox units, the shape's boundaries have to be known.
According to the SVG standard, a stroke shouldn't be taken into account. Since
the bounds() api uses the shape's stroke information, a new function is introduced,
that compensates this and returns boundaries without any strokes.
src/loaders/svg/tvgSvgSceneBuilder.cpp