ea 0.6.37 → 0.6.38

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
  SHA256:
3
- metadata.gz: 66a18fcf7b5f3f2e491c2384461f8774c7b0fd4ef4580e3d3cf527b44653bd0d
4
- data.tar.gz: '00936e0e11d786818882f1f242b0a1d33ba11214bcb74221ebe8de9dc8d5eec4'
3
+ metadata.gz: 766805714007ed9c6bff335cc0cdcc0323276ff11cceee7e4982113d64b9f295
4
+ data.tar.gz: cb822f672eb96d3d298df5788c007e21d15003fb48232f503cd15c9f3caef76d
5
5
  SHA512:
6
- metadata.gz: 02e6b401e48483fff5e747934c0ce00e29d625575789400b72e7b14b18cbc88fd4972d28c284fba7e3477d2730d9bd63ffb406fe6a868587bd6985627d4ff8a4
7
- data.tar.gz: 82b95f5102ad6b5cb2f3020a8bb48f95ef376221c690ea314e1b4f31d7af7ee2cef7412313cbfa9140102d73ebc7c52a47afa352402043ac360c30bf8e70a967
6
+ metadata.gz: 91c69faf5a4855b583813d23e6f827bd606e611cc2fce020fc601b3af65c8bc00a9c8aa131a4ce78d4b0b387bca797fef12939af7e1b5f5dcff1e0887c1e3bd3
7
+ data.tar.gz: b087a7ffc8deea335482b15f5818a4f9e130a728887d6955a769c2f369e945b8ec503f83bacc8318ba6599b4213f68b3086c1b2164e5a7bbd4d95519902d29d0
@@ -46,10 +46,14 @@ module Ea
46
46
  ys = points.map(&:last)
47
47
  min_x = xs.min || 0
48
48
  min_y = ys.min || 0
49
+ # When the leftmost element touches stored x=0 the left
50
+ # inset is 30, not 35 (all five such sample diagrams are
51
+ # exactly 5px narrower; min_x>0 diagrams keep 35).
52
+ left = min_x.zero? ? INSET_LEFT - 5 : INSET_LEFT
49
53
  [
50
54
  min_x,
51
55
  min_y,
52
- (xs.max - min_x) + INSET_LEFT + INSET_RIGHT,
56
+ (xs.max - min_x) + left + INSET_RIGHT,
53
57
  (ys.max - min_y) + INSET_TOP + INSET_BOTTOM
54
58
  ]
55
59
  end
data/lib/ea/version.rb CHANGED
@@ -4,5 +4,5 @@ module Ea
4
4
  # Gem release version. Extracted to its own file so the
5
5
  # `gem-release` tool's `gem bump` can find and update it via the
6
6
  # standard `lib/<gem>/version.rb` convention.
7
- VERSION = "0.6.37"
7
+ VERSION = "0.6.38"
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.37
4
+ version: 0.6.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.