astromapper 1.0.14 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/astromapper/svg.rb +5 -10
- data/lib/astromapper/version.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: aad04f9e9be6ec73c9f9c160ef53e65b9e7e3832
|
4
|
+
data.tar.gz: '08704ef32b7955d37d727cbfe1b26c67131e98f0'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9476ba73839ffda7f633ee785e1733da7c5add0ce91dba6ac0bf83cd7d8922706773e31dcb3ec85a347aabf24ff48ff0876385b0774ad0400a5c641e0bfe020d
|
7
|
+
data.tar.gz: 3b2e3483d7f53f922f63c627162415dad8fd96ab7f9a4f2e37116e2ebc97682b67ad334d8713f07503c012fddae82d6a3de1c3b89ba10e2b19453322821e66c7
|
data/lib/astromapper/svg.rb
CHANGED
@@ -91,7 +91,7 @@ module Astromapper
|
|
91
91
|
stroke-width:1;
|
92
92
|
}
|
93
93
|
g.gas-giant ellipse {
|
94
|
-
|
94
|
+
stroke: #034;
|
95
95
|
stroke-width: 1;
|
96
96
|
}
|
97
97
|
circle {
|
@@ -99,11 +99,6 @@ module Astromapper
|
|
99
99
|
stroke: #fff;
|
100
100
|
stroke-width: 1;
|
101
101
|
}
|
102
|
-
circle.belt {
|
103
|
-
stroke: #222;
|
104
|
-
belt: #fff;
|
105
|
-
stroke-width: 1;
|
106
|
-
}
|
107
102
|
.lowsec {
|
108
103
|
fill: none;
|
109
104
|
stroke: #B90;
|
@@ -154,9 +149,9 @@ module Astromapper
|
|
154
149
|
|
155
150
|
output = "<!-- Volume: #{volume.strip.gsub(/\t/,' // ')} -->\n"
|
156
151
|
output += (size == '0') ? draw_belt(c) : draw_planet(c,uwp)
|
157
|
-
output += " <text class='spaceport' x='#{c[0]}' y='#{(c[1] + @side / 2).tweak}'>#{spaceport.strip}</text>\n"
|
158
|
-
output += " <text x='#{c[0].to_i}' y='#{(c[1]+(@side/1.3)).tweak}'>#{uwp.strip}</text>\n"
|
159
|
-
output += " <text x='#{c[0].to_i}' y='#{(c[1]-(@side/2.1)).tweak}'>#{name.strip}</text>\n"
|
152
|
+
output += " <text class='spaceport' x='#{c[0].to_i}' y='#{(c[1] + @side / 2).tweak.to_i}'>#{spaceport.strip}</text>\n"
|
153
|
+
output += " <text x='#{c[0].to_i}' y='#{(c[1]+(@side/1.3)).tweak.to_i}'>#{uwp.strip}</text>\n"
|
154
|
+
output += " <text x='#{c[0].to_i}' y='#{(c[1]-(@side/2.1)).tweak.to_i}'>#{name.strip}</text>\n"
|
160
155
|
unless zone == '..'
|
161
156
|
style = zone + '_zone'
|
162
157
|
output += " <path d='M #{(c[0] - curve/2).to_i} #{(c[1] - (curve/1.4)).to_i} a #{curve} #{curve} 0 1 0 20 0' />\n"
|
@@ -239,7 +234,7 @@ module Astromapper
|
|
239
234
|
x = (c[0]+(@side/1.8)).tweak; y = (c[1]+(@side/3)).tweak;
|
240
235
|
return<<-GIANT
|
241
236
|
<g class='gas-giant'><!-- Has Gas Giant -->
|
242
|
-
<ellipse cx='#{x.to_i}' cy='#{y.to_i}' rx='#{(@side/(@mark * 0.5)).tweak.to_i}' ry='#{(@side/@mark * 0.3).tweak
|
237
|
+
<ellipse cx='#{x.to_i}' cy='#{y.to_i}' rx='#{(@side/(@mark * 0.5)).tweak.to_i}' ry='#{(@side/@mark * 0.3).tweak}' />
|
243
238
|
<circle cx='#{x.to_i}' cy='#{y.to_i}' r='#{(@side/(@mark * 1.2)).tweak.to_i}' />
|
244
239
|
</g>
|
245
240
|
GIANT
|
data/lib/astromapper/version.rb
CHANGED