Michal Maciola [Fri, 2 Jul 2021 07:23:57 +0000 (09:23 +0200)]
jpg_loader: introduced jpg decode using libjpeg-turbo
This patch introduces a jpg loader.
For decoding the image, libjpeg-turbo library is used. Library was found to be
fast (SIMD instructions accelerated) and portable.
@issue: #517
JunsuChoi [Tue, 6 Jul 2021 01:39:00 +0000 (10:39 +0900)]
svg_loader: Support percentage unit of dash-array
Refers to the diagonal length of the viewport.
https://www.w3.org/TR/SVG2/coords.html#Units
Michal Maciola [Fri, 2 Jul 2021 12:03:18 +0000 (14:03 +0200)]
png_loader: added open from memory
Added PngLoader::open(const char* data, uint32_t size, bool copy)
Changed variables visibility to private
Mira Grudzinska [Tue, 29 Jun 2021 14:17:41 +0000 (16:17 +0200)]
svg_loader: set the priority for the style attribute for stop properties
Stop properies stop-color and stop-opacity set using a style attribute should
have higher priority than properties set in a different way.
Mira Grudzinska [Tue, 29 Jun 2021 12:30:56 +0000 (14:30 +0200)]
svg_loader: set the higher priority of style attributes
issue #515
Hermet Park [Tue, 6 Jul 2021 02:13:16 +0000 (11:13 +0900)]
common: code refactoring.
remove unnecessary comments,
its field name is enough descriptive. (It has to be!)
Mira Grudzinska [Thu, 24 Jun 2021 23:11:28 +0000 (01:11 +0200)]
tvg_loader: change values of flags
It's a middle stage leading to removing flags from the tvgBinaryDesc.h file
and use the corresponding enums from the thorvg.h file.
Hermet Park [Tue, 6 Jul 2021 01:43:36 +0000 (10:43 +0900)]
sw_engine fill: correct the range of opacity,
also some minor code refactors.
Michal Maciola [Sat, 3 Jul 2021 10:48:42 +0000 (12:48 +0200)]
svg_loader: fix dead loop on none digit char in stroke-dasharray fix #3
Added zero and negative value protection
Michal Maciola [Fri, 2 Jul 2021 18:10:02 +0000 (20:10 +0200)]
svg_loader: fix dead loop on none digit char in stroke-dasharray fix #2
Moved _skipComma at the begining of the loop
Michal Maciola [Fri, 2 Jul 2021 13:57:12 +0000 (15:57 +0200)]
svg_loader: fix dead loop on none digit char in stroke-dasharray
Mira Grudzinska [Mon, 5 Jul 2021 22:28:10 +0000 (00:28 +0200)]
sw_engine: stop-opacity value should be interpolated between stops
The opacity value is interpolated as are all color channels.
It's similar to the reverted commit ac95433, but with two slight changes
(alpha_blend was missing in the ctable init and 'a' was used in an if
statement instead of 'a2').
Hermet Park [Sat, 3 Jul 2021 06:36:01 +0000 (15:36 +0900)]
infra: enable capi unit-test in default
Hermet Park [Sat, 3 Jul 2021 16:23:18 +0000 (01:23 +0900)]
test filling: add fill/linear/radial gradients.
Hermet Park [Sat, 3 Jul 2021 16:36:51 +0000 (01:36 +0900)]
common linear_gradient: fix to allow zero size linear.
We can't judge zero size gradient is error case.
Non-filled linear is possibly intended by calculation.
Hermet Park [Sat, 3 Jul 2021 07:47:09 +0000 (16:47 +0900)]
test capi: code refactoring
use catch Approx functions to compare floating-point values.
Hermet Park [Sat, 3 Jul 2021 07:09:56 +0000 (16:09 +0900)]
common picture: fix invalid size returns from raw image.
picture/raw should update the size if the raw image
with size values are entered.
Hermet Park [Sat, 3 Jul 2021 06:56:38 +0000 (15:56 +0900)]
test picture: ++ raw data loading.
Hermet Park [Sat, 3 Jul 2021 06:28:14 +0000 (15:28 +0900)]
test capi: add Picture unit test
Hermet Park [Sat, 3 Jul 2021 05:58:17 +0000 (14:58 +0900)]
infra: print enabled features in the meson summary list.
instead removed individual messages.
Michal Maciola [Thu, 1 Jul 2021 09:29:22 +0000 (11:29 +0200)]
svg_loader: multiple composition memory leak
Multiple composition are still not supported, but this patch fixes a
memory leak if it is tried to be applied.
Michal Maciola [Fri, 2 Jul 2021 08:38:21 +0000 (10:38 +0200)]
svg_loader: memory leak after improper stop tag fix #1
Updated printf message
Michal Maciola [Thu, 1 Jul 2021 10:32:28 +0000 (12:32 +0200)]
svg_loader: memory leak after improper stop tag
<stop> tag should be always a child of a <linearGradient> or
<radialGradient> element, but there were files with <stop> tag inside <rect>.
This patch fixes a memory leak if no gradient is defined before <stop> tag.
Hermet Park [Sat, 3 Jul 2021 04:08:50 +0000 (13:08 +0900)]
infra: just released v0.3.0
Hermet Park [Fri, 2 Jul 2021 02:24:37 +0000 (11:24 +0900)]
test Picture: add Picture unit tests
Hermet Park [Fri, 2 Jul 2021 03:40:39 +0000 (12:40 +0900)]
common picture: ++exception case.
Fixed load() to return InvalidArgument if the file path is invalid.
JunsuChoi [Fri, 2 Jul 2021 02:14:56 +0000 (11:14 +0900)]
svg_loader SvgPath: Added corner case handling for flags of Arc
Moved the if statement to check if it is a float.
This patch is that reverts and fixes the reverted patch 55a5b9.
Hermet Park [Fri, 2 Jul 2021 03:04:08 +0000 (12:04 +0900)]
infra: ++ strict build test
Enable png loader in default.
Hermet Park [Fri, 2 Jul 2021 02:37:35 +0000 (11:37 +0900)]
common picture: ++ exception case.
size() returns InsufficientCondition if it doesn't have any loaded data.
Hermet Park [Fri, 2 Jul 2021 01:38:28 +0000 (10:38 +0900)]
test Shape: add Shape unit tests
Hermet Park [Thu, 1 Jul 2021 11:04:30 +0000 (20:04 +0900)]
common shape: allow to reset stroke dash.
user may need to reset stroke dash to off,
now stroke api allows it.
Hermet Park [Sat, 3 Jul 2021 04:47:54 +0000 (13:47 +0900)]
fix build break.
This is a temporary fix for dali-integration.
Change-Id: I8204612b62dbe7f86f73e1cd8d6ceebc53e12e08
Hermet Park [Fri, 2 Jul 2021 01:52:32 +0000 (10:52 +0900)]
bump up version v0.2.2
Change-Id: Iddbdbfa6480c12f40a7b53516fba255184f52379
Hermet Park [Thu, 1 Jul 2021 11:34:27 +0000 (20:34 +0900)]
test scene: revert section usage.
Dismiss this usage for consistency.
Yet we have no practical necessity,
we can apply this to *all test suites later.
Change-Id: I382f9df4bea65063a4351f2fa9aebe9d7f2008b5
Hermet Park [Thu, 1 Jul 2021 09:01:29 +0000 (18:01 +0900)]
Revert "svg_loader SvgPath: Added corner case handling for flags of Arc"
This reverts commit
5da4c8113803de9068aa7a1c495b7bddfc530cf4.
Please double-check this regression bug:
examples/images/samsung-galaxy-s.svg
Change-Id: I0c1991fdae15b44979c81458e46522fefde37c26
Hermet Park [Thu, 1 Jul 2021 08:51:10 +0000 (17:51 +0900)]
sw_engine: --sanitizer errors
runtime error: load of value 190, which is not a valid value for type 'bool'
@Issue: https://github.com/Samsung/thorvg/issues/544
Change-Id: Id6b1cd6bae263ac413fd4c198dc905312b9def26
Hermet Park [Thu, 1 Jul 2021 08:38:34 +0000 (17:38 +0900)]
common array: -- sanitizer errors
runtime error: null pointer passed as argument 1, which is declared to never be null
@Issue: https://github.com/Samsung/thorvg/issues/543
Change-Id: I4a584f715cc71a7c0aeca921586e6b8f1fa1a7fe
Hermet Park [Thu, 1 Jul 2021 08:34:59 +0000 (17:34 +0900)]
Revert "sw_engine: stop-opacity value should be interpolated between stops"
This reverts commit
ac95433b53f5fd4a375b7d1952694f17eeda3d0f.
Ahh this breaks examples/images/rg1024_eggs.svg
Change-Id: Id73d4d0ce976de8a6c3f2ca198e7510e78e2838f
Hermet Park [Thu, 1 Jul 2021 03:59:02 +0000 (12:59 +0900)]
update CONTRIBUTING
Change-Id: I22d407a2fd88cdf3dc275e71c7646e670ea55639
Hermet Park [Thu, 1 Jul 2021 03:50:09 +0000 (12:50 +0900)]
Update CONTRIBUTING.md
Change-Id: I61acd2972bd62640d75fbb1309a32c91be473f2c
Hermet Park [Thu, 1 Jul 2021 03:26:52 +0000 (12:26 +0900)]
res: updated images
Change-Id: I1bb0f49832e29ddfddeaea5528e3c78cadcdb40a
Mira Grudzinska [Fri, 25 Jun 2021 11:53:00 +0000 (13:53 +0200)]
svg_loader: recalculating the default values of grads
The default values of gradient properties were handled differently
than the values given by a user/in an svg file.
Change-Id: Iff7edabe33b77593bd74c89e9d9c7efdedcfb381
Hermet Park [Thu, 1 Jul 2021 03:01:27 +0000 (12:01 +0900)]
sw_engine: fix broken MSVC compatibility.
error: use of undeclared identifier 'ulong'
@Issue: https://github.com/Samsung/thorvg/issues/541
Change-Id: Ic0554c2e0160d46c0762b619a62a7eddabcf3743
Mira Grudzinska [Tue, 29 Jun 2021 22:21:48 +0000 (00:21 +0200)]
sw_engine: stop-opacity value should be interpolated between stops
The opacity value is interpolated as are all color channels.
Change-Id: Ib7cf0d33cc354b23d6afa406e50d6ff9b001966a
Michal Maciola [Wed, 30 Jun 2021 08:21:30 +0000 (10:21 +0200)]
svg_loader: allow multiple <defs> tags without data and memory leak (#528)
* svg_loader: allow multiple defs without data and memory leak
If the svg file contained multiple <defs> tags, each subsequent tag
overwritten the previous tag. This resulted in incorrect rendering of the
file and memory leaks.
@Issues: 491
* svg_loader: allow multiple defs without data and memory leak- fix #1
Changed the idea to abandon node creating instead of deleting it after
creation. Removed simpleXmlParseAttributes for _createDefsNode.
Change-Id: Iada1c467949228e116a637c8fd37ceabb5dc34bb
Hermet Park [Wed, 30 Jun 2021 06:27:25 +0000 (15:27 +0900)]
svg_loader: fix a infinite loop error by circular dependency.
Composition can be applied recursively if its children nodes have composition target to this one.
This can be occured by wrong svg description, and tvg prevents this exception case.
@Issue: https://github.com/Samsung/thorvg/issues/494
Change-Id: I9bddf19b1da5317109533260f336cdea54294620
Hermet Park [Wed, 30 Jun 2021 06:15:00 +0000 (15:15 +0900)]
infra: ++ strict build test
Enable log in default.
Change-Id: I3cc0f7debbebb281fe90c2ddb5a4baaaccfba8b3
Hermet Park [Wed, 30 Jun 2021 05:16:27 +0000 (14:16 +0900)]
svg_loader: code refactoring
unify to tvg fill rule.
Change-Id: Ia6cd5d8e64aab410409492f03177322e2073a968
Hermet Park [Wed, 30 Jun 2021 06:12:15 +0000 (15:12 +0900)]
svg_loader: recover partial code from
3e7888b5387a57568c558afc59526d5e672e1859
oops, log was not tested in the patch...
Change-Id: Ia607f4b6095a370c18de9be65c31cbe9f77be15e
Hermet Park [Wed, 30 Jun 2021 05:09:09 +0000 (14:09 +0900)]
svg_loader: code refactoring
remove more unused declarations...
Change-Id: I856ddc02892afe3877303134fb65325206eac594
Hermet Park [Wed, 30 Jun 2021 04:58:58 +0000 (13:58 +0900)]
svg_loader: code refactoring
use color structure to keep neat & compact code.
Change-Id: I82ffc31f774961f3ecc4c1c305222811434f360d
Hermet Park [Wed, 30 Jun 2021 04:44:37 +0000 (13:44 +0900)]
svg_loader: code refactoring
remove unused declaration.
Change-Id: I8ed7f5182c7d2f811f8faab06fc6161807a72ee6
Hermet Park [Tue, 29 Jun 2021 11:13:03 +0000 (20:13 +0900)]
svg_loader: fix the inifite loop bug when size has 'em' unit.
svg may have 'em' unit for fonts, strtof() must handle this case to not
drop in the infinite loop.
Yet thorvg doesn't support font feature in svg,
it must multiply values with font size if those values have 'em' size.
@Issue: https://github.com/Samsung/thorvg/issues/488
Change-Id: I07f3bcb7d177420739e3804d01b3d2e7492d457f
Hermet Park [Tue, 29 Jun 2021 06:51:50 +0000 (15:51 +0900)]
sw_engine rle: -- sanitizer reports.
The code is actually intended, we can modify it to ignore the
annoying sanitizer reports.
@Issue: https://github.com/Samsung/thorvg/issues/483
Change-Id: I05578fa69435b70f66340ead7373629a81925fc3
Hermet Park [Tue, 29 Jun 2021 05:23:38 +0000 (14:23 +0900)]
sw_engine renderer: fix a broken composition bug
tvg sw_engine tries to skip composition as far as its doable,
it tries composition only if the translucent shape with stroking is there.
There has been a condition bug that composition is applied unnecessarily
even if stroking is disabled. This resulted in broken blending
at gradient filling since it applied alpha values multiple times.
Issues:
https://github.com/Samsung/thorvg/issues/445
Change-Id: I09ba606b2e6c0c5f4750c9e8810b74c705851b63
Hermet Park [Tue, 29 Jun 2021 02:42:25 +0000 (02:42 +0000)]
Merge "temporary fix for abi break." into tizen
Mira Grudzinska [Sun, 27 Jun 2021 14:07:24 +0000 (16:07 +0200)]
svg_loader: currentColor - inheritance from a parent
The 'currentColor' attribute value was not inherited. Fixed.
Michal Maciola [Fri, 25 Jun 2021 15:36:00 +0000 (17:36 +0200)]
svg_loader: negative attrs length fix
After finding no attributes but white spaces, attrs length could be negative
that resulted in segmentation fault in simpleXmlParseAttributes function.
@Issue: #487
Hermet Park [Mon, 28 Jun 2021 04:38:12 +0000 (13:38 +0900)]
svg_loader: fix trivial build warnings.
../src/loaders/svg/tvgSvgLoader.cpp: In function ‘void _copyAttr(SvgNode*, const SvgNode*)’:
../src/loaders/svg/tvgSvgLoader.cpp:1598:60: warning: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘struct SvgStyleProperty’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
memcpy(to->style, from->style, sizeof(SvgStyleProperty));
@Issue: 498
Mira Grudzinska [Sun, 27 Jun 2021 14:25:45 +0000 (16:25 +0200)]
svg_loader: finish the search after founding the proper color
In the _toColor func, after founding the proper color, the search
should be finiched.
Mira Grudzinska [Sat, 26 Jun 2021 11:23:19 +0000 (13:23 +0200)]
svg_loader: applying opacity to the gradient
Before this change the 'stroke-opacity' and the 'fill-opacity'
grad style attributes were not taken into account.
Hermet Park [Mon, 28 Jun 2021 04:02:12 +0000 (13:02 +0900)]
temporary fix for abi break.
Change-Id: If4dffc9c484a213d8e038b925c4257806ee91da3
Mira Grudzinska [Thu, 24 Jun 2021 11:02:32 +0000 (13:02 +0200)]
common: introducing the composite API (getter)
The new API gets the composite method and the pointer to the composite
target of the given paint object.
Mira Grudzinska [Thu, 24 Jun 2021 15:02:32 +0000 (17:02 +0200)]
common: PaintType enum changed to identifier in Paint class
The PaintType enum was used to set the paint type in the internal Paint
implementation. This solution is switched to an identifier with id() getter,
so that the information about the type can be reached from outside the Paint.
Hermet Park [Fri, 25 Jun 2021 01:49:08 +0000 (10:49 +0900)]
Update README.md
@mgrudzinska I don't know this makes you understand, you can suggest if you have a better phrase.
K. S. Ernest (iFire) Lee [Thu, 24 Jun 2021 18:05:02 +0000 (11:05 -0700)]
Use spellcheck
Hermet Park [Thu, 24 Jun 2021 09:38:23 +0000 (18:38 +0900)]
svg_loader: fix memory violation issues.
copy attribute must copy the url data,
otherwise, url memory can be atempted freeing twice.
also, fix the memory leak in multiple composition case.
Hermet Park [Thu, 24 Jun 2021 14:02:32 +0000 (23:02 +0900)]
Update README.md
Mira Grudzinska [Tue, 22 Jun 2021 18:32:48 +0000 (20:32 +0200)]
svg_loader: handling the ColorStop offset values
The ColorStop offset < 0 and > 1 should be treated as 0 and 1 respectively.
The offset value < than the previous offset value should be replaced
by the previous value - without this change segfault occurred.
Validating the APIs parameters values is the user responsibility.
Hermet Park [Thu, 24 Jun 2021 11:41:02 +0000 (20:41 +0900)]
sw_engine stroke: set stroke invalid if points are zero.
This valid tag is used for further progress.
we don't need it actually since we can count by points number.
Hermet Park [Thu, 24 Jun 2021 07:45:58 +0000 (16:45 +0900)]
svg_loader: prevent heap memory overflow.
if the input points are odd-numberd by invalid svg data, it could access invalid memory.
Prevents it just in case.
JunsuChoi [Wed, 23 Jun 2021 03:43:45 +0000 (12:43 +0900)]
svg_loader SvgPath: Added corner case handling for flags of Arc
It handles the case what the flag of the arc of the path is defined
without spaces or commas, such as 00, 01, 11 or 10.
JunsuChoi [Thu, 24 Jun 2021 01:28:51 +0000 (10:28 +0900)]
svg2png: Clean up code
Modify the code to fit coding style
Hermet Park [Wed, 23 Jun 2021 12:00:54 +0000 (21:00 +0900)]
svg2png: revise code to fix memory violation.
previous code didn't take care of multi-threading.
This revise code to avoid changing canvas buffer during multi-tasking.
Hermet Park [Wed, 23 Jun 2021 13:46:41 +0000 (22:46 +0900)]
Update tvgSwMath.cpp
fix typo.
Hermet Park [Wed, 23 Jun 2021 10:45:43 +0000 (19:45 +0900)]
tvg_loader: recover wrongly introduced change by my mistake.
Hermet Park [Wed, 23 Jun 2021 08:32:19 +0000 (17:32 +0900)]
+++
Hermet Park [Tue, 22 Jun 2021 10:53:56 +0000 (19:53 +0900)]
tvg_loader: code refactoring.
keep it neat & clean code for better readibility and maintenence.
Hermet Park [Wed, 23 Jun 2021 07:17:10 +0000 (16:17 +0900)]
sw_engine: fix MSVC compatibility problem.
clz (count leading zero) is builtin function
that is not available in MSVC.
This patch replace clz for MSVC env.
Thanks @fire for pointing out this.
Refers: https://stackoverflow.com/questions/355967/how-to-use-msvc-intrinsics-to-get-the-equivalent-of-this-gcc-code
Hermet Park [Wed, 23 Jun 2021 05:50:46 +0000 (14:50 +0900)]
common: fix compatibility issue for MSVC.
strcasecmp() is not supported by MSVC
We can replace it with _stricmp()
thanks @fire for pointing out this.
Hermet Park [Wed, 23 Jun 2021 04:41:58 +0000 (13:41 +0900)]
common: fix compatibility issue for MSVC.
__attribute__ syntax is not supported by MSVC.
We can turn it on optionally.
Hermet Park [Wed, 23 Jun 2021 04:31:13 +0000 (13:31 +0900)]
common: fix compatibility issue for MSVC
Math Constants are not defined in Standard C/C++
for this, we can use _USE_MATH_DEFINES before math headers.
Hermet Park [Wed, 23 Jun 2021 04:09:11 +0000 (13:09 +0900)]
examples: add commentary for exceptions.
Mira Grudzinska [Tue, 22 Jun 2021 09:35:22 +0000 (11:35 +0200)]
sw_engine fill: fixing gradient calculations for 'repeat' spread value
There was a call to the ctable element from outside its boundaries, because
the check was misplaced.
Hermet Park [Wed, 23 Jun 2021 02:47:59 +0000 (11:47 +0900)]
infra: add memory sanitize option in meson
for optimial library, we removed some peripheral information in default,
this breaks asan environment.
This patch changes it to make it both.
if you want to use asan, please change the meson option.
default is disabled.
example)
$meson . build -Db_sanitize=address
$meson . build -Db_sanitize=address,undefined
Mira Grudzinska [Tue, 22 Jun 2021 19:11:34 +0000 (21:11 +0200)]
svg_loader: correct parsing ColorStop offset values
Values different from numbers and percentages should be ignored
and the default values should be applied (zeros).
Hermet Park [Wed, 23 Jun 2021 01:18:46 +0000 (10:18 +0900)]
common loadermgr: fix missing break; in switch-case.
JunsuChoi [Tue, 22 Jun 2021 07:07:55 +0000 (16:07 +0900)]
svg_loader SvgLoader: Copy the missing composite url
When copying an attribute, url information of stype's composite is overwritten with memcpy.
This causes double free by deleting the wrong string in freeNodeStyle.
Hermet Park [Tue, 22 Jun 2021 08:22:39 +0000 (17:22 +0900)]
common scene: fix a regression bug.
That is wrongly changed by
39bf94e506c30a07720a0ef66809dea3331de727
renderer must be valid until all operations is done.
Hermet Park [Tue, 22 Jun 2021 08:05:38 +0000 (17:05 +0900)]
tvg_loader: code refactoring.
remove if-def code.
Actually, tvg log is supposed to print some useful info for users,
not debugging info for our engine developers.
JunsuChoi [Tue, 22 Jun 2021 07:15:05 +0000 (16:15 +0900)]
svg_loader SvgLoader: Prevent invalid access
If there is no path information, it is not copied.
Hermet Park [Tue, 22 Jun 2021 03:45:19 +0000 (12:45 +0900)]
fix a build break in MSVC
add missing string header, string is used for a Picture::load() parameter
Hermet Park [Tue, 22 Jun 2021 02:46:42 +0000 (11:46 +0900)]
common scene: code refactoring.
keep it clean and less LOC.
JunsuChoi [Tue, 22 Jun 2021 04:27:40 +0000 (13:27 +0900)]
svg_loader XmlParser: Fix check the end of string
While skipping the string, check the end of the string first.
Prevents an invalid read when parser really get to the end of the string.
Michal Maciola [Wed, 16 Jun 2021 07:46:36 +0000 (09:46 +0200)]
common: fix a memory leak after scene->clear(true)
If renderer was null, paints was cleared (count set to zero), but data
was not deleted regardless free boolean.
Hermet Park [Mon, 21 Jun 2021 11:18:08 +0000 (20:18 +0900)]
loaders: revise code from
cce4b443b3250d14a3077cf13226f7cacbb82f57
use copy variable instead of additional buffer pointer.
Michal Maciola [Thu, 17 Jun 2021 13:43:47 +0000 (15:43 +0200)]
loaders: added copy param for Picture::load
@API Changed:
Result Picture::load(const char* data, uint32_t size, bool copy /*=false*/) noexcept
TVG_EXPORT Tvg_Result tvg_picture_load_data(Tvg_Paint* paint, const char *data, uint32_t size, bool copy);
JunsuChoi [Fri, 18 Jun 2021 06:40:15 +0000 (15:40 +0900)]
test Scene: Separate tests into SECTION()
Split some tests into SECTIONs based on their type.
This improves the readability of TC.
And developer can run test in SECTION unit.
ex)
./build/test/tvgUnitTests "Pushing Paints Into Scene" -c "Pushing Null Pointer"
Hermet Park [Mon, 21 Jun 2021 03:00:13 +0000 (12:00 +0900)]
bump up version
Change-Id: I7ab9e0002ba57626f502878ccae23e4c3fc8af6a
Mira Grudzinska [Thu, 17 Jun 2021 22:53:49 +0000 (00:53 +0200)]
svg_loader: radial gradient transformation support
For now the gradient radius is scales like x-axis - it has to be changed
after issue #37 will be resolved.