ea 0.6.83 → 0.6.84

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: 126c208fadf3500d6ea19feca89981b075625d1a72689aaf210b3dfcc43b93f8
4
- data.tar.gz: dfe2a1034719f805c1030b252c58f3e743f08e04c895f33c949e7671a75a1c92
3
+ metadata.gz: 9f832ae5791222643e6e7182985e9cb0bd60727822ef4130ebab4ab569bb0712
4
+ data.tar.gz: 37c792d8131f8f1c66b3f202717006f0504eaba2f5a3ae39c26a1e0e76d08030
5
5
  SHA512:
6
- metadata.gz: bce49e4bfb8ee878ed8cc97acf353c765551d95c4855b130819f530ebcc3f58d4c1d3e8b0f4d21f63fd508d630e024fb76dc74838e0fba39c953a3c6972318e6
7
- data.tar.gz: 3fe8b1510bb215db65bd517f5a03ab42ca56362c12c7d2a99100ef500a5fb62709dc10a211d824e5f25a9f99b27c7f8569ff9151f355157afd5e07e8f9b8aec4
6
+ metadata.gz: cf364009435e091de0e334132846c79d024467578b5edf5a8a3bee5e9244dd7b3ba610ae8188c002965dc062c35e7e0118d907a92bf2691dd4a03f125dfd631c
7
+ data.tar.gz: a24e7e9fb2594e41a8012f72507b48b87d45a7fdee3f7990bda2f17416f3d0c60622d8186b2c77f9e5cb94558e4be5ba461bca4dc041223bac4393210c4065ea
@@ -115,7 +115,8 @@ module Ea
115
115
  font_bold: truthy?(style_hash[:bold]),
116
116
  font_italic: truthy?(style_hash[:italic]),
117
117
  font_underline: truthy?(style_hash[:ul]),
118
- show_tagged_values: truthy?(style_hash[:tag])
118
+ show_tagged_values: truthy?(style_hash[:tag]),
119
+ background_color: style_hash[:bcol]&.to_i
119
120
  )
120
121
  end
121
122
 
@@ -175,7 +175,7 @@ module Ea
175
175
  tagged_values_for(classifier).size,
176
176
  header_lines, classifier: classifier,
177
177
  constraints_count: constraints_for(classifier).size,
178
- marker_count: marker_lines_for(classifier).size,
178
+ marker_count: marker_lines_for(classifier, element).size,
179
179
  enum_literals_count: enum_row_count_for(classifier),
180
180
  attr_group_lead: Element::AttributeRenderer.group_lead_total(attr_lines))
181
181
  # EA suppresses the whole attribute compartment when its
@@ -198,7 +198,7 @@ module Ea
198
198
  tagged_values_for(classifier).size,
199
199
  header_lines, classifier: classifier,
200
200
  constraints_count: constraints_for(classifier).size,
201
- marker_count: marker_lines_for(classifier).size,
201
+ marker_count: marker_lines_for(classifier, element).size,
202
202
  enum_literals_count: enum_row_count_for(classifier),
203
203
  attr_group_lead: Element::AttributeRenderer.group_lead_total(attr_lines))
204
204
  end
@@ -218,7 +218,7 @@ module Ea
218
218
  tagged_values_for(classifier).size,
219
219
  header_lines, classifier: classifier,
220
220
  constraints_count: constraints_for(classifier).size,
221
- marker_count: marker_lines_for(classifier).size,
221
+ marker_count: marker_lines_for(classifier, element).size,
222
222
  enum_literals_count: enum_row_count_for(classifier),
223
223
  attr_group_lead: Element::AttributeRenderer.group_lead_total(attr_lines))
224
224
  elsif op_lines.any? && geometry.op_first_y &&
@@ -228,7 +228,7 @@ module Ea
228
228
  tagged_values_for(classifier).size,
229
229
  header_lines, classifier: classifier,
230
230
  constraints_count: constraints_for(classifier).size,
231
- marker_count: marker_lines_for(classifier).size,
231
+ marker_count: marker_lines_for(classifier, element).size,
232
232
  enum_literals_count: enum_row_count_for(classifier),
233
233
  attr_group_lead: Element::AttributeRenderer.group_lead_total(attr_lines))
234
234
  end
@@ -456,8 +456,13 @@ module Ea
456
456
  classifier.constraints || []
457
457
  end
458
458
 
459
- def marker_lines_for(classifier)
459
+ def marker_lines_for(classifier, element = nil)
460
460
  return [] unless classifier.is_a?(Ea::Model::Classifier)
461
+ # Boxes with an EXPLICIT background colour drop the
462
+ # {root}/{leaf} markers (corpus: every drawn marker sits on
463
+ # a BCol=-1/default box; custom-filled boxes like
464
+ # SY_RelativePlacement BCol=13816530 suppress it).
465
+ return [] if element&.background_color.to_i.positive?
461
466
 
462
467
  marker_line = root_leaf_marker_for(classifier)
463
468
  marker_line ? [marker_constraint(marker_line)] : []
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.83"
7
+ VERSION = "0.6.84"
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.83
4
+ version: 0.6.84
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-12 00:00:00.000000000 Z
11
+ date: 2026-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lutaml-model