ea 0.6.28 → 0.6.29
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/marker/open_triangle.rb +13 -3
- 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: 521d4fdcc042ad06bd18a829f39810ccef7df8f750bbe229c6d7c38ea3e45c2e
|
|
4
|
+
data.tar.gz: 49f8e753ae47eda15409252023e894e66949e590c579c9da7fb4140acc74e550
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 151b418a45c19c998c41957ddb471127f6e110689372a01e046152024c271b10ccb069af527c877ee6404cfe22c0323f55232e9140ba5a4882b382534a26b4b6
|
|
7
|
+
data.tar.gz: d2b597bfebed6432a78285f8898d73ef6cfdbbf65362132eed375b387bdc0aa1cfb40ceddabea22695060b8467e70c94768618b7a102bca556f0ab5351882955
|
|
@@ -5,8 +5,13 @@ module Ea
|
|
|
5
5
|
module EaEmitter
|
|
6
6
|
module Marker
|
|
7
7
|
# Open triangle marker for UML generalization, realization,
|
|
8
|
-
# and dependency.
|
|
9
|
-
# general / supplier end
|
|
8
|
+
# and dependency. Generalization/Realization render a
|
|
9
|
+
# white-filled 3-point polygon at the general / supplier end;
|
|
10
|
+
# DEPENDENCY renders a line-style open path triangle (same
|
|
11
|
+
# style group as the connector line) — corpus-verified on
|
|
12
|
+
# E58034A3 where 22 directed dependencies converging on one
|
|
13
|
+
# package each draw a 'M a b L c d L a e' path triangle while
|
|
14
|
+
# the diagram's generalizations use polygons.
|
|
10
15
|
class OpenTriangle < Kind
|
|
11
16
|
def self.handles?(effective_type)
|
|
12
17
|
%w[Generalization Realization Dependency].include?(effective_type)
|
|
@@ -16,7 +21,12 @@ module Ea
|
|
|
16
21
|
whole_end_at_source = whole_end_at_source?(connector)
|
|
17
22
|
anchor = whole_end_at_source ? target : source
|
|
18
23
|
base = whole_end_at_source ? before_target : after_source
|
|
19
|
-
|
|
24
|
+
shape = effective_type?(connector) == "Dependency" ? :arrow : :triangle
|
|
25
|
+
[Registry::Spec.new(shape: shape, anchor: anchor, base: base)]
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def self.effective_type?(connector)
|
|
29
|
+
connector.connector_type
|
|
20
30
|
end
|
|
21
31
|
end
|
|
22
32
|
end
|
data/lib/ea/version.rb
CHANGED