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 +4 -4
- data/lib/ea/svg/ea_emitter/bounds_calculator.rb +5 -1
- data/lib/ea/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 766805714007ed9c6bff335cc0cdcc0323276ff11cceee7e4982113d64b9f295
|
|
4
|
+
data.tar.gz: cb822f672eb96d3d298df5788c007e21d15003fb48232f503cd15c9f3caef76d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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) +
|
|
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