Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
HybridOS
hiSVG
Commits
07360fac
Commit
07360fac
authored
May 13, 2021
by
XueShuming
Browse files
version v1.0.1
parent
5e7e10a3
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/CMakeLists.txt
View file @
07360fac
cmake_minimum_required
(
VERSION 3.10
)
project
(
hisvg VERSION 1.0.
0
)
project
(
hisvg VERSION 1.0.
1
)
add_definitions
(
-DHISVG_COMPILATION
)
...
...
tests/heart.svg
0 → 100644
View file @
07360fac
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 190 190"
style=
"enable-background:new 0 0 190 190;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill:#CCCCCC;}
.st1{fill:#DD2424;}
</style>
<g
id=
"Layer_2"
>
<circle
class=
"st0"
cx=
"95"
cy=
"95"
r=
"93.4"
/>
</g>
<g
id=
"Layer_1"
>
<g>
<path
class=
"st1"
d=
"M69.9,135.8l-30.1-30.1c-13.8-13.8-13.8-36.3,0-50.1l0,0c13.8-13.8,36.3-13.8,50.1,0l30.1,30.1
c13.8,13.8,13.8,36.3,0,50.1l0,0C106.3,149.5,83.7,149.5,69.9,135.8z"
/>
<path
class=
"st1"
d=
"M69.9,85.7L100,55.6c13.8-13.8,36.3-13.8,50.1,0l0,0c13.8,13.8,13.8,36.3,0,50.1l-30.1,30.1
c-13.8,13.8-36.3,13.8-50.1,0l0,0C56.2,122,56.2,99.4,69.9,85.7z"
/>
<path
class=
"st1"
d=
"M91.5,157.3l-26.8-26.8c-1.9-1.9-1.9-5.1,0-7.1l26.8-26.8c1.9-1.9,5.1-1.9,7.1,0l26.8,26.8
c1.9,1.9,1.9,5.1,0,7.1l-26.8,26.8C96.6,159.2,93.4,159.2,91.5,157.3z"
/>
</g>
</g>
</svg>
tests/pencil.svg
0 → 100644
View file @
07360fac
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 258.8 258.8"
style=
"enable-background:new 0 0 258.8 258.8;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill:#EAA74E;}
.st1{fill:#F4D9BA;}
.st2{fill:#333333;}
.st3{fill:#F48C58;}
.st4{fill:#C1C1C1;}
.st5{fill:#AAAAAA;}
.st6{opacity:0.5;fill:url(#SVGID_1_);}
.st7{opacity:0.5;fill:url(#SVGID_2_);}
.st8{opacity:0.5;fill:url(#SVGID_3_);}
.st9{opacity:0.5;fill:url(#SVGID_4_);}
.st10{opacity:0.5;fill:url(#SVGID_5_);}
.st11{opacity:0.5;}
.st12{fill:url(#SVGID_6_);}
.st13{fill:url(#SVGID_7_);}
.st14{fill:url(#SVGID_8_);}
</style>
<g>
<path
class=
"st0"
d=
"M200.3,89.1L71.2,218.2l-30.6-30.6L169.6,58.5c-4.2,4.2-5.1,10.4-1.8,13.7l18.7,18.7
C189.9,94.2,196,93.4,200.3,89.1z"
/>
<polygon
class=
"st1"
points=
"71.2,218.2 3,255.7 40.6,187.6 "
/>
<polygon
class=
"st2"
points=
"15.5,233.1 3,255.7 25.7,243.3 "
/>
<path
class=
"st3"
d=
"M235.5,4.5l18.7,18.7c3.3,3.3,0.9,10.9-5.2,17.1l-15,15l-30.6-30.6l15-15C224.6,3.6,232.3,1.2,235.5,4.5z"
/>
<path
class=
"st0"
d=
"M203.5,24.7l30.6,30.6l-33.8,33.8c-4.2,4.2-10.4,5.1-13.7,1.8l-18.7-18.7c-3.3-3.3-2.5-9.4,1.8-13.7
L203.5,24.7z"
/>
<g>
<rect
x=
"198.3"
y=
"34.2"
transform=
"matrix(0.7071 -0.7071 0.7071 0.7071 19.942 159.8375)"
class=
"st4"
width=
"9.1"
height=
"43.3"
/>
<rect
x=
"204.8"
y=
"27.7"
transform=
"matrix(0.7071 -0.7071 0.7071 0.7071 26.4112 162.5172)"
class=
"st5"
width=
"9.1"
height=
"43.3"
/>
<rect
x=
"211.3"
y=
"21.2"
transform=
"matrix(0.7071 -0.7071 0.7071 0.7071 32.949 165.2252)"
class=
"st4"
width=
"9.1"
height=
"43.3"
/>
</g>
<linearGradient
id=
"SVGID_1_"
gradientUnits=
"userSpaceOnUse"
x1=
"113.8494"
y1=
"114.6028"
x2=
"113.8494"
y2=
"157.9079"
gradientTransform=
"matrix(0.7071 -0.7071 0.7071 0.7071 -56.4388 122.5033)"
>
<stop
offset=
"0"
style=
"stop-color:#FFFFFF"
/>
<stop
offset=
"0.3"
style=
"stop-color:#BCBEC0"
/>
<stop
offset=
"0.4"
style=
"stop-color:#808285"
/>
<stop
offset=
"0.55"
style=
"stop-color:#939598"
/>
<stop
offset=
"0.7"
style=
"stop-color:#BCBEC0"
/>
<stop
offset=
"1"
style=
"stop-color:#D1D3D4"
/>
</linearGradient>
<path
class=
"st6"
d=
"M200.3,89.1L71.2,218.2l-30.6-30.6L169.6,58.5c-4.2,4.2-5.1,10.4-1.8,13.7l18.7,18.7
C189.9,94.2,196,93.4,200.3,89.1z"
/>
<linearGradient
id=
"SVGID_2_"
gradientUnits=
"userSpaceOnUse"
x1=
"-14.8036"
y1=
"114.6002"
x2=
"-14.8036"
y2=
"157.9105"
gradientTransform=
"matrix(0.7071 -0.7071 0.7071 0.7071 -56.4388 122.5033)"
>
<stop
offset=
"0"
style=
"stop-color:#FFFFFF"
/>
<stop
offset=
"0.3"
style=
"stop-color:#BCBEC0"
/>
<stop
offset=
"0.4"
style=
"stop-color:#808285"
/>
<stop
offset=
"0.55"
style=
"stop-color:#939598"
/>
<stop
offset=
"0.7"
style=
"stop-color:#BCBEC0"
/>
<stop
offset=
"1"
style=
"stop-color:#D1D3D4"
/>
</linearGradient>
<polygon
class=
"st7"
points=
"71.2,218.2 3,255.7 40.6,187.6 "
/>
<linearGradient
id=
"SVGID_3_"
gradientUnits=
"userSpaceOnUse"
x1=
"-39.7429"
y1=
"129.0515"
x2=
"-39.7429"
y2=
"143.4592"
gradientTransform=
"matrix(0.7071 -0.7071 0.7071 0.7071 -56.4388 122.5033)"
>
<stop
offset=
"0"
style=
"stop-color:#FFFFFF"
/>
<stop
offset=
"0.3"
style=
"stop-color:#BCBEC0"
/>
<stop
offset=
"0.4"
style=
"stop-color:#808285"
/>
<stop
offset=
"0.55"
style=
"stop-color:#939598"
/>
<stop
offset=
"0.7"
style=
"stop-color:#BCBEC0"
/>
<stop
offset=
"1"
style=
"stop-color:#D1D3D4"
/>
</linearGradient>
<polygon
class=
"st8"
points=
"15.5,233.1 3,255.7 25.7,243.3 "
/>
<linearGradient
id=
"SVGID_4_"
gradientUnits=
"userSpaceOnUse"
x1=
"271.4319"
y1=
"114.6028"
x2=
"271.4319"
y2=
"157.9079"
gradientTransform=
"matrix(0.7071 -0.7071 0.7071 0.7071 -56.4388 122.5033)"
>
<stop
offset=
"0"
style=
"stop-color:#FFFFFF"
/>
<stop
offset=
"0.3"
style=
"stop-color:#BCBEC0"
/>
<stop
offset=
"0.4"
style=
"stop-color:#808285"
/>
<stop
offset=
"0.55"
style=
"stop-color:#939598"
/>
<stop
offset=
"0.7"
style=
"stop-color:#BCBEC0"
/>
<stop
offset=
"1"
style=
"stop-color:#D1D3D4"
/>
</linearGradient>
<path
class=
"st9"
d=
"M235.5,4.5l18.7,18.7c3.3,3.3,0.9,10.9-5.2,17.1l-15,15l-30.6-30.6l15-15C224.6,3.6,232.3,1.2,235.5,4.5z"
/>
<linearGradient
id=
"SVGID_5_"
gradientUnits=
"userSpaceOnUse"
x1=
"223.5867"
y1=
"114.6028"
x2=
"223.5867"
y2=
"157.9079"
gradientTransform=
"matrix(0.7071 -0.7071 0.7071 0.7071 -56.4388 122.5033)"
>
<stop
offset=
"0"
style=
"stop-color:#FFFFFF"
/>
<stop
offset=
"0.3"
style=
"stop-color:#BCBEC0"
/>
<stop
offset=
"0.4"
style=
"stop-color:#808285"
/>
<stop
offset=
"0.55"
style=
"stop-color:#939598"
/>
<stop
offset=
"0.7"
style=
"stop-color:#BCBEC0"
/>
<stop
offset=
"1"
style=
"stop-color:#D1D3D4"
/>
</linearGradient>
<path
class=
"st10"
d=
"M203.5,24.7l30.6,30.6l-33.8,33.8c-4.2,4.2-10.4,5.1-13.7,1.8l-18.7-18.7c-3.3-3.3-2.5-9.4,1.8-13.7
L203.5,24.7z"
/>
<g
class=
"st11"
>
<linearGradient
id=
"SVGID_6_"
gradientUnits=
"userSpaceOnUse"
x1=
"230.522"
y1=
"114.6028"
x2=
"230.522"
y2=
"157.9079"
gradientTransform=
"matrix(0.7071 -0.7071 0.7071 0.7071 -56.4388 122.5033)"
>
<stop
offset=
"0"
style=
"stop-color:#FFFFFF"
/>
<stop
offset=
"0.3"
style=
"stop-color:#BCBEC0"
/>
<stop
offset=
"0.4"
style=
"stop-color:#808285"
/>
<stop
offset=
"0.55"
style=
"stop-color:#939598"
/>
<stop
offset=
"0.7"
style=
"stop-color:#BCBEC0"
/>
<stop
offset=
"1"
style=
"stop-color:#D1D3D4"
/>
</linearGradient>
<polygon
class=
"st12"
points=
"190.8,37.3 184.4,43.8 215,74.4 221.5,67.9 "
/>
<linearGradient
id=
"SVGID_7_"
gradientUnits=
"userSpaceOnUse"
x1=
"239.671"
y1=
"114.6028"
x2=
"239.671"
y2=
"157.9079"
gradientTransform=
"matrix(0.7071 -0.7071 0.7071 0.7071 -56.4388 122.5033)"
>
<stop
offset=
"0"
style=
"stop-color:#FFFFFF"
/>
<stop
offset=
"0.3"
style=
"stop-color:#BCBEC0"
/>
<stop
offset=
"0.4"
style=
"stop-color:#808285"
/>
<stop
offset=
"0.55"
style=
"stop-color:#939598"
/>
<stop
offset=
"0.7"
style=
"stop-color:#BCBEC0"
/>
<stop
offset=
"1"
style=
"stop-color:#D1D3D4"
/>
</linearGradient>
<polygon
class=
"st13"
points=
"197.3,30.8 190.8,37.3 221.5,67.9 227.9,61.5 "
/>
<linearGradient
id=
"SVGID_8_"
gradientUnits=
"userSpaceOnUse"
x1=
"248.9167"
y1=
"114.6028"
x2=
"248.9167"
y2=
"157.9079"
gradientTransform=
"matrix(0.7071 -0.7071 0.7071 0.7071 -56.4388 122.5033)"
>
<stop
offset=
"0"
style=
"stop-color:#FFFFFF"
/>
<stop
offset=
"0.3"
style=
"stop-color:#BCBEC0"
/>
<stop
offset=
"0.4"
style=
"stop-color:#808285"
/>
<stop
offset=
"0.55"
style=
"stop-color:#939598"
/>
<stop
offset=
"0.7"
style=
"stop-color:#BCBEC0"
/>
<stop
offset=
"1"
style=
"stop-color:#D1D3D4"
/>
</linearGradient>
<polygon
class=
"st14"
points=
"203.8,24.3 197.4,30.8 228,61.4 234.5,54.9 "
/>
</g>
</g>
</svg>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment