ea 0.6.55 → 0.6.56

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: 7d4c834fa91906a0866bf29561214b7c9d140cb4b2a7106eb332f4ec029e56f1
4
- data.tar.gz: e99cb2ff135675ec69d47397c102bd67f07925d8e59565bbabf6b96fb70cb60d
3
+ metadata.gz: 295c984dad1eacc74382ca861c06b7c7e96313244f41df7a69f5e8292e9be26c
4
+ data.tar.gz: ae1c580213464dda7c7754fc2f7e09e8e7b5a4fb678ccf20f6dff8246aa39ca8
5
5
  SHA512:
6
- metadata.gz: 302544eb3d7bc17747114aac54f1aacb3b91c6f87340c699d4c35bb8eace2f76c9a4766fd675eb1d58d0c5faa039624124ee5d7dca75d36b7a2e6e109d9aef2c
7
- data.tar.gz: e5a86d18db02e980a690a2653529f17cd87b431ba7d7aee03683abe6f1fc3de9d4881347817735365a53575e234a91e0cca36364552a39d24e9b725a06932017
6
+ metadata.gz: 2472e05bef6dbce5a483645415acb8cb65e2908478384faa7a75af492589cc522c45e775c8a0dca4d49f79fb6ffb4f8e5da6346ab667c7820a7eea6d6418752c
7
+ data.tar.gz: 5c29eaa5a065744cf6cac9e738514fc6929a59a9c41f4726e266763a5738649b55a1b5321fb9278242ad3ddd1d18dbd1faf421cfc8dd52625db5fb05d0f6cccd
@@ -20,7 +20,8 @@ module Ea
20
20
  context.marker_lines,
21
21
  bounds: context.bounds,
22
22
  first_y: context.geometry.marker_first_y,
23
- family: context.family, size: context.size
23
+ family: context.family, size: context.size,
24
+ right_inset: 6
24
25
  )
25
26
  end
26
27
  end
@@ -12,14 +12,18 @@ module Ea
12
12
  # TK_Position: "{root}" x + textLength lands exactly on the
13
13
  # box right edge).
14
14
  class ConstraintRenderer
15
+ # right_inset: EA seats {root}/{leaf} marker text 6px inside
16
+ # the box's right edge (E0C65C12/47581C14: our flush
17
+ # right-aligned x is uniformly 6px right of EA's).
15
18
  def self.render(constraints, bounds:, first_y:, family:, size:,
16
- fill: "#000000")
19
+ fill: "#000000", right_inset: 0)
17
20
  line_h = size + 6
18
21
  text_blocks = constraints.each_with_index.map do |constraint, idx|
19
22
  content = "{#{constraint.name}}"
20
23
  x = bounds.x + bounds.width -
21
24
  TextRenderer.estimate_width(content, size, nil,
22
- family: family).round
25
+ family: family).round -
26
+ right_inset
23
27
  build_text(x, first_y + idx * line_h, content, family, size, fill)
24
28
  end
25
29
  %(<g style="#{Style::TEXT_GROUP}">\n#{text_blocks.join("\n")}\n</g>)
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.55"
7
+ VERSION = "0.6.56"
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.55
4
+ version: 0.6.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-10-06 00:00:00.000000000 Z
11
+ date: 2026-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lutaml-model