vector_salad 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/examples/birthday.svg +1 -1
- data/examples/boolean_operations.svg +1 -1
- data/examples/bp_logo.svg +1 -1
- data/examples/bunny_card.svg +1 -1
- data/examples/chill.svg +1 -1
- data/examples/circle_line_segments.svg +1 -1
- data/examples/circles.svg +1 -1
- data/examples/clip_operations.svg +1 -1
- data/examples/cog_menu.svg +1 -1
- data/examples/cubic_bezier_handles.svg +1 -1
- data/examples/cubic_circle.svg +1 -1
- data/examples/eye_box.svg +1 -1
- data/examples/face.svg +1 -1
- data/examples/flower.svg +1 -1
- data/examples/fox.svg +1 -1
- data/examples/gold_stars.svg +1 -1
- data/examples/paths.svg +1 -1
- data/examples/pepsi_logo.svg +1 -1
- data/examples/polygons.svg +1 -1
- data/examples/quadratic_bezier_handle.svg +1 -1
- data/examples/rects.svg +1 -1
- data/examples/simple_path.svg +1 -1
- data/examples/space.svg +1 -1
- data/examples/spiro_nodes.svg +1 -1
- data/examples/squares.svg +1 -1
- data/examples/transforms.svg +1 -1
- data/examples/triangles.svg +1 -1
- data/lib/vector_salad/canvas.rb +1 -0
- data/lib/vector_salad/exporters/svg_exporter.rb +5 -6
- data/lib/vector_salad/standard_shapes/custom.rb +3 -2
- data/lib/vector_salad/standard_shapes/group.rb +5 -22
- data/lib/vector_salad/standard_shapes/path.rb +11 -7
- data/lib/vector_salad/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 420c66132bdef803377a981526a9b344b944f7d9
|
|
4
|
+
data.tar.gz: 9af8f3f483baffd809127eabb926374e146d14d4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2695135650c078a471984b95add8e4ea2aeb076883c923c8e7706af71b13022d50081fa3c711d6c6ebbaa8872490ab8bca29f263e6e519bc88cb6a6e6ee1f5f8
|
|
7
|
+
data.tar.gz: 1f2f3e6ae22716851aad5fee6cc27133eba0852741d5625b5438f1fca90dd34b3beaa3c5f3901b44c83a9aa173e2f65e2dcc71598d5e6495fb650052da9c1850
|
data/README.md
CHANGED
|
@@ -72,10 +72,10 @@ That will output the SVG, you probably want to save it to a file in a standard U
|
|
|
72
72
|
vector_salad -f path/to/gold_stars.rb > path/to/gold_stars.svg
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
-
The SVG file can then be viewed with most modern web browsers, image viewers, or rendered with Inkscape (I leave installing and using Inkscape to
|
|
75
|
+
The SVG file can then be viewed with most modern web browsers, image viewers, or rendered with Inkscape (I leave installing and using Inkscape to you). A more interactive way of compiling, rendering and viewing VectorSalad files is with the companion `fresh_vector_salad` command line tool. The following command reads a Ruby VectorSalad file, compiles and saves it to an SVG file of the same name, renders it using Inkscape (must be in your path) to a PNG image file of the same name, and finally displays the image. Note an absolute path must be provided here.
|
|
76
76
|
|
|
77
77
|
```
|
|
78
|
-
fresh_vector_salad -
|
|
78
|
+
fresh_vector_salad -f /absolute/path/to/file/gold_stars.rb
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
The window displayed looks as follows on OS X.
|
data/examples/birthday.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="800"
|
|
4
5
|
height="803.85828036">
|
|
5
|
-
|
|
6
6
|
<rect x="0" y="0" width="800" height="800" fill="lightgrey"/>
|
|
7
7
|
<circle cx="0.09149985" cy="576.25959475" r="4" fill="rgb(106, 183, 0)"/>
|
|
8
8
|
<circle cx="73.87087582" cy="117.40471265" r="3" fill="rgb(77, 37, 23)"/>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="210"
|
|
4
5
|
height="210">
|
|
5
|
-
|
|
6
6
|
<rect x="0" y="0" width="210" height="210" fill="none"/>
|
|
7
7
|
<rect x="5" y="90" width="200" height="40" fill="purple"/>
|
|
8
8
|
<path d=" M 5.0 205.0 L 5.0 83.96831036 L 5.18727207 84.40419769 L 5.84488201 85.83066559 L 6.539608 87.23942947 L 7.27097321 88.62952518 L 8.03847504 90.0 L 8.84158993 91.3499136 L 9.6797657 92.67834187 L 10.55242825 93.98437405 L 11.45897961 95.26711464 L 12.39879894 96.52568531 L 13.37124157 97.75922298 L 14.37564182 98.96688271 L 15.4113102 100.14783573 L 16.47753716 101.3012743 L 17.57359219 102.42640686 L 18.69872475 103.52246189 L 19.85216331 104.58868885 L 21.03311634 105.62435722 L 22.24077606 106.62875748 L 23.47431374 107.6012001 L 24.73288441 108.54101944 L 26.015625 109.4475708 L 27.32165718 110.32023335 L 28.65008545 111.15840912 L 30.0 111.96152401 L 31.37047386 112.72902584 L 32.76056957 113.46039104 L 34.16933346 114.15511703 L 35.59580135 114.81272697 L 37.03899384 115.43277168 L 38.4979229 116.01482487 L 39.97158813 116.55848885 L 41.45897961 117.06339073 L 42.95907879 117.52918339 L 44.47085667 117.95554924 L 45.99327755 118.34219456 L 47.52529812 118.68885517 L 49.06586838 118.99529362 L 50.61393166 119.26130009 L 52.16842842 119.48669147 L 53.72829151 119.67131329 L 55.29245377 119.81503963 L 56.8598423 119.91777134 L 58.42938232 119.97943878 L 60.0 120.0 L 61.57061672 119.97943878 L 63.14015675 119.91777134 L 64.70754528 119.81503963 L 66.27170753 119.67131329 L 67.83157063 119.48669147 L 69.38606739 119.26130009 L 70.93413067 118.99529362 L 72.47470093 118.68885517 L 74.0067215 118.34219456 L 75.52914238 117.95554924 L 77.04092026 117.52918339 L 78.54101944 117.06339073 L 80.02841091 116.55848885 L 81.50207615 116.01482487 L 82.96100521 115.43277168 L 84.40419769 114.81272697 L 85.83066559 114.15511703 L 87.23942947 113.46039104 L 88.62952518 112.72902584 L 90.0 111.96152401 L 91.3499136 111.15840912 L 92.67834187 110.32023335 L 93.98437405 109.4475708 L 95.26711464 108.54101944 L 96.52568531 107.6012001 L 97.75922298 106.62875748 L 98.96688271 105.62435722 L 100.14783573 104.58868885 L 101.3012743 103.52246189 L 102.42640686 102.42640686 L 103.52246189 101.3012743 L 104.58868885 100.14783573 L 105.62435722 98.96688271 L 106.62875748 97.75922298 L 107.6012001 96.52568531 L 108.54101944 95.26711464 L 109.4475708 93.98437405 L 110.32023335 92.67834187 L 111.15840912 91.3499136 L 111.96152401 90.0 L 112.72902584 88.62952518 L 113.46039104 87.23942947 L 114.15511703 85.83066559 L 114.81272697 84.40419769 L 115.43277168 82.96100521 L 116.01482487 81.50207615 L 116.55848885 80.02841091 L 117.06339073 78.54101944 L 117.52918339 77.04092026 L 117.95554924 75.52914238 L 118.34219456 74.0067215 L 118.68885517 72.47470093 L 118.99529362 70.93413067 L 119.26130009 69.38606739 L 119.48669147 67.83157063 L 119.67131329 66.27170753 L 119.81503963 64.70754528 L 119.91777134 63.14015675 L 119.97943878 61.57061672 L 120.0 60.0 L 119.97943878 58.42938232 L 119.91777134 56.8598423 L 119.81503963 55.29245377 L 119.67131329 53.72829151 L 119.48669147 52.16842842 L 119.26130009 50.61393166 L 118.99529362 49.06586838 L 118.68885517 47.52529812 L 118.34219456 45.99327755 L 117.95554924 44.47085667 L 117.52918339 42.95907879 L 117.06339073 41.45897961 L 116.55848885 39.97158813 L 116.01482487 38.4979229 L 115.43277168 37.03899384 L 114.81272697 35.59580135 L 114.15511703 34.16933346 L 113.46039104 32.76056957 L 112.72902584 31.37047386 L 111.96152401 29.99999905 L 111.15840912 28.65008545 L 110.32023335 27.32165718 L 109.4475708 26.015625 L 108.54101944 24.73288441 L 107.6012001 23.47431374 L 106.62875748 22.24077606 L 105.62435722 21.03311634 L 104.58868885 19.85216331 L 103.52246189 18.69872475 L 102.42640686 17.57359219 L 101.3012743 16.47753716 L 100.14783573 15.4113102 L 98.96688271 14.37564182 L 97.75922298 13.37124157 L 96.52568531 12.39879894 L 95.26711464 11.45897961 L 93.98437405 10.55242825 L 92.67834187 9.6797657 L 91.3499136 8.84158993 L 89.99999905 8.03847504 L 88.62952518 7.27097321 L 87.23942947 6.539608 L 85.83066559 5.84488201 L 84.40419769 5.18727207 L 83.96831036 5.0 L 205.0 5.0 L 205.0 205.0 Z M 120.0 165.0 L 180.0 165.0 L 180.0 105.0 L 120.0 105.0 Z M 60.0 80.0 L 58.4308176 79.93834591 L 56.87131023 79.75376606 L 55.33109188 79.44739819 L 53.81965923 79.02112961 L 52.34633064 78.47759056 L 50.92018986 77.82013035 L 49.55002785 77.05280304 L 48.24429417 76.18033981 L 47.01103878 75.20811844 L 45.85786343 74.14213562 L 44.79188061 72.98896027 L 43.81965923 71.75570488 L 42.94719601 70.4499712 L 42.1798687 69.07980919 L 41.52240849 67.6536684 L 40.97886944 66.18033981 L 40.55260086 64.66890717 L 40.24623299 63.12868881 L 40.06165314 61.56918144 L 40.0 60.0 L 40.06165314 58.4308176 L 40.24623299 56.87131023 L 40.55260086 55.33109188 L 40.97886944 53.81965923 L 41.52240849 52.34633064 L 42.1798687 50.92018986 L 42.94719601 49.55002785 L 43.81965923 48.24429417 L 44.79188061 47.01103878 L 45.85786343 45.85786343 L 47.01103878 44.79188061 L 48.24429417 43.81965923 L 49.55002785 42.94719601 L 50.92018986 42.1798687 L 52.34633064 41.52240849 L 53.81965923 40.97886944 L 55.33109188 40.55260086 L 56.87131023 40.24623299 L 58.4308176 40.06165314 L 59.99999905 40.0 L 61.56918144 40.06165314 L 63.12868881 40.24623299 L 64.66890717 40.55260086 L 66.18033981 40.97886944 L 67.6536684 41.52240849 L 69.07980919 42.1798687 L 70.4499712 42.94719601 L 71.75570488 43.81965923 L 72.98896027 44.79188061 L 74.14213562 45.85786343 L 75.20811844 47.01103878 L 76.18033981 48.24429417 L 77.05280304 49.55002785 L 77.82013035 50.92018986 L 78.47759056 52.34633064 L 79.02112961 53.81965923 L 79.44739819 55.33109188 L 79.75376606 56.87131023 L 79.93834591 58.4308176 L 80.0 60.0 L 79.93834591 61.56918144 L 79.75376606 63.12868881 L 79.44739819 64.66890717 L 79.02112961 66.18033981 L 78.47759056 67.6536684 L 77.82013035 69.07980919 L 77.05280304 70.4499712 L 76.18033981 71.75570488 L 75.20811844 72.98896027 L 74.14213562 74.14213562 L 72.98896027 75.20811844 L 71.75570488 76.18033981 L 70.4499712 77.05280304 L 69.07980919 77.82013035 L 67.6536684 78.47759056 L 66.18033981 79.02112961 L 64.66890717 79.44739819 L 63.12868881 79.75376606 L 61.56918144 79.93834591 Z M 5.0 36.03168869 L 5.0 5.0 L 36.03168869 5.0 L 35.59580135 5.18727207 L 34.16933346 5.84488201 L 32.76056957 6.539608 L 31.37047386 7.27097321 L 29.99999905 8.03847504 L 28.65008545 8.84158993 L 27.32165718 9.6797657 L 26.015625 10.55242825 L 24.73288441 11.45897961 L 23.47431374 12.39879894 L 22.24077606 13.37124157 L 21.03311634 14.37564182 L 19.85216331 15.4113102 L 18.69872475 16.47753716 L 17.57359219 17.57359219 L 16.47753716 18.69872475 L 15.4113102 19.85216331 L 14.37564182 21.03311634 L 13.37124157 22.24077606 L 12.39879894 23.47431374 L 11.45897961 24.73288441 L 10.55242825 26.015625 L 9.6797657 27.32165718 L 8.84158993 28.65008545 L 8.03847504 30.0 L 7.27097321 31.37047386 L 6.539608 32.76056957 L 5.84488201 34.16933346 L 5.18727207 35.59580135 Z" fill="blue"/>
|
data/examples/bp_logo.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="600"
|
|
4
5
|
height="600">
|
|
5
|
-
|
|
6
6
|
<rect x="0" y="0" width="600" height="600" fill="none"/>
|
|
7
7
|
<path d="M 300.0 300.0 C 265.45776045 331.65325224, 245.0 378.14816236, 245.0 425.0 C 245.0 471.85183764, 265.45776045 518.34674776, 300.0 550.0 C 333.98206156 518.00903553, 354.0 471.67121506, 354.0 425.0 C 354.0 378.32878494, 333.98206156 331.99096447, 300.0 300.0 Z" fill="rgb(50, 155, 0)" opacity="0.6"/>
|
|
8
8
|
<path d="M 300.0 300.0 C 257.02624913 317.93012183, 222.12476811 354.31677226, 206.0 398.0 C 189.81967049 441.8337478, 192.79212992 492.36555806, 214.0 534.0 C 256.97375087 516.06987817, 291.87523189 479.68322774, 308.0 436.0 C 324.18032951 392.1662522, 321.20787008 341.63444194, 300.0 300.0 Z" fill="rgb(50, 155, 0)" opacity="0.6"/>
|
data/examples/bunny_card.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="610.13468051"
|
|
4
5
|
height="805.0">
|
|
5
|
-
|
|
6
6
|
<rect x="0" y="0" width="600" height="800" fill="skyblue"/>
|
|
7
7
|
<circle cx="0" cy="0" r="200" fill="yellow"/>
|
|
8
8
|
<path d="M 0.0 800.0 L 8.0 800.0 C 11.16506294 764.42441082, 12.83369345 728.71571799, 13.0 693.0 C 13.16624128 657.2983004, 11.8313381 621.58964056, 9.0 586.0 C 7.8330149 621.67262635, 6.49966223 657.33981018, 5.0 693.0 C 3.49974927 728.67418376, 1.83305841 764.341368, 0.0 800.0 Z" fill="green"/>
|
data/examples/chill.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="807"
|
|
4
5
|
height="200">
|
|
5
|
-
|
|
6
6
|
<path d="M 767 97 L 759 0 L 775 0 Z" fill="rgb(170.1, 170.1, 243)" opacity="0.56016224"/>
|
|
7
7
|
<path d="M 144 197 L 128 0 L 160 0 Z" fill="rgb(147.7, 147.7, 211)" opacity="0.69952026"/>
|
|
8
8
|
<path d="M 508 189 L 493 0 L 523 0 Z" fill="rgb(148.4, 148.4, 212)" opacity="0.39395537"/>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="240"
|
|
4
5
|
height="240">
|
|
5
|
-
|
|
6
6
|
<rect x="0" y="0" width="240" height="240" fill="none"/>
|
|
7
7
|
<path d="M 220.0 120.0 L 215.10565163 150.90169944 L 200.90169944 178.77852523 L 178.77852523 200.90169944 L 150.90169944 215.10565163 L 120.0 220.0 L 89.09830056 215.10565163 L 61.22147477 200.90169944 L 39.09830056 178.77852523 L 24.89434837 150.90169944 L 20.0 120.0 L 24.89434837 89.09830056 L 39.09830056 61.22147477 L 61.22147477 39.09830056 L 89.09830056 24.89434837 L 120.0 20.0 L 150.90169944 24.89434837 L 178.77852523 39.09830056 L 200.90169944 61.22147477 L 215.10565163 89.09830056 Z" fill="red" stroke="black" stroke-width="4"/>
|
|
8
8
|
<circle cx="220.0" cy="120.0" r="4" fill="green"/>
|
data/examples/circles.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="280"
|
|
4
5
|
height="240">
|
|
5
|
-
|
|
6
6
|
<path d="M 104.99921782 -0.08843724 L 99.86977569 5.14273381 L 102.48325056 10.20024046 L 98.84689168 15.2204737 L 94.91852097 22.73280663 L 93.66179971 27.39559797 L 96.638783 28.07836606 L 91.94847109 29.77703718 L 89.32367429 39.95251862 L 94.07353028 44.02295298 L 89.6379009 46.62026663 L 84.60737603 52.25902095 L 82.91182193 55.89470322 L 81.10285478 59.61761001 L 75.38033335 58.91868459 L 74.67027235 66.47304097 L 71.55741402 71.2060939 L 66.50146031 78.95651931 L 65.03579169 75.76690322 L 58.39784814 77.47887448 L 54.91633665 82.70494314 L 50.85147603 89.39070018 L 46.48412874 85.15871585 L 39.92694904 92.22177003 L 38.91163532 89.13630627 L 34.36854461 93.92787999 L 30.21181477 93.56163099 L 26.77047111 97.73906794 L 20.96579091 98.53499892 L 18.6425549 102.49234916 L 14.5438959 101.99118204 L 5.14273381 99.86977569 L -1.99719723 100.10584532 L -5.8972396 99.2134823 L -13.60495792 97.35475495 L -15.2204737 98.84689168 L -20.48515438 97.02724155 L -27.88213376 96.09242243 L -34.59657493 94.38284758 L -31.81819262 97.00939013 L -37.02888465 91.45404004 L -39.62666827 86.78210522 L -44.4017104 91.72460679 L -48.72122578 83.00595693 L -59.77869199 81.95545838 L -55.32545288 77.923219 L -63.59393205 77.15291937 L -67.22306791 74.00886507 L -73.54873877 67.89208138 L -74.61649147 68.01729091 L -77.65245432 67.56261758 L -80.05259752 55.81632319 L -79.00903379 55.01820751 L -87.51392205 51.86097883 L -86.42076185 48.96978244 L -92.03437979 43.95710372 L -92.13630503 38.9089151 L -92.28525042 33.22759408 L -95.50102963 29.72321172 L -100.55510436 21.62241654 L -101.48847643 18.24601496 L -100.11945346 10.38512609 L -97.80458406 9.13117592 L -103.7861191 5.95652388 L -97.54477175 -4.35566921 L -94.87048304 -5.22683494 L -100.46838743 -10.04624263 L -97.93524173 -15.6314413 L -101.86669482 -19.25342105 L -101.84273847 -25.23820804 L -95.50102963 -29.72321172 L -92.50720323 -32.96082392 L -96.11223273 -35.87708414 L -90.13260825 -43.3380197 L -83.91779984 -44.65662566 L -86.48444676 -52.07878662 L -82.91182193 -55.89470322 L -80.12267282 -59.81570932 L -81.44443836 -66.15964146 L -75.74877753 -66.23681003 L -70.69681342 -70.69681342 L -67.96475499 -71.10199385 L -61.83816583 -81.83450938 L -63.40126944 -78.34960806 L -55.89470322 -82.91182193 L -53.13041347 -83.98840153 L -45.80328855 -88.69205382 L -40.99665922 -88.25696673 L -41.88716723 -94.80651368 L -34.93413706 -94.75256489 L -27.02478411 -94.19011833 L -26.2619401 -95.31497041 L -20.18671051 -94.96715928 L -13.63883522 -96.29769185 L -12.83481034 -100.95095994 L -2.28966962 -98.94240051 L -1.20448014 -96.18565503 L 2.22609746 -102.60715261 L 12.56574763 -101.35135558 L 18.20006235 -98.49753306 L 16.21783405 -101.06426871 L 24.01843262 -96.57216413 L 31.71809782 -95.64396128 L 34.36854461 -93.92787999 L 37.95971652 -92.45098274 L 46.79931607 -92.13745923 L 47.5559498 -86.92748374 L 51.92658058 -86.5100623 L 56.78781539 -82.4619879 L 60.33978465 -79.27100091 L 63.59393205 -77.15291937 L 69.70904397 -70.87518942 L 70.69681342 -70.69681342 L 74.00886507 -67.22306791 L 77.15291937 -63.59393205 L 79.93528149 -61.80691109 L 87.46198809 -57.96737974 L 82.82572065 -50.50574652 L 87.92309314 -47.64955492 L 93.69891477 -45.14949916 L 93.13504113 -38.85865377 L 93.15733584 -33.73115798 L 96.49792724 -27.98937345 L 93.04172868 -26.20447703 L 99.04203804 -22.9435775 L 95.68818864 -12.76637608 L 101.43555514 -9.78390739 L 103.17446927 -1.39053441 L 101.99362321 0.15958226 Z"/>
|
|
7
7
|
<circle cx="200" cy="100" r="50"/>
|
|
8
8
|
<circle cx="60" cy="140" r="30" fill="cyan" stroke="magenta" stroke-width="3"/>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="200"
|
|
4
5
|
height="200.0">
|
|
5
|
-
|
|
6
6
|
<rect x="0" y="85" width="200" height="40" fill="purple"/>
|
|
7
7
|
<path d=" M 0.0 200.0 L 0.0 78.9683094 L 0.18727207 79.40419769 L 0.84488201 80.83066559 L 1.539608 82.23942947 L 2.27097321 83.62952518 L 3.03847504 85.0 L 3.84158993 86.3499136 L 4.6797657 87.67834187 L 5.55242825 88.98437405 L 6.45897961 90.26711464 L 7.39879894 91.52568531 L 8.37124157 92.75922298 L 9.37564182 93.96688271 L 10.4113102 95.14783573 L 11.47753716 96.3012743 L 12.57359219 97.42640686 L 13.69872475 98.52246189 L 14.85216331 99.58868885 L 16.03311634 100.62435722 L 17.24077606 101.62875748 L 18.47431374 102.6012001 L 19.73288441 103.54101944 L 21.015625 104.4475708 L 22.32165718 105.32023335 L 23.65008545 106.15840912 L 25.0 106.96152401 L 26.37047386 107.72902584 L 27.76056957 108.46039104 L 29.16933346 109.15511703 L 30.59580135 109.81272697 L 32.03899384 110.43277168 L 33.4979229 111.01482487 L 34.97158813 111.55848885 L 36.45897961 112.06339073 L 37.95907879 112.52918339 L 39.47085667 112.95554924 L 40.99327755 113.34219456 L 42.52529812 113.68885517 L 44.06586838 113.99529362 L 45.61393166 114.26130009 L 47.16842842 114.48669147 L 48.72829151 114.67131329 L 50.29245377 114.81503963 L 51.8598423 114.91777134 L 53.42938232 114.97943878 L 55.0 115.0 L 56.57061672 114.97943878 L 58.14015675 114.91777134 L 59.70754528 114.81503963 L 61.27170753 114.67131329 L 62.83157063 114.48669147 L 64.38606739 114.26130009 L 65.93413067 113.99529362 L 67.47470093 113.68885517 L 69.0067215 113.34219456 L 70.52914238 112.95554924 L 72.04092026 112.52918339 L 73.54101944 112.06339073 L 75.02841091 111.55848885 L 76.50207615 111.01482487 L 77.96100521 110.43277168 L 79.40419769 109.81272697 L 80.83066559 109.15511703 L 82.23942947 108.46039104 L 83.62952518 107.72902584 L 85.0 106.96152401 L 86.3499136 106.15840912 L 87.67834187 105.32023335 L 88.98437405 104.4475708 L 90.26711464 103.54101944 L 91.52568531 102.6012001 L 92.75922298 101.62875748 L 93.96688271 100.62435722 L 95.14783573 99.58868885 L 96.3012743 98.52246189 L 97.42640686 97.42640686 L 98.52246189 96.3012743 L 99.58868885 95.14783573 L 100.62435722 93.96688271 L 101.62875748 92.75922298 L 102.6012001 91.52568531 L 103.54101944 90.26711464 L 104.4475708 88.98437405 L 105.32023335 87.67834187 L 106.15840912 86.3499136 L 106.96152401 85.0 L 107.72902584 83.62952518 L 108.46039104 82.23942947 L 109.15511703 80.83066559 L 109.81272697 79.40419769 L 110.43277168 77.96100521 L 111.01482487 76.50207615 L 111.55848885 75.02841091 L 112.06339073 73.54101944 L 112.52918339 72.04092026 L 112.95554924 70.52914238 L 113.34219456 69.0067215 L 113.68885517 67.47470093 L 113.99529362 65.93413067 L 114.26130009 64.38606739 L 114.48669147 62.83157063 L 114.67131329 61.27170753 L 114.81503963 59.70754528 L 114.91777134 58.14015675 L 114.97943878 56.57061672 L 115.0 55.0 L 114.97943878 53.42938232 L 114.91777134 51.8598423 L 114.81503963 50.29245377 L 114.67131329 48.72829151 L 114.48669147 47.16842842 L 114.26130009 45.61393166 L 113.99529362 44.06586838 L 113.68885517 42.52529812 L 113.34219456 40.99327755 L 112.95554924 39.47085667 L 112.52918339 37.95907879 L 112.06339073 36.45897961 L 111.55848885 34.97158813 L 111.01482487 33.4979229 L 110.43277168 32.03899384 L 109.81272697 30.59580135 L 109.15511703 29.16933346 L 108.46039104 27.76056957 L 107.72902584 26.37047386 L 106.96152401 24.99999905 L 106.15840912 23.65008545 L 105.32023335 22.32165718 L 104.4475708 21.015625 L 103.54101944 19.73288441 L 102.6012001 18.47431374 L 101.62875748 17.24077606 L 100.62435722 16.03311634 L 99.58868885 14.85216331 L 98.52246189 13.69872475 L 97.42640686 12.57359219 L 96.3012743 11.47753716 L 95.14783573 10.4113102 L 93.96688271 9.37564182 L 92.75922298 8.37124157 L 91.52568531 7.39879894 L 90.26711464 6.45897961 L 88.98437405 5.55242825 L 87.67834187 4.6797657 L 86.3499136 3.84158993 L 84.99999905 3.03847504 L 83.62952518 2.27097321 L 82.23942947 1.539608 L 80.83066559 0.84488201 L 79.40419769 0.18727207 L 78.9683094 0.0 L 200.0 0.0 L 200.0 200.0 Z M 120.0 160.0 L 180.0 160.0 L 180.0 100.0 L 120.0 100.0 Z M 55.0 75.0 L 53.4308176 74.93834591 L 51.87131023 74.75376606 L 50.33109188 74.44739819 L 48.81965923 74.02112961 L 47.34633064 73.47759056 L 45.92018986 72.82013035 L 44.55002785 72.05280304 L 43.24429417 71.18033981 L 42.01103878 70.20811844 L 40.85786343 69.14213562 L 39.79188061 67.98896027 L 38.81965923 66.75570488 L 37.94719601 65.4499712 L 37.1798687 64.07980919 L 36.52240849 62.6536684 L 35.97886944 61.18033981 L 35.55260086 59.66890717 L 35.24623299 58.12868881 L 35.06165314 56.56918144 L 35.0 55.0 L 35.06165314 53.4308176 L 35.24623299 51.87131023 L 35.55260086 50.33109188 L 35.97886944 48.81965923 L 36.52240849 47.34633064 L 37.1798687 45.92018986 L 37.94719601 44.55002785 L 38.81965923 43.24429417 L 39.79188061 42.01103878 L 40.85786343 40.85786343 L 42.01103878 39.79188061 L 43.24429417 38.81965923 L 44.55002785 37.94719601 L 45.92018986 37.1798687 L 47.34633064 36.52240849 L 48.81965923 35.97886944 L 50.33109188 35.55260086 L 51.87131023 35.24623299 L 53.4308176 35.06165314 L 54.99999905 35.0 L 56.56918144 35.06165314 L 58.12868881 35.24623299 L 59.66890717 35.55260086 L 61.18033981 35.97886944 L 62.6536684 36.52240849 L 64.07980919 37.1798687 L 65.4499712 37.94719601 L 66.75570488 38.81965923 L 67.98896027 39.79188061 L 69.14213562 40.85786343 L 70.20811844 42.01103878 L 71.18033981 43.24429417 L 72.05280304 44.55002785 L 72.82013035 45.92018986 L 73.47759056 47.34633064 L 74.02112961 48.81965923 L 74.44739819 50.33109188 L 74.75376606 51.87131023 L 74.93834591 53.4308176 L 75.0 55.0 L 74.93834591 56.56918144 L 74.75376606 58.12868881 L 74.44739819 59.66890717 L 74.02112961 61.18033981 L 73.47759056 62.6536684 L 72.82013035 64.07980919 L 72.05280304 65.4499712 L 71.18033981 66.75570488 L 70.20811844 67.98896027 L 69.14213562 69.14213562 L 67.98896027 70.20811844 L 66.75570488 71.18033981 L 65.4499712 72.05280304 L 64.07980919 72.82013035 L 62.6536684 73.47759056 L 61.18033981 74.02112961 L 59.66890717 74.44739819 L 58.12868881 74.75376606 L 56.56918144 74.93834591 Z M 0.0 31.03168964 L 0.0 0.0 L 31.03168964 0.0 L 30.59580135 0.18727207 L 29.16933346 0.84488201 L 27.76056957 1.539608 L 26.37047386 2.27097321 L 24.99999905 3.03847504 L 23.65008545 3.84158993 L 22.32165718 4.6797657 L 21.015625 5.55242825 L 19.73288441 6.45897961 L 18.47431374 7.39879894 L 17.24077606 8.37124157 L 16.03311634 9.37564182 L 14.85216331 10.4113102 L 13.69872475 11.47753716 L 12.57359219 12.57359219 L 11.47753716 13.69872475 L 10.4113102 14.85216331 L 9.37564182 16.03311634 L 8.37124157 17.24077606 L 7.39879894 18.47431374 L 6.45897961 19.73288441 L 5.55242825 21.015625 L 4.6797657 22.32165718 L 3.84158993 23.65008545 L 3.03847504 25.0 L 2.27097321 26.37047386 L 1.539608 27.76056957 L 0.84488201 29.16933346 L 0.18727207 30.59580135 Z" fill="red"/>
|
|
8
8
|
</svg>
|
data/examples/cog_menu.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="320.0"
|
|
4
5
|
height="320.0">
|
|
5
|
-
|
|
6
6
|
<path d=" M 140.0 320.0 L 140.0 278.31987858 L 139.67805958 278.26672649 L 138.13173771 277.99058819 L 136.58916187 277.69423294 L 135.05059719 277.3777113 L 133.51630783 277.04107761 L 131.98655701 276.68439007 L 130.46160507 276.30770874 L 128.94171524 275.91109848 L 127.42714691 275.49462795 L 125.91815948 275.05836773 L 124.41501141 274.60239315 L 122.91796112 274.12678146 L 121.42726421 273.63161469 L 119.94317722 273.11697865 L 118.46595383 272.58296013 L 116.99584675 272.02965069 L 115.53310776 271.45714569 L 114.07798862 270.86554337 L 112.6307373 270.2549448 L 111.19160366 269.6254549 L 109.76083183 268.97718048 L 108.33866882 268.31023407 L 106.92535782 267.6247282 L 105.5211401 266.92078209 L 104.1262579 266.19851589 L 102.74094963 265.45805264 L 101.36545181 264.69952011 L 100.00000095 263.92304802 L 98.64482975 263.12876892 L 97.30017281 262.31681919 L 95.966259 261.48733807 L 94.64331627 260.64046764 L 93.33157253 259.77635288 L 92.03125191 258.89514256 L 90.74257755 257.99698639 L 90.47734642 257.80692482 L 61.00505066 287.27922058 L 32.72077942 258.99494934 L 62.19307518 229.52265358 L 62.00301361 229.25742245 L 61.10485744 227.96874809 L 60.22364712 226.66842747 L 59.35953236 225.35668373 L 58.51266193 224.033741 L 57.68318081 222.69982719 L 56.87123108 221.35517025 L 56.07695198 220.0 L 55.30047989 218.63454819 L 54.54194736 217.25905037 L 53.80148411 215.8737421 L 53.07921791 214.4788599 L 52.3752718 213.07464218 L 51.68976593 211.66133118 L 51.02281952 210.23916817 L 50.3745451 208.80839634 L 49.7450552 207.3692627 L 49.13445663 205.92201138 L 48.54285431 204.46689224 L 47.97034931 203.00415325 L 47.41703987 201.53404617 L 46.88302135 200.05682278 L 46.36838531 198.57273579 L 45.87321854 197.08203888 L 45.39760685 195.58498859 L 44.94163227 194.08184052 L 44.50537205 192.57285309 L 44.08890152 191.05828476 L 43.69229126 189.53839493 L 43.31560993 188.01344299 L 42.95892239 186.48369217 L 42.6222887 184.94940281 L 42.30576706 183.41083813 L 42.00941181 181.86826229 L 41.73327351 180.32194042 L 41.68012142 180.0 L 0.0 180.0 L 0.0 140.00000095 L 41.68012047 140.00000095 L 41.73327351 139.67805958 L 42.00941181 138.13173771 L 42.30576706 136.58916187 L 42.6222887 135.05059719 L 42.95892239 133.51630783 L 43.31560993 131.98655701 L 43.69229126 130.46160507 L 44.08890152 128.94171524 L 44.50537205 127.42714691 L 44.94163227 125.91815948 L 45.39760685 124.41501141 L 45.87321854 122.91796112 L 46.36838531 121.42726421 L 46.88302135 119.94317722 L 47.41703987 118.46595383 L 47.97034931 116.99584675 L 48.54285431 115.53310776 L 49.13445663 114.07798862 L 49.7450552 112.6307373 L 50.3745451 111.19160366 L 51.02281952 109.76083183 L 51.68976593 108.33866882 L 52.3752718 106.92535782 L 53.07921791 105.5211401 L 53.80148411 104.1262579 L 54.54194736 102.74094963 L 55.30047989 101.36545181 L 56.07695198 100.00000095 L 56.87123108 98.64482975 L 57.68318081 97.30017281 L 58.51266193 95.966259 L 59.35953236 94.64331627 L 60.22364712 93.33157253 L 61.10485744 92.03125191 L 62.00301361 90.74257755 L 62.19307518 90.47734642 L 32.72077942 61.00505066 L 61.00505066 32.72077942 L 90.47734642 62.19307518 L 90.74257755 62.00301361 L 92.03125191 61.10485744 L 93.33157253 60.22364712 L 94.64331627 59.35953236 L 95.966259 58.51266193 L 97.30017281 57.68318081 L 98.64482975 56.87123108 L 100.0 56.07695198 L 101.36545181 55.30047989 L 102.74094963 54.54194736 L 104.1262579 53.80148411 L 105.5211401 53.07921791 L 106.92535782 52.3752718 L 108.33866882 51.68976593 L 109.76083183 51.02281952 L 111.19160366 50.3745451 L 112.6307373 49.7450552 L 114.07798862 49.13445663 L 115.53310776 48.54285431 L 116.99584675 47.97034931 L 118.46595383 47.41703987 L 119.94317722 46.88302135 L 121.42726421 46.36838531 L 122.91796112 45.87321854 L 124.41501141 45.39760685 L 125.91815948 44.94163227 L 127.42714691 44.50537205 L 128.94171524 44.08890152 L 130.46160507 43.69229126 L 131.98655701 43.31560993 L 133.51630783 42.95892239 L 135.05059719 42.6222887 L 136.58916187 42.30576706 L 138.13173771 42.00941181 L 139.67805958 41.73327351 L 140.0 41.68012142 L 140.0 0.0 L 180.0 0.0 L 180.0 41.68012142 L 180.32194042 41.73327351 L 181.86826229 42.00941181 L 183.41083813 42.30576706 L 184.94940281 42.6222887 L 186.48369217 42.95892239 L 188.01344299 43.31560993 L 189.53839493 43.69229126 L 191.05828476 44.08890152 L 192.57285309 44.50537205 L 194.08184052 44.94163227 L 195.58498859 45.39760685 L 197.08203888 45.87321854 L 198.57273579 46.36838531 L 200.05682278 46.88302135 L 201.53404617 47.41703987 L 203.00415325 47.97034931 L 204.46689224 48.54285431 L 205.92201138 49.13445663 L 207.3692627 49.7450552 L 208.80839634 50.3745451 L 210.23916817 51.02281952 L 211.66133118 51.68976593 L 213.07464218 52.3752718 L 214.4788599 53.07921791 L 215.8737421 53.80148411 L 217.25905037 54.54194736 L 218.63454819 55.30047989 L 219.99999905 56.07695198 L 221.35517025 56.87123108 L 222.69982719 57.68318081 L 224.033741 58.51266193 L 225.35668373 59.35953236 L 226.66842747 60.22364712 L 227.96874809 61.10485744 L 229.25742245 62.00301361 L 229.52265358 62.19307518 L 258.99494934 32.72077942 L 287.27922058 61.00505066 L 257.80692482 90.47734642 L 257.99698639 90.74257755 L 258.89514256 92.03125191 L 259.77635288 93.33157253 L 260.64046764 94.64331627 L 261.48733807 95.966259 L 262.31681919 97.30017281 L 263.12876892 98.64482975 L 263.92304802 100.0 L 264.69952011 101.36545181 L 265.45805264 102.74094963 L 266.19851589 104.1262579 L 266.92078209 105.5211401 L 267.6247282 106.92535782 L 268.31023407 108.33866882 L 268.97718048 109.76083183 L 269.6254549 111.19160366 L 270.2549448 112.6307373 L 270.86554337 114.07798862 L 271.45714569 115.53310776 L 272.02965069 116.99584675 L 272.58296013 118.46595383 L 273.11697865 119.94317722 L 273.63161469 121.42726421 L 274.12678146 122.91796112 L 274.60239315 124.41501141 L 275.05836773 125.91815948 L 275.49462795 127.42714691 L 275.91109848 128.94171524 L 276.30770874 130.46160507 L 276.68439007 131.98655701 L 277.04107761 133.51630783 L 277.3777113 135.05059719 L 277.69423294 136.58916187 L 277.99058819 138.13173771 L 278.26672649 139.67805958 L 278.31987858 140.0 L 320.0 140.0 L 320.0 179.99999905 L 278.31987953 179.99999905 L 278.26672649 180.32194042 L 277.99058819 181.86826229 L 277.69423294 183.41083813 L 277.3777113 184.94940281 L 277.04107761 186.48369217 L 276.68439007 188.01344299 L 276.30770874 189.53839493 L 275.91109848 191.05828476 L 275.49462795 192.57285309 L 275.05836773 194.08184052 L 274.60239315 195.58498859 L 274.12678146 197.08203888 L 273.63161469 198.57273579 L 273.11697865 200.05682278 L 272.58296013 201.53404617 L 272.02965069 203.00415325 L 271.45714569 204.46689224 L 270.86554337 205.92201138 L 270.2549448 207.3692627 L 269.6254549 208.80839634 L 268.97718048 210.23916817 L 268.31023407 211.66133118 L 267.6247282 213.07464218 L 266.92078209 214.4788599 L 266.19851589 215.8737421 L 265.45805264 217.25905037 L 264.69952011 218.63454819 L 263.92304802 219.99999905 L 263.12876892 221.35517025 L 262.31681919 222.69982719 L 261.48733807 224.033741 L 260.64046764 225.35668373 L 259.77635288 226.66842747 L 258.89514256 227.96874809 L 257.99698639 229.25742245 L 257.80692482 229.52265358 L 287.27922058 258.99494934 L 258.99494934 287.27922058 L 229.52265358 257.80692482 L 229.25742245 257.99698639 L 227.96874809 258.89514256 L 226.66842747 259.77635288 L 225.35668373 260.64046764 L 224.033741 261.48733807 L 222.69982719 262.31681919 L 221.35517025 263.12876892 L 220.0 263.92304802 L 218.63454819 264.69952011 L 217.25905037 265.45805264 L 215.8737421 266.19851589 L 214.4788599 266.92078209 L 213.07464218 267.6247282 L 211.66133118 268.31023407 L 210.23916817 268.97718048 L 208.80839634 269.6254549 L 207.3692627 270.2549448 L 205.92201138 270.86554337 L 204.46689224 271.45714569 L 203.00415325 272.02965069 L 201.53404617 272.58296013 L 200.05682278 273.11697865 L 198.57273579 273.63161469 L 197.08203888 274.12678146 L 195.58498859 274.60239315 L 194.08184052 275.05836773 L 192.57285309 275.49462795 L 191.05828476 275.91109848 L 189.53839493 276.30770874 L 188.01344299 276.68439007 L 186.48369217 277.04107761 L 184.94940281 277.3777113 L 183.41083813 277.69423294 L 181.86826229 277.99058819 L 180.32194042 278.26672649 L 180.0 278.31987858 L 180.0 320.0 Z M 160.0 240.0 L 161.57069492 239.98457909 L 163.14078522 239.93832207 L 164.70966339 239.86124802 L 166.27672672 239.7533865 L 167.84137058 239.61477757 L 169.40299129 239.44547653 L 170.96098709 239.24554634 L 172.51475716 239.0150671 L 174.06370163 238.75412464 L 175.60722542 238.46282196 L 177.14473152 238.14126968 L 178.67562866 237.78959274 L 180.19932556 237.40792656 L 181.71523571 236.996418 L 183.22277355 236.55522633 L 184.72135925 236.08452129 L 186.21041393 235.58448315 L 187.68936443 235.05530643 L 189.1576395 234.49719429 L 190.61467457 233.91036224 L 192.05990601 233.29503632 L 193.49277878 232.65145302 L 194.9127388 231.97986221 L 196.31923962 231.28052139 L 197.71173859 230.55370045 L 199.08969879 229.79967976 L 200.45258904 229.01875019 L 201.7998848 228.21121311 L 203.13106537 227.37737846 L 204.44561863 226.51756859 L 205.74303627 225.63211536 L 207.02281952 224.72135925 L 208.28447533 223.78565216 L 209.52751541 222.82535362 L 210.75146198 221.84083557 L 211.95584297 220.83247662 L 213.14019489 219.80066586 L 214.30405903 218.74580002 L 215.44698811 217.66828728 L 216.56854248 216.56854248 L 217.66828728 215.44698811 L 218.74580002 214.30405903 L 219.80066586 213.14019489 L 220.83247662 211.95584297 L 221.84083557 210.75146198 L 222.82535362 209.52751541 L 223.78565216 208.28447533 L 224.72135925 207.02281952 L 225.63211536 205.74303627 L 226.51756859 204.44561863 L 227.37737846 203.13106537 L 228.21121311 201.7998848 L 229.01875019 200.45258904 L 229.79967976 199.08969879 L 230.55370045 197.71173859 L 231.28052139 196.31923962 L 231.97986221 194.9127388 L 232.65145302 193.49277878 L 233.29503632 192.05990601 L 233.91036224 190.61467457 L 234.49719429 189.1576395 L 235.05530643 187.68936443 L 235.58448315 186.21041393 L 236.08452129 184.72135925 L 236.55522633 183.22277355 L 236.996418 181.71523571 L 237.40792656 180.19932556 L 237.78959274 178.67562866 L 238.14126968 177.14473152 L 238.46282196 175.60722542 L 238.75412464 174.06370163 L 239.0150671 172.51475716 L 239.24554634 170.96098709 L 239.44547653 169.40299129 L 239.61477757 167.84137058 L 239.7533865 166.27672672 L 239.86124802 164.70966339 L 239.93832207 163.14078522 L 239.98457909 161.57069492 L 240.0 160.0 L 239.98457909 158.42930508 L 239.93832207 156.85921478 L 239.86124802 155.29033661 L 239.7533865 153.72327328 L 239.61477757 152.15862942 L 239.44547653 150.59700871 L 239.24554634 149.03901291 L 239.0150671 147.48524284 L 238.75412464 145.93629837 L 238.46282196 144.39277458 L 238.14126968 142.85526848 L 237.78959274 141.32437134 L 237.40792656 139.80067444 L 236.996418 138.28476429 L 236.55522633 136.77722645 L 236.08452129 135.27864075 L 235.58448315 133.78958607 L 235.05530643 132.31063557 L 234.49719429 130.8423605 L 233.91036224 129.38532543 L 233.29503632 127.94009399 L 232.65145302 126.50722122 L 231.97986221 125.0872612 L 231.28052139 123.68076038 L 230.55370045 122.28826141 L 229.79967976 120.91030121 L 229.01875019 119.54741096 L 228.21121311 118.2001152 L 227.37737846 116.86893463 L 226.51756859 115.55438137 L 225.63211536 114.25696373 L 224.72135925 112.97718048 L 223.78565216 111.71552467 L 222.82535362 110.47248459 L 221.84083557 109.24853802 L 220.83247662 108.04415703 L 219.80066586 106.85980511 L 218.74580002 105.69594097 L 217.66828728 104.55301189 L 216.56854248 103.43145752 L 215.44698811 102.33171272 L 214.30405903 101.25419998 L 213.14019489 100.19933414 L 211.95584297 99.16752338 L 210.75146198 98.15916443 L 209.52751541 97.17464638 L 208.28447533 96.21434784 L 207.02281952 95.27864075 L 205.74303627 94.36788464 L 204.44561863 93.48243141 L 203.13106537 92.62262154 L 201.7998848 91.78878689 L 200.45258904 90.98124981 L 199.08969879 90.20032024 L 197.71173859 89.44629955 L 196.31923962 88.71947861 L 194.9127388 88.02013779 L 193.49277878 87.34854698 L 192.05990601 86.70496368 L 190.61467457 86.08963776 L 189.1576395 85.50280571 L 187.68936443 84.94469357 L 186.21041393 84.41551685 L 184.72135925 83.91547871 L 183.22277355 83.44477367 L 181.71523571 83.003582 L 180.19932556 82.59207344 L 178.67562866 82.21040726 L 177.14473152 81.85873032 L 175.60722542 81.53717804 L 174.06370163 81.24587536 L 172.51475716 80.9849329 L 170.96098709 80.75445366 L 169.40299129 80.55452347 L 167.84137058 80.38522243 L 166.27672672 80.2466135 L 164.70966339 80.13875198 L 163.14078522 80.06167793 L 161.57069492 80.01542091 L 160.0 80.0 L 158.42930508 80.01542091 L 156.85921478 80.06167793 L 155.29033661 80.13875198 L 153.72327328 80.2466135 L 152.15862942 80.38522243 L 150.59700871 80.55452347 L 149.03901291 80.75445366 L 147.48524284 80.9849329 L 145.93629837 81.24587536 L 144.39277458 81.53717804 L 142.85526848 81.85873032 L 141.32437134 82.21040726 L 139.80067444 82.59207344 L 138.28476429 83.003582 L 136.77722645 83.44477367 L 135.27864075 83.91547871 L 133.78958607 84.41551685 L 132.31063557 84.94469357 L 130.8423605 85.50280571 L 129.38532543 86.08963776 L 127.94009399 86.70496368 L 126.50722122 87.34854698 L 125.0872612 88.02013779 L 123.68076038 88.71947861 L 122.28826141 89.44629955 L 120.91030121 90.20032024 L 119.54741096 90.98124981 L 118.2001152 91.78878689 L 116.86893463 92.62262154 L 115.55438137 93.48243141 L 114.25696373 94.36788464 L 112.97718048 95.27864075 L 111.71552467 96.21434784 L 110.47248459 97.17464638 L 109.24853802 98.15916443 L 108.04415703 99.16752338 L 106.85980511 100.19933414 L 105.69594097 101.25419998 L 104.55301189 102.33171272 L 103.43145752 103.43145752 L 102.33171272 104.55301189 L 101.25419998 105.69594097 L 100.19933414 106.85980511 L 99.16752338 108.04415703 L 98.15916443 109.24853802 L 97.17464638 110.47248459 L 96.21434784 111.71552467 L 95.27864075 112.97718048 L 94.36788464 114.25696373 L 93.48243141 115.55438137 L 92.62262154 116.86893463 L 91.78878689 118.2001152 L 90.98124981 119.54741096 L 90.20032024 120.91030121 L 89.44629955 122.28826141 L 88.71947861 123.68076038 L 88.02013779 125.0872612 L 87.34854698 126.50722122 L 86.70496368 127.94009399 L 86.08963776 129.38532543 L 85.50280571 130.8423605 L 84.94469357 132.31063557 L 84.41551685 133.78958607 L 83.91547871 135.27864075 L 83.44477367 136.77722645 L 83.003582 138.28476429 L 82.59207344 139.80067444 L 82.21040726 141.32437134 L 81.85873032 142.85526848 L 81.53717804 144.39277458 L 81.24587536 145.93629837 L 80.9849329 147.48524284 L 80.75445366 149.03901291 L 80.55452347 150.59700871 L 80.38522243 152.15862942 L 80.2466135 153.72327328 L 80.13875198 155.29033661 L 80.06167793 156.85921478 L 80.01542091 158.42930508 L 80.0 160.0 L 80.01542091 161.57069492 L 80.06167793 163.14078522 L 80.13875198 164.70966339 L 80.2466135 166.27672672 L 80.38522243 167.84137058 L 80.55452347 169.40299129 L 80.75445366 170.96098709 L 80.9849329 172.51475716 L 81.24587536 174.06370163 L 81.53717804 175.60722542 L 81.85873032 177.14473152 L 82.21040726 178.67562866 L 82.59207344 180.19932556 L 83.003582 181.71523571 L 83.44477367 183.22277355 L 83.91547871 184.72135925 L 84.41551685 186.21041393 L 84.94469357 187.68936443 L 85.50280571 189.1576395 L 86.08963776 190.61467457 L 86.70496368 192.05990601 L 87.34854698 193.49277878 L 88.02013779 194.9127388 L 88.71947861 196.31923962 L 89.44629955 197.71173859 L 90.20032024 199.08969879 L 90.98124981 200.45258904 L 91.78878689 201.7998848 L 92.62262154 203.13106537 L 93.48243141 204.44561863 L 94.36788464 205.74303627 L 95.27864075 207.02281952 L 96.21434784 208.28447533 L 97.17464638 209.52751541 L 98.15916443 210.75146198 L 99.16752338 211.95584297 L 100.19933414 213.14019489 L 101.25419998 214.30405903 L 102.33171272 215.44698811 L 103.43145752 216.56854248 L 104.55301189 217.66828728 L 105.69594097 218.74580002 L 106.85980511 219.80066586 L 108.04415703 220.83247662 L 109.24853802 221.84083557 L 110.47248459 222.82535362 L 111.71552467 223.78565216 L 112.97718048 224.72135925 L 114.25696373 225.63211536 L 115.55438137 226.51756859 L 116.86893463 227.37737846 L 118.2001152 228.21121311 L 119.54741096 229.01875019 L 120.91030121 229.79967976 L 122.28826141 230.55370045 L 123.68076038 231.28052139 L 125.0872612 231.97986221 L 126.50722122 232.65145302 L 127.94009399 233.29503632 L 129.38532543 233.91036224 L 130.8423605 234.49719429 L 132.31063557 235.05530643 L 133.78958607 235.58448315 L 135.27864075 236.08452129 L 136.77722645 236.55522633 L 138.28476429 236.996418 L 139.80067444 237.40792656 L 141.32437134 237.78959274 L 142.85526848 238.14126968 L 144.39277458 238.46282196 L 145.93629837 238.75412464 L 147.48524284 239.0150671 L 149.03901291 239.24554634 L 150.59700871 239.44547653 L 152.15862942 239.61477757 L 153.72327328 239.7533865 L 155.29033661 239.86124802 L 156.85921478 239.93832207 L 158.42930508 239.98457909 Z M 160.0 200.0 L 100.0 140.0 L 220.0 140.0 Z"/>
|
|
7
7
|
<path d="M 20 0 L 20 320 Z" stroke="orange" opacity="0.6"/>
|
|
8
8
|
<path d="M 0 20 L 320 20 Z" stroke="orange" opacity="0.6"/>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="400"
|
|
4
5
|
height="300">
|
|
5
|
-
|
|
6
6
|
<rect x="0" y="0" width="400" height="300" fill="none"/>
|
|
7
7
|
<path d="M 20 280 C 150 100, 350 50, 380 280" fill="red" stroke="black" stroke-width="4"/>
|
|
8
8
|
<path d="M 20 280 L 150 100" stroke="blue" stroke-width="2"/>
|
data/examples/cubic_circle.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="240"
|
|
4
5
|
height="240">
|
|
5
|
-
|
|
6
6
|
<rect x="0" y="0" width="240" height="240" fill="none"/>
|
|
7
7
|
<circle cx="120" cy="120" r="100" fill="red" stroke="black" stroke-width="4"/>
|
|
8
8
|
<path d="M 220 120 L 220 175.19150245 Z" stroke="blue" stroke-width="2"/>
|
data/examples/eye_box.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="256"
|
|
4
5
|
height="256">
|
|
5
|
-
|
|
6
6
|
<rect x="0" y="0" width="256" height="256"/>
|
|
7
7
|
<rect x="0" y="0" width="32" height="32" fill="rgb(50.0, 0, 50.0)"/>
|
|
8
8
|
<path d=" M 16.33729839 29.13729763 L 14.79442883 29.04397202 L 13.27405739 28.7653532 L 11.7983551 28.30550575 L 10.38884163 27.67113495 L 9.0660696 26.87149143 L 7.84932804 25.91823578 L 6.75636005 24.82526779 L 5.8031044 23.60852718 L 5.00346088 22.2857542 L 4.36909008 20.87624073 L 3.90924263 19.40053844 L 3.63062477 17.88016796 L 3.5372982 16.33729839 L 3.63062477 14.79442883 L 3.90924263 13.27405739 L 4.36909008 11.7983551 L 5.00346088 10.38884163 L 5.8031044 9.0660696 L 6.75636005 7.84932804 L 7.84932804 6.75636005 L 9.0660696 5.8031044 L 10.38884163 5.00346088 L 11.7983551 4.36909008 L 13.27405739 3.90924263 L 14.79442883 3.63062477 L 16.33729839 3.5372982 L 17.88016796 3.63062477 L 19.40053844 3.90924263 L 20.87624073 4.36909008 L 22.2857542 5.00346088 L 23.60852718 5.8031044 L 24.82526779 6.75636005 L 25.91823578 7.84932804 L 26.87149143 9.0660696 L 27.67113495 10.38884163 L 28.30550575 11.7983551 L 28.7653532 13.27405739 L 29.04397202 14.79442883 L 29.13729763 16.33729839 L 29.04397202 17.88016796 L 28.7653532 19.40053844 L 28.30550575 20.87624073 L 27.67113495 22.2857542 L 26.87149143 23.60852718 L 25.91823578 24.82526779 L 24.82526779 25.91823578 L 23.60852718 26.87149143 L 22.2857542 27.67113495 L 20.87624073 28.30550575 L 19.40053844 28.7653532 L 17.88016796 29.04397202 Z" fill="white"/>
|
data/examples/face.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="280"
|
|
4
5
|
height="300">
|
|
5
|
-
|
|
6
6
|
<ellipse cx="200" cy="200" rx="80" ry="100" fill="pink"/>
|
|
7
7
|
<ellipse cx="170" cy="200" rx="8" ry="6" fill="darkgreen"/>
|
|
8
8
|
<ellipse cx="230" cy="200" rx="8" ry="5" fill="brown"/>
|
data/examples/flower.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="600"
|
|
4
5
|
height="600">
|
|
5
|
-
|
|
6
6
|
<rect x="0" y="0" width="600" height="600" fill="rgb(25, 0, 45)"/>
|
|
7
7
|
<path d="M 300.0 300.0 C 283.55037001 339.47911197, 275.0 382.23096203, 275.0 425.0 C 275.0 467.76903797, 283.55037001 510.52088803, 300.0 550.0 C 316.44962999 510.52088803, 325.0 467.76903797, 325.0 425.0 C 325.0 382.23096203, 316.44962999 339.47911197, 300.0 300.0 Z" fill="rgb(53.75, 0, 77.8125)"/>
|
|
8
8
|
<path d="M 300.0 300.0 C 273.98130525 333.75758396, 254.81530509 372.77408428, 244.0 414.0 C 233.08288118 455.61401056, 230.68594724 499.44365975, 237.0 542.0 C 263.06999249 507.90332299, 282.233846 468.54898097, 293.0 427.0 C 303.70496629 385.687156, 306.09974171 342.23908775, 300.0 300.0 Z" fill="rgb(53.75, 0, 77.8125)"/>
|
data/examples/fox.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="400"
|
|
4
5
|
height="600">
|
|
5
|
-
|
|
6
6
|
<rect x="0" y="0" width="400" height="600" fill="rgb(145, 25, 25)"/>
|
|
7
7
|
<rect x="0" y="0" width="400" height="560" fill="rgb(19, 19, 139)"/>
|
|
8
8
|
<rect x="0" y="0" width="400" height="520" fill="rgb(138, 18, 18)"/>
|
data/examples/gold_stars.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="390"
|
|
4
5
|
height="200">
|
|
5
|
-
|
|
6
6
|
<rect x="0" y="0" width="390" height="200" fill="beige"/>
|
|
7
7
|
<path d=" M 65.0 125.0 L 57.78312111 112.5 L 43.34936523 112.5 L 50.56624317 100.0 L 43.34936523 87.5 L 57.78312111 87.5 L 65.0 75.0 L 72.21687889 87.50000095 L 86.65063477 87.50000095 L 79.43375683 100.0 L 86.65063477 112.49999905 L 72.21687889 112.49999905 Z" fill="gold" stroke-width="3" stroke="black"/>
|
|
8
8
|
<path d=" M 130.0 125.0 L 122.78312111 112.5 L 108.34936523 112.5 L 115.56624317 100.0 L 108.34936523 87.5 L 122.78312111 87.5 L 130.0 75.0 L 137.21687889 87.50000095 L 151.65063477 87.50000095 L 144.43375683 100.0 L 151.65063477 112.49999905 L 137.21687889 112.49999905 Z" fill="gold" stroke-width="3" stroke="black"/>
|
data/examples/paths.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="500"
|
|
4
5
|
height="700.0">
|
|
5
|
-
|
|
6
6
|
<path d="M 0 0 L 100 10 L 70 100 Z"/>
|
|
7
7
|
<path d="M 150 50 L 200 20 L 250 50 L 250 150 L 210 150 L 210 100 Q 200 90, 190 100 L 190 150 L 150 150 Z" fill="red" stroke="black" stroke-width="2"/>
|
|
8
8
|
<path d="M 300 100 Q 380 0, 400 100 Q 420 200, 500 100 L 500 200 L 300 200 Z" fill="blue"/>
|
data/examples/pepsi_logo.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="500"
|
|
4
5
|
height="500">
|
|
5
|
-
|
|
6
6
|
<rect x="0" y="0" width="500" height="500" fill="#01205C"/>
|
|
7
7
|
<circle cx="250" cy="250" r="200" fill="white"/>
|
|
8
8
|
<path d=" M 93.2343235 357.34964275 L 92.67832184 356.53586006 L 91.80293846 355.23160076 L 90.9383688 353.9201498 L 90.08467007 352.60159492 L 89.2419014 351.27602768 L 88.41012096 349.94353867 L 87.58938408 348.60421848 L 86.77974796 347.25815868 L 85.98126793 345.90545177 L 85.19399834 344.54618931 L 84.41799355 343.1804657 L 83.65330505 341.8083725 L 82.89998722 340.43000412 L 82.15808964 339.04545498 L 81.4276638 337.65482044 L 80.70876026 336.25819492 L 80.0014267 334.85567284 L 79.3057127 333.44735146 L 78.62166595 332.03332615 L 77.94933224 330.61369419 L 77.28875828 329.18855286 L 76.63998795 327.75799847 L 76.00306702 326.3221302 L 75.37803936 324.88104534 L 74.76494598 323.43484211 L 74.1638298 321.98361969 L 73.57473183 320.52747726 L 72.99769306 319.06651402 L 72.43275166 317.60083008 L 71.87994576 316.13052654 L 71.33931541 314.65570259 L 70.81089592 313.17645931 L 70.29472351 311.69289875 L 69.79083443 310.20512104 L 69.29926109 308.71322823 L 68.82003975 307.2173233 L 68.35320091 305.71750641 L 67.89877796 304.21388245 L 67.45680141 302.70655251 L 67.02730083 301.19561958 L 66.61030674 299.68118858 L 66.20584679 298.16336155 L 65.81394863 296.64224243 L 65.43463993 295.11793518 L 65.06794643 293.5905447 L 64.71389198 292.06017399 L 64.37250137 290.5269289 L 64.04379845 288.99091434 L 63.72780609 287.45223427 L 63.42454433 285.91099548 L 63.13403511 284.36730099 L 62.85629845 282.82125759 L 62.59135151 281.27297211 L 62.33921528 279.72254753 L 62.09990406 278.17009258 L 61.87343597 276.61571217 L 61.65982628 275.05951214 L 61.45908928 273.50159931 L 61.27123928 271.9420805 L 61.09628773 270.38106155 L 60.93424797 268.81865025 L 60.7851305 267.25495243 L 60.64894581 265.69007492 L 60.52570248 264.12412548 L 60.41541004 262.55721092 L 60.31807518 260.9894371 L 60.23370552 259.42091274 L 60.16230583 257.85174465 L 60.10388088 256.28203964 L 60.05843544 254.71190548 L 60.02597141 253.14144897 L 60.00649261 251.57077789 L 60.0 249.99999905 L 60.00649261 248.42922115 L 60.02597141 246.85855007 L 60.05843544 245.28809357 L 60.10388088 243.7179594 L 60.16230583 242.14825439 L 60.23370552 240.5790863 L 60.31807518 239.01056194 L 60.41541004 237.44278812 L 60.52570248 235.87587357 L 60.64894581 234.30992413 L 60.7851305 232.74504662 L 60.93424797 231.1813488 L 61.09628773 229.61893749 L 61.27123928 228.05791855 L 61.45908928 226.49839973 L 61.65982628 224.94048691 L 61.87343597 223.38428688 L 62.09990406 221.82990646 L 62.33921528 220.27745152 L 62.59135151 218.72702694 L 62.85629845 217.17874146 L 63.13403511 215.63269806 L 63.42454433 214.08900356 L 63.72780609 212.54776478 L 64.04379845 211.0090847 L 64.37250137 209.47307014 L 64.71389198 207.93982506 L 65.06794643 206.40945435 L 65.43463993 204.88206387 L 65.81394863 203.35775661 L 66.20584679 201.8366375 L 66.61030674 200.31881046 L 67.02730083 198.80437946 L 67.45680141 197.29344654 L 67.89877796 195.7861166 L 68.35320091 194.28249264 L 68.82003975 192.78267574 L 69.29926109 191.28677082 L 69.79083443 189.79487801 L 70.29472351 188.3071003 L 70.81089592 186.82353973 L 71.33931541 185.34429646 L 71.87994576 183.8694725 L 72.43275166 182.39916897 L 72.99769306 180.93348503 L 73.57473183 179.47252178 L 74.1638298 178.01637936 L 74.76494598 176.56515694 L 75.37803936 175.1189537 L 76.00306702 173.67786884 L 76.63998795 172.24200058 L 77.28875828 170.81144619 L 77.94933224 169.38630486 L 78.62166595 167.9666729 L 79.3057127 166.55264759 L 80.0014267 165.14432621 L 80.70876026 163.74180412 L 81.4276638 162.3451786 L 82.15808964 160.95454407 L 82.89998722 159.56999493 L 83.65330505 158.19162655 L 84.41799355 156.81953335 L 85.19399834 155.45380974 L 85.98126793 154.09454727 L 86.77974796 152.74184036 L 87.58938408 151.39578056 L 88.41012096 150.05646038 L 89.2419014 148.72397137 L 90.08467007 147.39840412 L 90.9383688 146.07984924 L 91.80293846 144.76839828 L 92.67832184 143.46413898 L 93.56445694 142.16716099 L 94.46128464 140.87755394 L 95.36874294 139.59540462 L 96.28677082 138.32080173 L 97.21530437 137.05383205 L 98.15427971 135.79458141 L 99.10363483 134.54313755 L 100.06330299 133.29958439 L 101.03321838 132.06400776 L 102.01331615 130.83649158 L 103.00352859 129.61711979 L 104.00378799 128.40597725 L 105.01402664 127.20314407 L 106.03417397 126.00870514 L 107.06416225 124.8227396 L 108.10391903 123.64533043 L 109.15337467 122.47655773 L 110.2124567 121.31650066 L 111.28109264 120.16523933 L 112.35921097 119.02285194 L 113.44673634 117.88941669 L 114.54359436 116.76501083 L 115.64971066 115.64971066 L 116.76501083 114.54359436 L 117.88941669 113.44673634 L 119.02285194 112.35921097 L 120.16523933 111.28109264 L 121.31650066 110.2124567 L 122.47655773 109.15337467 L 123.64533043 108.10391903 L 124.8227396 107.06416225 L 126.00870514 106.03417397 L 127.20314407 105.01402664 L 128.40597725 104.00378799 L 129.61711979 103.00352859 L 130.83649158 102.01331615 L 132.06400776 101.03321838 L 133.29958439 100.06330299 L 134.54313755 99.10363483 L 135.79458141 98.15427971 L 137.05383205 97.21530437 L 138.32080173 96.28677082 L 139.59540462 95.36874294 L 140.87755394 94.46128464 L 142.16716099 93.56445694 L 143.46413898 92.67832184 L 144.76839828 91.80293846 L 146.07984924 90.9383688 L 147.39840412 90.08467007 L 148.72397137 89.2419014 L 150.05646038 88.41012096 L 151.39578056 87.58938408 L 152.74184036 86.77974796 L 154.09454727 85.98126793 L 155.45380974 85.19399834 L 156.81953335 84.41799355 L 158.19162655 83.65330505 L 159.56999493 82.89998722 L 160.95454407 82.15808964 L 162.3451786 81.4276638 L 163.74180412 80.70876026 L 165.14432621 80.0014267 L 166.55264759 79.3057127 L 167.9666729 78.62166595 L 169.38630486 77.94933224 L 170.81144619 77.28875828 L 172.24200058 76.63998795 L 173.67786884 76.00306702 L 175.1189537 75.37803936 L 176.56515694 74.76494598 L 178.01637936 74.1638298 L 179.47252178 73.57473183 L 180.93348503 72.99769306 L 182.39916897 72.43275166 L 183.8694725 71.87994576 L 185.34429646 71.33931541 L 186.82353973 70.81089592 L 188.3071003 70.29472351 L 189.79487801 69.79083443 L 191.28677082 69.29926109 L 192.78267574 68.82003975 L 194.28249264 68.35320091 L 195.7861166 67.89877796 L 197.29344654 67.45680141 L 198.80437946 67.02730083 L 200.31881046 66.61030674 L 201.8366375 66.20584679 L 203.35775661 65.81394863 L 204.88206387 65.43463993 L 206.40945435 65.06794643 L 207.93982506 64.71389198 L 209.47307014 64.37250137 L 211.0090847 64.04379845 L 212.54776478 63.72780609 L 214.08900356 63.42454433 L 215.63269806 63.13403511 L 217.17874146 62.85629845 L 218.72702694 62.59135151 L 220.27745152 62.33921528 L 221.82990646 62.09990406 L 223.38428688 61.87343597 L 224.94048691 61.65982628 L 226.49839973 61.45908928 L 228.05791855 61.27123928 L 229.61893749 61.09628773 L 231.1813488 60.93424797 L 232.74504662 60.7851305 L 234.30992413 60.64894581 L 235.87587357 60.52570248 L 237.44278812 60.41541004 L 239.01056194 60.31807518 L 240.5790863 60.23370552 L 242.14825439 60.16230583 L 243.7179594 60.10388088 L 245.28809357 60.05843544 L 246.85855007 60.02597141 L 248.42922115 60.00649261 L 250.0 60.0 L 251.57077789 60.00649261 L 253.14144897 60.02597141 L 254.71190548 60.05843544 L 256.28203964 60.10388088 L 257.85174465 60.16230583 L 259.42091274 60.23370552 L 260.9894371 60.31807518 L 262.55721092 60.41541004 L 264.12412548 60.52570248 L 265.69007492 60.64894581 L 267.25495243 60.7851305 L 268.81865025 60.93424797 L 270.38106155 61.09628773 L 271.9420805 61.27123928 L 273.50159931 61.45908928 L 275.05951214 61.65982628 L 276.61571217 61.87343597 L 278.17009258 62.09990406 L 279.72254753 62.33921528 L 281.27297211 62.59135151 L 282.82125759 62.85629845 L 284.36730099 63.13403511 L 285.91099548 63.42454433 L 287.45223427 63.72780609 L 288.99091434 64.04379845 L 290.5269289 64.37250137 L 292.06017399 64.71389198 L 293.5905447 65.06794643 L 295.11793518 65.43463993 L 296.64224243 65.81394863 L 298.16336155 66.20584679 L 299.68118858 66.61030674 L 301.19561958 67.02730083 L 302.70655251 67.45680141 L 304.21388245 67.89877796 L 305.71750641 68.35320091 L 307.2173233 68.82003975 L 308.71322823 69.29926109 L 310.20512104 69.79083443 L 311.69289875 70.29472351 L 313.17645931 70.81089592 L 314.65570259 71.33931541 L 316.13052654 71.87994576 L 317.60083008 72.43275166 L 319.06651402 72.99769306 L 320.52747726 73.57473183 L 321.98361969 74.1638298 L 323.43484211 74.76494598 L 324.88104534 75.37803936 L 326.3221302 76.00306702 L 327.75799847 76.63998795 L 329.18855286 77.28875828 L 330.61369419 77.94933224 L 332.03332615 78.62166595 L 333.387393 79.27670765 L 333.31441689 80.40499878 L 333.20493412 81.97197342 L 333.08735561 83.53836155 L 332.96168518 85.10412025 L 332.82792664 86.66920948 L 332.68608189 88.23358727 L 332.53615665 89.79720974 L 332.3781538 91.3600378 L 332.21207714 92.92202854 L 332.0379324 94.48313999 L 331.85572338 96.04333115 L 331.66545582 97.60255909 L 331.46713352 99.16078377 L 331.26076317 100.71796322 L 331.04634857 102.27405548 L 330.82389641 103.82901859 L 330.59341335 105.38281155 L 330.35490417 106.93539333 L 330.1083765 108.48672104 L 329.85383606 110.03675461 L 329.59128952 111.58545303 L 329.32074451 113.1327734 L 329.04220772 114.67867565 L 328.75568771 116.22311783 L 328.46119022 117.76605892 L 328.15872478 119.30745697 L 327.84829903 120.84727287 L 327.52992058 122.38546371 L 327.20359898 123.92198849 L 326.86934185 125.45680714 L 326.52715874 126.98987865 L 326.17705917 128.52116013 L 325.81905174 130.0506134 L 325.45314598 131.57819653 L 325.07935238 133.10386753 L 324.69768047 134.62758732 L 324.30814075 136.14931488 L 323.91074276 137.66900921 L 323.50549793 139.18663025 L 323.09241676 140.70213604 L 322.6715107 142.21548843 L 322.24279022 143.72664452 L 321.80626774 145.23556614 L 321.36195374 146.74221134 L 320.90986156 148.24654102 L 320.45000172 149.74851513 L 319.98238754 151.24809265 L 319.50703144 152.74523354 L 319.02394581 154.23989868 L 318.53314304 155.73204803 L 318.03463745 157.22164059 L 317.52844143 158.70863819 L 317.01456833 160.19299984 L 316.49303246 161.67468739 L 315.96384811 163.15365887 L 315.4270277 164.62987709 L 314.88258743 166.103302 L 314.33054161 167.5738945 L 313.77090454 169.04161358 L 313.20369053 170.506423 L 312.62891483 171.96828079 L 312.04659462 173.42714977 L 311.45674324 174.88298988 L 310.85937786 176.33576298 L 310.25451279 177.78542995 L 309.64216614 179.23195267 L 309.02235317 180.67529106 L 308.39509106 182.1154089 L 307.760396 183.55226517 L 307.11828423 184.98582363 L 306.4687748 186.41604424 L 305.81188297 187.84289074 L 305.14762783 189.26632309 L 304.47602654 190.68630505 L 303.79709721 192.10279751 L 303.11085796 193.51576233 L 302.41732693 194.92516327 L 301.71652222 196.33096123 L 301.00846386 197.73311996 L 300.29316902 199.13160133 L 299.57065773 200.52636719 L 298.84095001 201.91738224 L 298.10406399 203.30460739 L 297.36001968 204.68800735 L 296.60883808 206.06754303 L 295.8505373 207.44318008 L 295.08513927 208.81488037 L 294.31266308 210.18260765 L 293.53313065 211.54632473 L 292.74656296 212.90599537 L 291.95297909 214.26158428 L 291.15240192 215.61305428 L 290.34485149 216.96037006 L 289.53035069 218.30349445 L 288.70892143 219.64239311 L 287.88058472 220.97702885 L 287.04536247 222.30736732 L 286.20327759 223.63337231 L 285.354352 224.95500755 L 284.49860859 226.27223969 L 283.63607121 227.58503246 L 282.76676178 228.8933506 L 281.8907032 230.19715977 L 281.00792027 231.49642467 L 280.11843586 232.79111004 L 279.22227287 234.08118343 L 278.3194561 235.36660862 L 277.41000938 236.64735126 L 276.49395752 237.92337799 L 275.57132435 239.19465446 L 274.64213467 240.46114635 L 273.70641327 241.72282028 L 272.76418591 242.97964287 L 271.81547642 244.23157978 L 270.86031055 245.47859764 L 269.89871407 246.72066402 L 268.9307127 247.9577446 L 267.95633221 249.18980789 L 266.97559929 250.41681957 L 265.98853874 251.63874722 L 264.99517727 252.85555744 L 263.99554253 254.06721973 L 262.98965931 255.27370071 L 261.97755623 256.47496796 L 260.95925999 257.67098904 L 259.93479633 258.86173344 L 258.90419483 260.04716778 L 257.86748123 261.22726154 L 256.82468414 262.40198231 L 255.77583027 263.57129955 L 254.72094917 264.73518181 L 253.66006851 265.8935976 L 252.59321594 267.04651642 L 251.52042103 268.19390678 L 250.44171047 269.33573914 L 249.35711575 270.471982 L 248.26666355 271.60260677 L 247.17038441 272.72758102 L 246.06830692 273.84687519 L 244.96046066 274.96046066 L 243.84687519 276.06830692 L 242.72758102 277.17038441 L 241.60260677 278.26666355 L 240.471982 279.35711575 L 239.33573914 280.44171047 L 238.19390678 281.52042103 L 237.04651642 282.59321594 L 235.8935976 283.66006851 L 234.73518181 284.72094917 L 233.57129955 285.77583027 L 232.40198231 286.82468414 L 231.22726154 287.86748123 L 230.04716778 288.90419483 L 228.86173344 289.93479633 L 227.67098904 290.95925999 L 226.47496796 291.97755623 L 225.27370071 292.98965931 L 224.06721973 293.99554253 L 222.85555744 294.99517727 L 221.63874722 295.98853874 L 220.41681957 296.97559929 L 219.18980789 297.95633221 L 217.9577446 298.9307127 L 216.72066402 299.89871407 L 215.47859764 300.86031055 L 214.23157978 301.81547642 L 212.97964287 302.76418591 L 211.72282028 303.70641327 L 210.46114635 304.64213467 L 209.19465446 305.57132435 L 207.92337799 306.49395752 L 206.64735126 307.41000938 L 205.36660862 308.3194561 L 204.08118343 309.22227287 L 202.79111004 310.11843586 L 201.49642467 311.00792027 L 200.19715977 311.8907032 L 198.8933506 312.76676178 L 197.58503246 313.63607121 L 196.27223969 314.49860859 L 194.95500755 315.354352 L 193.63337231 316.20327759 L 192.30736732 317.04536247 L 190.97702885 317.88058472 L 189.64239311 318.70892143 L 188.30349445 319.53035069 L 186.96037006 320.34485149 L 185.61305428 321.15240192 L 184.26158428 321.95297909 L 182.90599537 322.74656296 L 181.54632473 323.53313065 L 180.18260765 324.31266308 L 178.81488037 325.08513927 L 177.44318008 325.8505373 L 176.06754303 326.60883808 L 174.68800735 327.36001968 L 173.30460739 328.10406399 L 171.91738224 328.84095001 L 170.52636719 329.57065773 L 169.13160133 330.29316902 L 167.73311996 331.00846386 L 166.33096123 331.71652222 L 164.92516327 332.41732693 L 163.51576233 333.11085796 L 162.10279751 333.79709721 L 160.68630505 334.47602654 L 159.26632309 335.14762783 L 157.84289074 335.81188297 L 156.41604424 336.4687748 L 154.98582363 337.11828423 L 153.55226517 337.760396 L 152.1154089 338.39509106 L 150.67529106 339.02235317 L 149.23195267 339.64216614 L 147.78542995 340.25451279 L 146.33576298 340.85937786 L 144.88298988 341.45674324 L 143.42714977 342.04659462 L 141.96828079 342.62891483 L 140.506423 343.20369053 L 139.04161358 343.77090454 L 137.5738945 344.33054161 L 136.103302 344.88258743 L 134.62987709 345.4270277 L 133.15365887 345.96384811 L 131.67468739 346.49303246 L 130.19299984 347.01456833 L 128.70863819 347.52844143 L 127.22164059 348.03463745 L 125.73204803 348.53314304 L 124.23989868 349.02394581 L 122.74523354 349.50703144 L 121.24809265 349.98238754 L 119.74851513 350.45000172 L 118.24654102 350.90986156 L 116.74221134 351.36195374 L 115.23556614 351.80626774 L 113.72664452 352.24279022 L 112.21548843 352.6715107 L 110.70213604 353.09241676 L 109.18663025 353.50549793 L 107.66900921 353.91074276 L 106.14931488 354.30814075 L 104.62758732 354.69768047 L 103.10386753 355.07935238 L 101.57819653 355.45314598 L 100.0506134 355.81905174 L 98.52116013 356.17705917 L 96.98987865 356.52715874 L 95.45680714 356.86934185 L 93.92198849 357.20359898 Z" fill="#FC002C"/>
|
data/examples/polygons.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="510"
|
|
4
5
|
height="810">
|
|
5
|
-
|
|
6
6
|
<path d="M 329.37822174 565.0 L 390.0 460.0 L 450.62177826 565.0 Z" fill="yellow"/>
|
|
7
7
|
<path d="M 340.50252532 219.49747468 L 340.50252532 120.50252532 L 439.49747468 120.50252532 L 439.49747468 219.49747468 Z" fill="blue"/>
|
|
8
8
|
<path d="M 77.09932729 192.81152949 L 44.40491353 92.18847051 L 130.0 30.0 L 215.59508647 92.18847051 L 182.90067271 192.81152949 Z" fill="red"/>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="400"
|
|
4
5
|
height="300">
|
|
5
|
-
|
|
6
6
|
<rect x="0" y="0" width="400" height="300" fill="none"/>
|
|
7
7
|
<path d="M 20 280 Q 150 50, 380 280" fill="red" stroke="black" stroke-width="4"/>
|
|
8
8
|
<path d="M 20 280 L 150 50" stroke="blue" stroke-width="2"/>
|
data/examples/rects.svg
CHANGED
data/examples/simple_path.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="300"
|
|
4
5
|
height="300">
|
|
5
|
-
|
|
6
6
|
<path d="M 0 0 L 2.41641998 9.26456451 L 4.97589111 18.30596924 L 7.67498016 27.12078094 L 10.51025391 35.70556641 L 13.47827911 44.0568924 L 16.57562256 52.17132568 L 19.79885101 60.04543304 L 23.14453125 67.67578125 L 26.60923004 75.05893707 L 30.18951416 82.19146729 L 33.88195038 89.06993866 L 37.68310547 95.69091797 L 41.5895462 102.05097198 L 45.59783936 108.14666748 L 49.7045517 113.97457123 L 53.90625 119.53125 L 58.19950104 124.81327057 L 62.58087158 129.81719971 L 67.04692841 134.53960419 L 71.59423828 138.97705078 L 76.21936798 143.12610626 L 80.91888428 146.9833374 L 85.68935394 150.54531097 L 90.52734375 153.80859375 L 95.42942047 156.7697525 L 100.39215088 159.425354 L 105.41210175 161.77196503 L 110.48583984 163.80615234 L 115.60993195 165.52448273 L 120.78094482 166.92352295 L 125.99544525 167.99983978 L 131.25 168.75 L 136.54117584 169.17057037 L 141.86553955 169.25811768 L 147.2196579 169.00920868 L 152.60009766 168.42041016 L 158.0034256 167.48828888 L 163.4262085 166.20941162 L 168.86501312 164.58034515 L 174.31640625 162.59765625 L 179.77695465 160.25791168 L 185.2432251 157.55767822 L 190.71178436 154.49352264 L 196.17919922 151.06201172 L 201.64203644 147.25971222 L 207.09686279 143.08319092 L 212.54024506 138.52901459 L 217.96875 133.59375 L 223.3789444 128.27396393 L 228.76739502 122.56622314 L 234.13066864 116.46709442 L 239.46533203 109.97314453 L 244.76795197 103.08094025 L 250.03509521 95.78704834 L 255.26332855 88.08803558 L 260.44921875 79.98046875 L 265.58933258 71.46091461 L 270.68023682 62.52593994 L 275.71849823 53.17211151 L 280.70068359 43.39599609 L 285.62335968 33.19416046 L 290.48309326 22.56317139 L 295.27645111 11.49959564 L 300 0 Z"/>
|
|
7
7
|
<path d="M 105 200 L 103.2434082 203.7487793 L 101.72851563 207.49023438 L 100.46264648 211.21704102 L 99.453125 214.921875 L 98.70727539 218.59741211 L 98.23242188 222.23632813 L 98.03588867 225.83129883 L 98.125 229.375 L 98.50708008 232.86010742 L 99.18945313 236.27929688 L 100.17944336 239.62524414 L 101.484375 242.890625 L 103.11157227 246.06811523 L 105.06835938 249.15039063 L 107.36206055 252.13012695 L 110 255 L 112.5769043 257.97729492 L 114.67773438 261.24023438 L 116.29516602 264.72290039 L 117.421875 268.359375 L 118.05053711 272.08374023 L 118.17382813 275.83007813 L 117.78442383 279.5324707 L 116.875 283.125 L 115.43823242 286.54174805 L 113.46679688 289.71679688 L 110.95336914 292.58422852 L 107.890625 295.078125 L 104.27124023 297.13256836 L 100.08789063 298.68164063 L 95.33325195 299.65942383 L 92.7394104 299.91348267 L 90 300 L 84.66552734 299.71313477 L 79.90234375 298.87695313 L 75.69580078 297.52807617 L 72.03125 295.703125 L 68.89404297 293.4387207 L 66.26953125 290.77148438 L 64.14306641 287.73803711 L 62.5 284.375 L 61.32568359 280.71899414 L 60.60546875 276.80664063 L 60.32470703 272.67456055 L 60.46875 268.359375 L 61.02294922 263.89770508 L 61.97265625 259.32617188 L 63.30322266 254.68139648 L 65 250 L 66.82250977 245.53833008 L 68.56445313 241.49414063 L 70.26245117 237.81616211 L 71.953125 234.453125 L 73.6730957 231.35375977 L 75.45898438 228.46679688 L 79.375 223.125 L 81.57836914 220.56762695 L 83.99414063 218.01757813 L 86.65893555 215.42358398 L 89.609375 212.734375 L 92.88208008 209.89868164 L 96.51367188 206.86523438 L 100.54077148 203.58276367 L 105 200 Z" fill="yellow" stroke="orange" stroke-width="5" stroke-linejoin="miter" stroke-miterlimit="10"/>
|
|
8
8
|
</svg>
|
data/examples/space.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="1000.23784245"
|
|
4
5
|
height="563">
|
|
5
|
-
|
|
6
6
|
<rect x="0" y="0" width="1000" height="563" fill="#000"/>
|
|
7
7
|
<circle cx="908" cy="72" r="0.36619519" fill="rgb(225.0,225.0,255)"/>
|
|
8
8
|
<circle cx="144" cy="129" r="0.08915871" fill="rgb(225.19385702,225.19385702,255)"/>
|
data/examples/spiro_nodes.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="450"
|
|
4
5
|
height="250">
|
|
5
|
-
|
|
6
6
|
<rect x="0" y="0" width="450" height="250" fill="none"/>
|
|
7
7
|
<path d="M 50.0 120.0 C 54.66240026 140.80364056, 69.05944734 159.20881585, 88.12836313 168.74327375 C 107.19727891 178.27773164, 130.5596474 178.75226413, 150.0 170.0 C 158.31014456 166.25867999, 165.83002539 160.98255767, 173.89194035 156.73267471 C 181.95385531 152.48279174, 190.92064794 149.21174615, 200.0 150.0 C 205.45423204 150.47352712, 210.72150522 152.40946505, 215.44476861 155.17779633 C 220.16803199 157.9461276, 224.37153552 161.53206153, 228.21294228 165.43289083 C 235.89575579 173.23454941, 242.19370055 182.32190199, 250.0 190.0 C 267.87890767 207.58528563, 293.63091058 216.8457373, 318.61451674 214.67386395 C 343.59812289 212.50199059, 367.36583919 198.93669366, 381.94203241 178.53002315 C 396.51822563 158.12335264, 401.64181474 131.240822, 395.59349835 106.90328969 C 389.54518196 82.56575738, 372.4332943 61.20914435, 350.0 50.0" fill="red" stroke="black" stroke-width="4"/>
|
|
8
8
|
<circle cx="50" cy="120" r="5" fill="green"/>
|
data/examples/squares.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="280"
|
|
4
5
|
height="200">
|
|
5
|
-
|
|
6
6
|
<rect x="0" y="0" width="100" height="100"/>
|
|
7
7
|
<rect x="200" y="100" width="50" height="50"/>
|
|
8
8
|
<path d="M 60 140 L 60 170 L 30 170 L 30 140 Z" fill="cyan" stroke="magenta" stroke-width="3"/>
|
data/examples/transforms.svg
CHANGED
data/examples/triangles.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
<svg version="1.1"
|
|
2
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
4
|
width="150"
|
|
4
5
|
height="400">
|
|
5
|
-
|
|
6
6
|
<path d="M 100 50 L 50 100 L 150 100 Z"/>
|
|
7
7
|
<path d="M 56.69872981 245.0 L 100.0 170.0 L 143.30127019 245.0 Z" fill="#666"/>
|
|
8
8
|
<path d="M 100 300 L 75 400 L 125 400 Z" fill="lightgrey"/>
|
data/lib/vector_salad/canvas.rb
CHANGED
|
@@ -8,12 +8,11 @@ module VectorSalad
|
|
|
8
8
|
# @api private
|
|
9
9
|
class SvgExporter < BaseExporter
|
|
10
10
|
def header
|
|
11
|
-
puts
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
END
|
|
11
|
+
puts %(
|
|
12
|
+
<svg version="1.1"
|
|
13
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
+
width="#{canvas_width}"
|
|
15
|
+
height="#{canvas_height}">)
|
|
17
16
|
end
|
|
18
17
|
|
|
19
18
|
def footer
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
require "fancy_to_proc"
|
|
2
2
|
require "vector_salad/dsl"
|
|
3
3
|
require "vector_salad/canvas"
|
|
4
|
-
|
|
5
|
-
require
|
|
4
|
+
Dir.glob(File.expand_path("../standard_shapes/*.rb", __FILE__)).each do |file|
|
|
5
|
+
require file
|
|
6
|
+
end
|
|
6
7
|
|
|
7
8
|
module VectorSalad
|
|
8
9
|
module StandardShapes
|
|
@@ -1,28 +1,10 @@
|
|
|
1
|
-
# require "contracts"
|
|
2
|
-
# require "contracts_builtin"
|
|
3
|
-
# require "vector_salad/dsl"
|
|
4
|
-
# require "vector_salad/canvas"
|
|
5
|
-
|
|
6
|
-
# module VectorSalad
|
|
7
|
-
# module StandardShapes
|
|
8
|
-
# # @api private
|
|
9
|
-
# class Transform
|
|
10
|
-
# include VectorSalad::DSL
|
|
11
|
-
# include VectorSalad::StandardShapes
|
|
12
|
-
# include Contracts::Core
|
|
13
|
-
# include Contracts::Builtin
|
|
14
|
-
# end
|
|
15
|
-
# end
|
|
16
|
-
# end
|
|
17
|
-
|
|
18
|
-
# require "vector_salad/standard_shapes/group_dsl"
|
|
19
1
|
require "vector_salad/standard_shapes/transform"
|
|
20
2
|
require "vector_salad/canvas"
|
|
21
3
|
require "vector_salad/mixins/transforms"
|
|
22
4
|
|
|
23
5
|
module VectorSalad
|
|
24
6
|
module StandardShapes
|
|
25
|
-
#
|
|
7
|
+
# Group the contained shapes.
|
|
26
8
|
class Group < BasicShape
|
|
27
9
|
include VectorSalad::Mixins::Transforms
|
|
28
10
|
include VectorSalad::DSL
|
|
@@ -31,7 +13,6 @@ module VectorSalad
|
|
|
31
13
|
attr_accessor :canvas
|
|
32
14
|
|
|
33
15
|
def initialize(**_options, &block)
|
|
34
|
-
# @canvas = GroupDSL.new(&block).canvas if block
|
|
35
16
|
instance_eval(&block) if block # inner_canvas is populated
|
|
36
17
|
end
|
|
37
18
|
|
|
@@ -39,6 +20,7 @@ module VectorSalad
|
|
|
39
20
|
@canvas ||= VectorSalad::Canvas.new
|
|
40
21
|
end
|
|
41
22
|
|
|
23
|
+
# Returns self
|
|
42
24
|
def to_path
|
|
43
25
|
self
|
|
44
26
|
end
|
|
@@ -46,10 +28,11 @@ module VectorSalad
|
|
|
46
28
|
private
|
|
47
29
|
|
|
48
30
|
def each_send(method, *args, &block)
|
|
31
|
+
new_canvas = VectorSalad::Canvas.new
|
|
49
32
|
@canvas.each do |shape|
|
|
50
|
-
shape.send(method, *args, &block)
|
|
33
|
+
new_canvas << shape.send(method, *args, &block)
|
|
51
34
|
end
|
|
52
|
-
self
|
|
35
|
+
self.class.new.tap(&:canvas=.(new_canvas))
|
|
53
36
|
end
|
|
54
37
|
end
|
|
55
38
|
end
|
|
@@ -64,13 +64,17 @@ module VectorSalad
|
|
|
64
64
|
# Move the path absolutely.
|
|
65
65
|
Contract Coord, Coord => Path
|
|
66
66
|
def [](x, y)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
67
|
+
# finds the top-left most point as if the path is in a bounding box
|
|
68
|
+
top_left_point = nodes[0].at
|
|
69
|
+
nodes.each do |node|
|
|
70
|
+
top_left_point[0] = node.at[0] if node.at[0] < top_left_point[0]
|
|
71
|
+
top_left_point[1] = node.at[1] if node.at[1] < top_left_point[1]
|
|
72
|
+
end
|
|
73
|
+
# finds the delta between the current top-left and new top-left coords
|
|
74
|
+
dx = x - top_left_point[0]
|
|
75
|
+
dy = y - top_left_point[1]
|
|
76
|
+
# move path to the new delta
|
|
77
|
+
move(dx, dy)
|
|
74
78
|
end
|
|
75
79
|
|
|
76
80
|
# Move the path relatively.
|
data/lib/vector_salad/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vector_salad
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Simon George
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-11-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pretty_backtrace
|