ea 0.6.73 → 0.6.74

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: b95d00db6e55925fdf4237788c41d12ce4c3345d4b986559ec3c4fe9f9c2fcb9
4
- data.tar.gz: b689f482ea923e86d9e70584580f1477221922e3b0230c7ad7c2b17a7817934b
3
+ metadata.gz: b9c1ef6bdc2910e595f6273edf3c1174ad436e97cf1e64fe36eebe987aaae2f9
4
+ data.tar.gz: 225f122ba3ad0b656676727487830b8627690a939826bfdc47a8cefd5b3a0e4a
5
5
  SHA512:
6
- metadata.gz: 82679b21f73c9fbef242d8417a171f15e4b7720860a568f91259163d31c696181db0852618218c68a6e186b73c4857b26a64d2c28ab83dc1a76223cd1fc02da9
7
- data.tar.gz: 344620a2f03b56849e800bbe2489933604054c958f3bff93b7182308f9a3e83d3d554102f92d6bc24afddcde2eff46e2eb8abf55a90e03b0759cfe8dcf500b3d
6
+ metadata.gz: 6d529c6c5341f735f8bc322b2be5e98d2ef4227aac85c30fe6fe54c1a66ca6f802c921a5bf1615ddef2d89944da8d5e79e7b9550926fe99167561dd7f80fe61a
7
+ data.tar.gz: 3f21953290853b36681e25b87332edd9aba7c0de8f40794c83e16dab896658a5a1627026cae8c0e941d4754ff0bb09ca6aab6b207646acb76dde982ad1c7ee4a
@@ -65,8 +65,10 @@ module Ea
65
65
  max_y = (pts + extra).map(&:last).max || 0
66
66
  return from(diagram, model_index: model_index) if pts.empty?
67
67
 
68
- inset_left = min_x.zero? ? INSET_TOUCHING_ORIGIN
69
- : BoundsCalculator::INSET_LEFT
68
+ # Same scaled rule as BoundsCalculator: drawn leftmost =
69
+ # min(35, 30 + min_x).
70
+ inset_left = [BoundsCalculator::INSET_LEFT - 5 + min_x,
71
+ BoundsCalculator::INSET_LEFT].min
70
72
  new(min_x: min_x, min_y: min_y,
71
73
  width: (max_x - min_x) + inset_left +
72
74
  BoundsCalculator::INSET_RIGHT,
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.73"
7
+ VERSION = "0.6.74"
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.73
4
+ version: 0.6.74
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.