astromapper 1.0.33 → 1.0.35

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d399eec78bac556b1fec247409c5b92f407ccd68
4
- data.tar.gz: a79e83423f2ef82632d82728475f797aa1ed7163
3
+ metadata.gz: bcdc3f4513172f0d64b14b7c012ab3c82ce2dd20
4
+ data.tar.gz: 3a2ac9dd9d22b841abb9f0defbe9c5f0c1cf7489
5
5
  SHA512:
6
- metadata.gz: b41b31ec4011e4d26bdf73df7a605b43f3fed7583a8871b1f67d15ba051b59d7279bb1a6c81e9618043355f794f27d0dc7aa8f608db7f8cb03dd60fbe556da30
7
- data.tar.gz: eebebe8daf6ec68431da02f15406e7b90656a04d152f95e03ba40a04871948792e91fecd84a75fe156fad84f53524e7a7ae7a9e532ac7d21c6c11c2316dd6f76
6
+ metadata.gz: aa1302d519a95653ee8d372567e60be2aa93b2ccd212b497294f97a87fccc148c42ffb0dcffe46eae8fe0ee3d21146c662b326b9dfa2819a7a4842e6559b3e28
7
+ data.tar.gz: b14b4653a458a51ba40ecb6641e45a9fa63f08193cae2a0b2e7a455f25c92da071cb5faf161c5619dca9d490e768eb92a2b13f5a3f116d189ce0bb25e087ea80
@@ -39,27 +39,27 @@ module Astromapper
39
39
  x = k[0..1].to_i
40
40
  y = k[2..3].to_i
41
41
  @routes[k] = []
42
- [[-2, -1], # x - 2, y = -1
43
- [-2, 0], # x - 2, y = 0
44
- [-2, 1], # x - 2, y = +1
45
- [ 2, -1], # x + 2, y = -1
46
- [ 2, 0], # x + 2, y = 0
47
- [ 2, 1], # x + 2, y = +1
48
- [ 1, 1], # x + 1, y = +1
49
- [ 1, -1], # x + 1, y = -1
50
- [-2, -1], # x - 1, y = +1
51
- [-1, -1], # x - 1, y = -1
52
- [ 0, -2], # x , y - 2
53
- [ 0, 2]].each do |m| # x , y + 2
42
+ [
43
+ [-2, -1], # x - 2, y = -1
44
+ [-2, 0], # x - 2, y = 0
45
+ [-2, 1], # x - 2, y = +1
46
+ [ 2, -1], # x + 2, y = -1
47
+ [ 2, 0], # x + 2, y = 0
48
+ [ 2, 1], # x + 2, y = +1
49
+ [ 1, 1], # x + 1, y = +1
50
+ [ 1, -1], # x + 1, y = -1
51
+ [-1, 1], # x - 1, y = +1
52
+ [-1, -1], # x - 1, y = -1
53
+ [ 0, -2], # x , y - 2
54
+ [ 0, 2]
55
+ ].each do |m| # x , y + 2
54
56
  c = "%02d%02d" % [(x + m[0]), (y + m[1])]
55
57
  @routes[k] << c if keys.include?(c)
56
58
  a = center_of(k)
57
59
  b = center_of(c)
58
- # puts "#{k} >> #{c} #{keys.include?(c)}"
59
- routes << "<!-- #{k} > #{c} --><line style='stroke:rgb(255,0,0);stroke-width:2' x1='#{a[0]}' y1='#{a[1]}' x2='#{b[0]}' y2='#{b[1]}' />" if keys.include?(c)
60
+ routes << "<!-- #{k} > #{c} --><line x1='#{a[0]}' y1='#{a[1]}' x2='#{b[0]}' y2='#{b[1]}' />" if keys.include?(c)
60
61
  end
61
62
  end
62
- puts routes.join("\n")
63
63
  routes.join("\n")
64
64
  end
65
65
  def convert
@@ -111,8 +111,8 @@ module Astromapper
111
111
  fill: #DDD;
112
112
  }
113
113
  line {
114
- stroke:rgb(255,0,0);
115
- stroke-width:5;
114
+ stroke: #C00;
115
+ stroke-width:2;
116
116
  }
117
117
  polyline {
118
118
  fill: none;
@@ -1,3 +1,3 @@
1
1
  module Astromapper
2
- VERSION = "1.0.33"
2
+ VERSION = "1.0.35"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: astromapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.33
4
+ version: 1.0.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Merovex