ea 0.6.32 → 0.6.33

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: 6e23a708761ca82e0a23584e7c5ee557251532481defbd16712c676963ad7fbe
4
- data.tar.gz: dfaeae3624f35848cf7d801e5fdf9c1bf990fa162514838353b98b282da76e51
3
+ metadata.gz: e63b36fde438e5d088ee091f1a7e9612eb93d379d066d3abaebca6e3495b3d16
4
+ data.tar.gz: fbe7073cfddcd4bb861cb7ea238ea436a7f3f5bab5d661e928b2df596bdde92a
5
5
  SHA512:
6
- metadata.gz: 8efc865e83d8c43843f276c3307158b90ea6674bdf252f39804c48f8cab7c98c765536f1b382773efe2a4a6fd629f97acb6e35d37fd545cdcd5a70f18b98f387
7
- data.tar.gz: 9eee4896484462b96f7060de2700e893ab4cd2a76b6d4ee7217e1908d5003767914d4e80a9c06a9cea8723ca609f2bae965b903a86660000d2690d39ca442e92
6
+ metadata.gz: e1a3392ff7069a1c9287e94997c9d516ac5ee358fb66f76bf27a310615bcaad6e4daeffb135bbda464976e6cccf24e9d40999fabbec64c2f3a863e0bb5b60b3d
7
+ data.tar.gz: 55d8d38d9bc7d613f0673863b6f6ace24bad435d1e59b9662fada852bc38248abcacb5f211f466566b668abfcb7a368c129a57e34b58b389d6621a8b5fa13cde
@@ -182,7 +182,12 @@ module Ea
182
182
  target_stereotype: conn.deststereotype,
183
183
  waypoints: waypoints,
184
184
  label_boxes: {},
185
- style: { direct: true },
185
+ # Only the Dependency family carries EA's double-back
186
+ # "M t L s M t" byte form; regenerated generalizations
187
+ # and associations draw as plain source-first lines
188
+ # (0CABA7D7's gen "M 125 130 L 125 99"; 568CDFC9's
189
+ # regenerated assocs).
190
+ style: conn.connector_type == "Dependency" ? { direct: true } : {},
186
191
  hidden: false,
187
192
  has_geometry_offsets: false
188
193
  )
@@ -101,7 +101,13 @@ module Ea
101
101
  # baseline + text descent (~4px) against the box bottom:
102
102
  # TK_PositionType keeps 7 rows ending 6px above the bottom,
103
103
  # while a 13px-tighter box loses them all.
104
+ # The drop applies only to association-derived property
105
+ # rows (AOS/CityFurniture). When the element has REAL
106
+ # attributes EA instead GROWS the drawn box past the
107
+ # stored height and shows every row (0CABA7D7: parent at
108
+ # stored h44 draws at h59 with +minimumOccurs visible).
104
109
  if attr_lines.any? &&
110
+ !classifier.properties.to_a.any? { |p| !p.association_id } &&
105
111
  geometry.attr_bottom_y.to_i > bounds.y + bounds.height
106
112
  attr_lines = []
107
113
  geometry = compartment_geometry(bounds, size, attr_lines, op_lines,
@@ -123,6 +129,24 @@ module Ea
123
129
  marker_count: marker_lines_for(classifier).size,
124
130
  enum_literals_count: enum_row_count_for(classifier))
125
131
  end
132
+ # Real attributes grow the DRAWN box past the stored
133
+ # height instead of being dropped (0CABA7D7: stored h44
134
+ # draws at h59). Grown height = last row baseline + EA's
135
+ # ~8px bottom padding. Render-local: the diagram-level
136
+ # canvas still derives from stored bounds.
137
+ # content_bottom_y is nil when no compartment has rows;
138
+ # op_bottom_y is NOT a sentinel (it reports the op-divider
139
+ # position even with zero operations), so it must stay out
140
+ # of the max.
141
+ grown_bottom = geometry.content_bottom_y.to_i
142
+ if attr_lines.any? && grown_bottom.positive? &&
143
+ grown_bottom + 8 > bounds.y + bounds.height
144
+ bounds = Ea::Model::Bounds.new(
145
+ x: bounds.x, y: bounds.y,
146
+ width: bounds.width,
147
+ height: grown_bottom + 8 - bounds.y
148
+ )
149
+ end
126
150
  RenderContext.new(
127
151
  element: element,
128
152
  bounds: bounds,
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.32"
7
+ VERSION = "0.6.33"
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.32
4
+ version: 0.6.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.