ea 0.6.65 → 0.6.67
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/element/operation_renderer.rb +1 -1
- data/lib/ea/svg/ea_emitter/elements.rb +11 -5
- data/lib/ea/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cd6ba69d90eb60d981290b5b07467b15b44a95859723aeaa9a3d1ba2d2a8cc82
|
|
4
|
+
data.tar.gz: d70d59e8e12fb1fef32cdcbfaadfeaf9f80b9eb633a4f86d55fde8bddf6e9832
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a42427c7db0b6015749560e6239752c5ad8ac6b2daed788c91ea6a1cbfa22460e132388928e82503d06749a2b85bab00198d5250db422c0bd7beaaa4baba6df2
|
|
7
|
+
data.tar.gz: 914844e0e278292ed0e918cebcfeda3268d79fff8afc679b4c1c5a4e64fce104271e08f73b3bf7c0430d32cb71f5c0e234707215ef0a01c24b098756af1a2314
|
|
@@ -14,7 +14,7 @@ module Ea
|
|
|
14
14
|
# compartment for Klass / Interface classifiers.
|
|
15
15
|
class OperationRenderer
|
|
16
16
|
VISIBILITY_X_OFFSET = 5
|
|
17
|
-
CONTENT_X_OFFSET =
|
|
17
|
+
CONTENT_X_OFFSET = 22
|
|
18
18
|
|
|
19
19
|
def self.render(operations, bounds:, first_y:, family:, size:)
|
|
20
20
|
# EA's op rows pitch 13 (size + 6), same as attribute
|
|
@@ -124,8 +124,15 @@ module Ea
|
|
|
124
124
|
# attribute rows (936AA434/Surface lists its nine 19107
|
|
125
125
|
# attributes); the earlier corpus evidence for
|
|
126
126
|
# header-only interfaces was zero-attribute leaf types.
|
|
127
|
+
# Regenerated contexts ignore stored per-element visibility
|
|
128
|
+
# toggles - EXCEPT for boxes whose only rows are
|
|
129
|
+
# association-derived properties (5833A95E keeps those
|
|
130
|
+
# suppressed even on FOC=0; 0CABA7D7 shows its association
|
|
131
|
+
# row because the class also owns real attributes).
|
|
127
132
|
attr_lines = if is_classifier && show_attributes? &&
|
|
128
|
-
attributes_visible?(element)
|
|
133
|
+
(attributes_visible?(element) ||
|
|
134
|
+
(regenerated_context? &&
|
|
135
|
+
classifier.properties.to_a.any? { |pr| !pr.association_id }))
|
|
129
136
|
Element::AttributeRenderer.lines_for(
|
|
130
137
|
classifier, lookup: attribute_lookup,
|
|
131
138
|
exclude_association_ids: drawn_association_ids
|
|
@@ -133,8 +140,8 @@ module Ea
|
|
|
133
140
|
else
|
|
134
141
|
[]
|
|
135
142
|
end
|
|
136
|
-
op_lines = if is_classifier && show_operations? &&
|
|
137
|
-
|
|
143
|
+
op_lines = if is_classifier && show_operations? &&
|
|
144
|
+
(operations_visible?(element) || regenerated_context?)
|
|
138
145
|
Element::OperationRenderer.lines_for(classifier)
|
|
139
146
|
else
|
|
140
147
|
[]
|
|
@@ -472,8 +479,7 @@ module Ea
|
|
|
472
479
|
# (descendant packages included). Corpus-verified (450
|
|
473
480
|
# diagrams): ShowForeign=0 renders plain everywhere.
|
|
474
481
|
def regenerated_context?
|
|
475
|
-
diagram.
|
|
476
|
-
diagram.style_ex.to_s !~ /SuppressFOC=1/
|
|
482
|
+
diagram.style_ex.to_s !~ /SuppressFOC=1/
|
|
477
483
|
end
|
|
478
484
|
|
|
479
485
|
def foreign_package_name_for(classifier)
|
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.67
|
|
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-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lutaml-model
|