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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 295c984dad1eacc74382ca861c06b7c7e96313244f41df7a69f5e8292e9be26c
|
|
4
|
+
data.tar.gz: ae1c580213464dda7c7754fc2f7e09e8e7b5a4fb678ccf20f6dff8246aa39ca8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2472e05bef6dbce5a483645415acb8cb65e2908478384faa7a75af492589cc522c45e775c8a0dca4d49f79fb6ffb4f8e5da6346ab667c7820a7eea6d6418752c
|
|
7
|
+
data.tar.gz: 5c29eaa5a065744cf6cac9e738514fc6929a59a9c41f4726e266763a5738649b55a1b5321fb9278242ad3ddd1d18dbd1faf421cfc8dd52625db5fb05d0f6cccd
|
|
@@ -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
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.
|
|
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-
|
|
11
|
+
date: 2026-10-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lutaml-model
|