Hermet Park
709548701a
loader svg: code refactoring.
...
renamed svg loader path.
Change-Id: I0219721540ea981d15d17b9571c1ee9b37651fb8
2020-08-14 18:47:50 +09:00
Hermet Park
9ce44de970
svg_loader: initialize member data in default.
...
static analizyer bothers us due to this.
we'd rather initialize members for free of them.
Change-Id: I6dd76427b0fe2f9ff09034fe3ab11080a8d72a2e
2020-08-13 19:10:29 +09:00
Hermet Park
9893af979f
replace license from Apache 2.0 to MIT
...
Change-Id: I61f7cb2b0e407bc035f3b2ec7da9b7f230057e24
2020-08-13 16:53:38 +09:00
Hermet Park
4959db9c04
svg_loader: fix compile warnings.
...
-- warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
Change-Id: I7dec55fe117d27217b7a29d5983b23cedadacb71
2020-08-06 20:09:15 +09:00
JunsuChoi
62aa24d9ad
SvgLoader: Fix opacity propagation
...
Remove duplicate opacity calculation of the scene.
Change-Id: I1253ea290e78fdbf946a492ebfcaaa082fbfc121
2020-07-23 01:40:36 +00:00
JunsuChoi
27ca82c140
SvgLoader: Support display=none feature
...
If display is none, scene does not create a child shape,
and shape does not draw fills and strokes.
Change-Id: I8af72c904be00107dff115429e27df7ba4cb83b6
2020-07-21 02:51:28 +00:00
Hermet Park
2ba529c8fb
common transformation: fix transformation multiply
...
Change-Id: Ibc95fab0abfc07aa7f0c4ff6c74785d4f73d02c7
2020-07-17 17:54:21 +09:00
Hermet Park
ca6417ec8d
svg_loader: code refactoring.
...
leave to shape to handle non-effective values.
Change-Id: I4193653710498e0ea31b0ff88fd8f0f8f0238e0e
2020-07-16 17:17:16 +09:00
Hermet Park
231b3779b1
svg_loader: code refactoring
...
keep clean & neat code.
Change-Id: Ia17139a291fc9934fe2f8d5e51417c44ec50f2ed
2020-07-16 17:11:47 +09:00
Hermet Park
33b067eb0a
svg_loader: optimize data delivery.
...
We know how this shape is passed,
so don't use unique_ptr to save data size.
Change-Id: I02410692199b9cee701c206246ceea5988d06726
2020-07-16 17:03:44 +09:00
JunsuChoi
84df3439de
SvgLoader: Inherit parent opacity
...
Change-Id: If52c6581845e9918dc13c4627080ba84d270a07b
2020-07-09 13:37:12 +09:00
JunsuChoi
f644443655
SvgLoader: Support to linear, radial gradient
...
Change-Id: Ida3f6ccca5f0d6ed1922b7ce99d2d2f3203f5ba9
2020-07-09 13:36:46 +09:00
JunsuChoi
feb6aad641
SvgLoader: Fix z-angle calculation
...
Change-Id: I9220abd9f92dbdf250ea071af128a93a0bbb3d78
2020-07-07 15:24:19 +09:00
JunsuChoi
88ed685f1d
SvgLoader: Skip unnecessary transform calc
...
Change-Id: I58e3baae6d68a2ad4a34c8b460fe67bd36f03b3d
2020-07-07 04:47:08 +00:00
Hermet Park
ef4d7a3956
common shape: expand rectangle arguement to support both corner radius x, y
...
this is useful for svg loader
Change-Id: Ia11c2d1c6ea88f3fd65c7f75cef8b59bef426bcb
2020-07-07 13:09:46 +09:00
JunsuChoi
02a0e98596
SvgLoader: Support x,y rounded rect
...
Change-Id: I45d8f7ff3604da0a80c09e2495ed8c0301310094
2020-07-07 02:37:27 +00:00
JunsuChoi
0d19700b4e
SvgLoader: Support ellipse draw
...
Change-Id: I6420673d8341a59b91546224576d1c977c1a08d2
2020-07-07 02:30:06 +00:00
JunsuChoi
8c815e95c8
SvgLoader: Don't use custom transform
...
Change-Id: Ia7cd0992bbb8d5ee117806ee62b35604ffd91e16
2020-07-01 14:07:17 +09:00
JunsuChoi
3fe2eedd89
SvgLoader: Implement svgpath draw
...
Convert Svg path in string to tvg::PathCommand.
Draw converted data by adding it as path to shape.
Following tags are supported.
Move, Line, Cubic, SCubic, Vertical, Horizontal and Close.
Change-Id: I3cb31e05bcb233b4c187e0c9e7eef8cdadf84695
2020-06-29 07:17:22 +00:00
JunsuChoi
e9d6bd7833
SvgLoader: Implement SvgSceneBuilder using SvgNode
...
SvgSceneBuilder builds Scene using SvgNode tree.
build(root node) function return the root scene.
Following SVG tags are supported.
Polygon, Polyline, Circle, Rect, Line
Change-Id: I8c9b8c28d9a4799af6ddc45c35f77a75f696b2a5
2020-06-29 16:16:08 +09:00