ea 0.6.22 → 0.6.23

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: 995544bb338cd3ca1a632cd580c978aeb4e85e59e74cce7d35df5736714e397c
4
- data.tar.gz: c1039f763b50e27f87bfc94f72fdac4de3f542b4a21e7eeb19caf688563ffe9c
3
+ metadata.gz: 97806417f959531420feddb1143826efed14a41349b2e8909402dfba9fa8ba79
4
+ data.tar.gz: c312c7a1706cb9c1d42aa72c254665eea5dc8dc39435f6b8d2531a569bf33566
5
5
  SHA512:
6
- metadata.gz: cbc871ca5c043bc1555fb8940beebe50258bfe901df6b2b2e61a7f572ef103dff9aa757dd9896e555dea8da9bf8f17b5a72e8035caeab044dd9f58d5cd730e33
7
- data.tar.gz: 28a342b4ed8e0129e52f706982d3aa4d0504496fcb15f439158a5c6b8f39128fb1e3ac1dccc12033b55753876904fd9f7f659c66a8181abf3dd249d517ff0741
6
+ metadata.gz: 0df1c576f75d366c43d724f665328602b8ed8f82bf6ff49062e815956f63acd8f624ebb746624092b49307ffbbb28f39ffd22dbac522d32262020416f8e06c6a
7
+ data.tar.gz: e2b89b4df82927308d368fa3896abb5022957fc2b5235ef6f040b1f220aeab10617cca6831784457003aa7e213f13730a40b00e30897fe2dfff5e468d421db41
@@ -139,17 +139,21 @@ module Ea
139
139
  return nil unless tagged_values_count.to_i.positive? ||
140
140
  constraints_count.to_i.positive?
141
141
 
142
- content_bottom_y + size + 5
142
+ (content_bottom_y || raw_attr_first_y) + size + 5
143
143
  end
144
144
 
145
145
  # The lowest content edge among attributes, enum literals,
146
146
  # operations, and constraints — the anchor for trailing
147
147
  # compartments and the autosize height.
148
+ # Nil when no compartment rows render (header-only box):
149
+ # the autosize gate must not treat the empty-compartment
150
+ # anchor as content.
148
151
  def content_bottom_y
149
- bottoms = [attr_bottom_y]
152
+ bottoms = []
153
+ bottoms << attr_bottom_y if attr_lines_count.to_i.positive?
150
154
  bottoms << enum_literals_bottom_y if enum_literals_count.to_i.positive?
151
155
  bottoms << op_bottom_y if op_lines_count.to_i.positive?
152
- bottoms.compact.max
156
+ bottoms.max
153
157
  end
154
158
 
155
159
  def enum_literals_bottom_y
@@ -73,7 +73,8 @@ module Ea
73
73
  off_canvas_parent_name: parent_name,
74
74
  foreign_package_name: foreign_package_name_for(classifier)) : []
75
75
  is_classifier = classifier.is_a?(Ea::Model::Classifier)
76
- attr_lines = if is_classifier && show_attributes?
76
+ attr_lines = if is_classifier && show_attributes? &&
77
+ !classifier.is_a?(Ea::Model::Interface)
77
78
  Element::AttributeRenderer.lines_for(
78
79
  classifier, lookup: attribute_lookup,
79
80
  exclude_association_ids: drawn_association_ids
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.22"
7
+ VERSION = "0.6.23"
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.22
4
+ version: 0.6.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.