ea 0.6.69 → 0.6.71
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: d92a28114b6cefd52d187f0ef2df4e5cbce55230607e10fa0bc8ca1c2b355434
|
|
4
|
+
data.tar.gz: 3f6a7d83031a48cd713ea87ed50efc3d49e204ec8a1b0278a6f0a435b6766cce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '08102b851ec4bcc5e44c6b175e8ecc0f2b76a0cae11b0ae449b85b6080659a16578d2663b666181d770277a53f77c34e5403bcead7974008e4676ccd374846dd'
|
|
7
|
+
data.tar.gz: ecd88b4905c9b80ae88f81dc528c23611caa2d07c202eb361c3c259b2d0a71c62af66d108ba5f971b69f4f84fe8370094a43aea7fbef8d838f48700457041281
|
|
@@ -45,6 +45,21 @@ module Ea
|
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
def caption?(context)
|
|
48
|
+
values_caption?(context) || grown?(context)
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# EA draws the 'literals' caption on every enum box it
|
|
52
|
+
# re-lays (grown height) - corpus 8/8 grown=caption. Boxes
|
|
53
|
+
# keeping stored size keep their stored caption state,
|
|
54
|
+
# captured by the stored literal values.
|
|
55
|
+
def grown?(context)
|
|
56
|
+
stored = context.element&.bounds
|
|
57
|
+
return false unless stored
|
|
58
|
+
|
|
59
|
+
context.bounds.height > stored.height + 4
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def values_caption?(context)
|
|
48
63
|
context.enum_literals.any? do |l|
|
|
49
64
|
value = l.value.to_s
|
|
50
65
|
!value.empty? && value != l.name.to_s
|
|
@@ -30,9 +30,17 @@ module Ea
|
|
|
30
30
|
@theme = theme || Ea::Theme::Registry.default
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
+
# Families EA stores as "use default" markers - the export
|
|
34
|
+
# renders them with the theme font (corpus-wide, no published
|
|
35
|
+
# SVG ever carries Yu Gothic UI).
|
|
36
|
+
DEFAULT_MARKER_FAMILIES = ["Yu Gothic UI"].freeze
|
|
37
|
+
|
|
33
38
|
def family_for(element)
|
|
34
39
|
explicit = element&.font_family
|
|
35
|
-
|
|
40
|
+
unless explicit.nil? || explicit.empty? ||
|
|
41
|
+
DEFAULT_MARKER_FAMILIES.include?(explicit)
|
|
42
|
+
return explicit
|
|
43
|
+
end
|
|
36
44
|
return theme.font_family if theme.themed? && theme.font_family
|
|
37
45
|
|
|
38
46
|
diagram_default_family || DEFAULT_FONT_FAMILY
|
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.71
|
|
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-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lutaml-model
|