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 +4 -4
- data/lib/ea/sources/qea/diagram_builder.rb +6 -1
- data/lib/ea/svg/ea_emitter/elements.rb +24 -0
- data/lib/ea/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e63b36fde438e5d088ee091f1a7e9612eb93d379d066d3abaebca6e3495b3d16
|
|
4
|
+
data.tar.gz: fbe7073cfddcd4bb861cb7ea238ea436a7f3f5bab5d661e928b2df596bdde92a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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