ea 0.6.58 → 0.6.59
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/elements.rb +19 -1
- 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: 03263f382d36467afea7d44447f9b2646a39be885dfe20bf885ff5eb80390525
|
|
4
|
+
data.tar.gz: 81e3720bca00ed478bf1d0d867e843be04b41ce9d44070692c523dc29472a8df
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab5a2ee3102db43828bb8040a6ee29d08832a4ec44a3ec0ea16569cbd90f06a28eb9782de30bd0a8a8e60e34e88bd4b3d312123ca36a1cb9189162a1671123f7
|
|
7
|
+
data.tar.gz: 8902a964b4fc7d66c26ef56b3afa2a925a8a162ae28aadff9af233a12030f03280cac8f83a506d5be72a4dc82271c79bc091131755306e0f4d16e761d8bf85a5
|
|
@@ -251,7 +251,7 @@ module Ea
|
|
|
251
251
|
enum_literals_count: enum_literals_count,
|
|
252
252
|
header_top_padding: header_padding_for(header_lines, classifier),
|
|
253
253
|
header_line_offset: theme.compartments.header_line_offset,
|
|
254
|
-
divider_offset:
|
|
254
|
+
divider_offset: divider_offset_for(header_lines, classifier),
|
|
255
255
|
attr_line_offset: theme.compartments.attr_line_offset,
|
|
256
256
|
attr_first_offset: attr_first_offset_for(attr_lines))
|
|
257
257
|
end
|
|
@@ -262,6 +262,24 @@ module Ea
|
|
|
262
262
|
# (+13). Corpus-verified by identity-matched elements:
|
|
263
263
|
# Interface +13 x44 vs +16 x17, Enumeration +13 x13 vs +16
|
|
264
264
|
# x3, Class/Object/DataType +16 x515.
|
|
265
|
+
# True Interface-typed elements (fallback «interface» label,
|
|
266
|
+
# no stored stereotype) track the divider at last header + 9
|
|
267
|
+
# instead of +8: 96EFAA3B/936AA434 compartments sit one
|
|
268
|
+
# pixel lower than the class rule, while Class-typed elements
|
|
269
|
+
# carrying an explicit "interface" stereotype keep +8
|
|
270
|
+
# (5EA23C08's CoordinateSet).
|
|
271
|
+
def divider_offset_for(header_lines, classifier)
|
|
272
|
+
first = header_lines.first
|
|
273
|
+
return theme.compartments.divider_offset unless first
|
|
274
|
+
|
|
275
|
+
if classifier.is_a?(Ea::Model::Interface) &&
|
|
276
|
+
fallback_stereotype_label?(first.first, classifier)
|
|
277
|
+
9
|
|
278
|
+
else
|
|
279
|
+
theme.compartments.divider_offset
|
|
280
|
+
end
|
|
281
|
+
end
|
|
282
|
+
|
|
265
283
|
def header_padding_for(header_lines, classifier)
|
|
266
284
|
first = header_lines.first
|
|
267
285
|
return theme.compartments.header_top_padding unless first
|
data/lib/ea/version.rb
CHANGED