polygonfy 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/polygonfy/version.rb +1 -1
- data/lib/polygonfy.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90898057ee33cf3393b81492af4efbf7997684fd
|
4
|
+
data.tar.gz: 1ca6af93f2874d593d741874ec71e09b341a2065
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78e50da7b9970d1c43b707c0ee34376300de9ebef212ef01f5c919cf936671726789e4f587df592411e41fb3479479919690981ae1cd966caa242212223a1075
|
7
|
+
data.tar.gz: b0b226be659a2d5be613e8cf313251ea3f684433f972ed16ceb2212495e1c121a977838b37000a0772fd2f00e11bd270a815d298a38116ad58a8b7ab353b940a
|
data/lib/polygonfy/version.rb
CHANGED
data/lib/polygonfy.rb
CHANGED
@@ -36,7 +36,7 @@ module Polygonfy
|
|
36
36
|
width = points.map(&:x).max + (2 * MARGIN)
|
37
37
|
height = points.map(&:y).max + (2 * MARGIN)
|
38
38
|
|
39
|
-
polygon_points = points.map { |p| "#{p.x},#{p.y}" }.join(' ')
|
39
|
+
polygon_points = points.map { |p| "#{p.x + MARGIN},#{p.y + MARGIN}" }.join(' ')
|
40
40
|
|
41
41
|
builder = Nokogiri::XML::Builder.new do |xml|
|
42
42
|
xml.svg(xmlns: xmlns, width: width, height: height) {
|