ea 0.6.151 → 0.6.153
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/config/qea_schema.yml +0 -85
- data/lib/ea/cli/command/list.rb +30 -12
- data/lib/ea/cli/command.rb +0 -1
- data/lib/ea/export/plantuml/generator.rb +45 -32
- data/lib/ea/spa/projector.rb +36 -19
- data/lib/ea/svg/ea_emitter/diagram_frame.rb +25 -12
- data/lib/ea/theme/definition.rb +167 -16
- data/lib/ea/theme/loader.rb +129 -107
- data/lib/ea/theme/theme_document.rb +53 -0
- data/lib/ea/theme.rb +1 -0
- data/lib/ea/transformers/qea_to_xmi/extension_serializer.rb +6 -2
- data/lib/ea/transformers/qea_to_xmi/transformer.rb +2 -1
- data/lib/ea/transformers.rb +1 -10
- data/lib/ea/version.rb +1 -1
- data/lib/ea.rb +0 -1
- metadata +2 -9
- data/config/diagram_styles.yml +0 -200
- data/config/model_transformations.yml +0 -266
- data/lib/ea/cli/command/repository_builder.rb +0 -64
- data/lib/ea/transformers/uml_to_xmi/id_generator.rb +0 -54
- data/lib/ea/transformers/uml_to_xmi/transformer.rb +0 -152
- data/lib/ea/transformers/uml_to_xmi/writer.rb +0 -96
- data/lib/ea/validation/xmi_parity.rb +0 -80
- data/lib/ea/validation.rb +0 -12
data/lib/ea/theme/loader.rb
CHANGED
|
@@ -2,32 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
module Ea
|
|
4
4
|
module Theme
|
|
5
|
-
# Loads theme
|
|
6
|
-
#
|
|
7
|
-
# YAML format (see config/themes/119.yml):
|
|
8
|
-
#
|
|
9
|
-
# id: "119"
|
|
10
|
-
# name: EA White Theme
|
|
11
|
-
# font: { family: Carlito, size: 7, unit: pt, weight_normal: 400, ... }
|
|
12
|
-
# element_font: { size: 9, unit: pt }
|
|
13
|
-
# label_font: { family: Cambria, size: 7, unit: pt }
|
|
14
|
-
# colors: { text: "#000000", attribute_text: "#336699", ... }
|
|
15
|
-
# strokes: { element_border: 2, connector_line: 2, ... }
|
|
16
|
-
# text_metrics: { width_factor: 0.65 }
|
|
17
|
-
# canvas: { inset_left: 35, inset_right: 50, ... }
|
|
18
|
-
# frame: { inset: 6, tab_height: 20, ... }
|
|
19
|
-
# compartments: { header_line_offset: 4, ... }
|
|
20
|
-
# attribute: { visibility_x_offset: 5, content_x_offset: 20 }
|
|
21
|
-
# markers: { diamond_half_width: 5, ... }
|
|
22
|
-
# package: { tab_height: 20, ... }
|
|
23
|
-
# note: { fold_size: 12, ... }
|
|
24
|
-
# fills: {}
|
|
5
|
+
# Loads theme YAML files into Ea::Theme::Definition.
|
|
25
6
|
#
|
|
7
|
+
# The YAML wire shape is parsed by {ThemeDocument} through
|
|
8
|
+
# lutaml-model mappings (group classes declared under Definition);
|
|
9
|
+
# this loader flattens the parsed groups into Definition
|
|
10
|
+
# constructor arguments, applying the same group coalescing
|
|
11
|
+
# defaults the renderer contract has always used.
|
|
26
12
|
class Loader
|
|
27
13
|
class << self
|
|
28
14
|
def load_file(path)
|
|
29
|
-
|
|
30
|
-
from_hash(data)
|
|
15
|
+
from_document(ThemeDocument.from_yaml(File.read(path)))
|
|
31
16
|
end
|
|
32
17
|
|
|
33
18
|
def load_dir(dir)
|
|
@@ -36,95 +21,132 @@ module Ea
|
|
|
36
21
|
|
|
37
22
|
private
|
|
38
23
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
label_font =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
frame = data["frame"] || {}
|
|
48
|
-
comps = data["compartments"] || {}
|
|
49
|
-
attr_cfg = data["attribute"] || {}
|
|
50
|
-
marker_cfg = data["markers"] || {}
|
|
51
|
-
pkg_cfg = data["package"] || {}
|
|
52
|
-
note_cfg = data["note"] || {}
|
|
24
|
+
# rubocop:disable Metrics/AbcSize, Metrics/MethodLength
|
|
25
|
+
def from_document(doc)
|
|
26
|
+
font = doc.font || Definition::FontSpec.new
|
|
27
|
+
label_font = doc.label_font || Definition::FontSpec.new
|
|
28
|
+
element_font = doc.element_font || Definition::FontSpec.new
|
|
29
|
+
colors = doc.colors || Definition::ColorsSpec.new
|
|
30
|
+
strokes = doc.strokes || Definition::StrokesSpec.new
|
|
31
|
+
text_metrics = doc.text_metrics || Definition::TextMetricsSpec.new
|
|
53
32
|
|
|
54
33
|
Definition.new(
|
|
55
|
-
id:
|
|
56
|
-
name:
|
|
57
|
-
font_family: font
|
|
58
|
-
label_font_family: label_font
|
|
59
|
-
label_font_size: label_font
|
|
60
|
-
label_font_size_unit: label_font
|
|
61
|
-
font_size: font
|
|
62
|
-
font_size_unit: font
|
|
63
|
-
text_weight_normal: font
|
|
64
|
-
text_weight_bold: font
|
|
65
|
-
element_font_family:
|
|
66
|
-
element_font_size:
|
|
67
|
-
element_font_unit:
|
|
68
|
-
text_color: colors
|
|
69
|
-
attribute_text_color: colors
|
|
70
|
-
method_text_color: colors
|
|
71
|
-
border_color: colors
|
|
72
|
-
fill_color: colors
|
|
73
|
-
background_color: colors
|
|
74
|
-
stroke_in_text_color: colors
|
|
75
|
-
element_border_width: strokes
|
|
76
|
-
connector_line_width: strokes
|
|
77
|
-
divider_stroke_width: strokes
|
|
78
|
-
marker_stroke_width: strokes
|
|
79
|
-
text_width_factor: text_metrics
|
|
80
|
-
geometry: canvas
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
),
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
34
|
+
id: doc.id,
|
|
35
|
+
name: doc.name,
|
|
36
|
+
font_family: font.family,
|
|
37
|
+
label_font_family: label_font.family,
|
|
38
|
+
label_font_size: label_font.size,
|
|
39
|
+
label_font_size_unit: label_font.unit,
|
|
40
|
+
font_size: font.size,
|
|
41
|
+
font_size_unit: font.unit || "pt",
|
|
42
|
+
text_weight_normal: font.weight_normal || 400,
|
|
43
|
+
text_weight_bold: font.weight_bold || 700,
|
|
44
|
+
element_font_family: element_font.family,
|
|
45
|
+
element_font_size: element_font.size || 9,
|
|
46
|
+
element_font_unit: element_font.unit || "pt",
|
|
47
|
+
text_color: colors.text || "#000000",
|
|
48
|
+
attribute_text_color: colors.attribute_text || colors.text || "#000000",
|
|
49
|
+
method_text_color: colors.method_text,
|
|
50
|
+
border_color: colors.border || "#000000",
|
|
51
|
+
fill_color: colors.fill || "#FFFFFF",
|
|
52
|
+
background_color: colors.background || "#FFFFFF",
|
|
53
|
+
stroke_in_text_color: colors.stroke_in_text || "#000000",
|
|
54
|
+
element_border_width: strokes.element_border || 2,
|
|
55
|
+
connector_line_width: strokes.connector_line || 2,
|
|
56
|
+
divider_stroke_width: strokes.divider || 2,
|
|
57
|
+
marker_stroke_width: strokes.marker || 2,
|
|
58
|
+
text_width_factor: text_metrics.width_factor || 0.65,
|
|
59
|
+
geometry: geometry_from(doc.canvas),
|
|
60
|
+
frame: frame_from(doc.frame),
|
|
61
|
+
compartments: compartments_from(doc.compartments),
|
|
62
|
+
attribute_spec: attribute_spec_from(doc.attribute),
|
|
63
|
+
markers: markers_from(doc.markers),
|
|
64
|
+
package: package_from(doc.package),
|
|
65
|
+
note: note_from(doc.note),
|
|
66
|
+
fills: doc.fills || {}
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
def geometry_from(canvas)
|
|
71
|
+
return unless canvas
|
|
72
|
+
|
|
73
|
+
Definition::Geometry.new(
|
|
74
|
+
inset_left: canvas.inset_left || 35,
|
|
75
|
+
inset_right: canvas.inset_right || 50,
|
|
76
|
+
inset_top: canvas.inset_top || 40,
|
|
77
|
+
inset_bottom: canvas.inset_bottom || 57
|
|
78
|
+
)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
def frame_from(frame)
|
|
82
|
+
return unless frame
|
|
83
|
+
|
|
84
|
+
Definition::FrameSpec.new(
|
|
85
|
+
inset: frame.inset || 6,
|
|
86
|
+
tab_height: frame.tab_height || 20,
|
|
87
|
+
tab_slant: frame.tab_slant || 13,
|
|
88
|
+
tab_label_x: frame.tab_label_x || 11,
|
|
89
|
+
tab_label_y: frame.tab_label_y || 19,
|
|
90
|
+
tab_padding: frame.tab_padding || 7
|
|
91
|
+
)
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
def compartments_from(comps)
|
|
95
|
+
return unless comps
|
|
96
|
+
|
|
97
|
+
Definition::CompartmentSpec.new(
|
|
98
|
+
header_top_padding: comps.header_top_padding || 12,
|
|
99
|
+
header_line_offset: comps.header_line_offset || 6,
|
|
100
|
+
divider_offset: comps.divider_offset || 8,
|
|
101
|
+
attr_line_offset: comps.attr_line_offset || 7,
|
|
102
|
+
attr_first_offset: comps.attr_first_offset || 7,
|
|
103
|
+
op_line_offset: comps.op_line_offset || 4
|
|
104
|
+
)
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
def attribute_spec_from(attr_cfg)
|
|
108
|
+
return unless attr_cfg
|
|
109
|
+
|
|
110
|
+
Definition::AttrSpec.new(
|
|
111
|
+
visibility_x_offset: attr_cfg.visibility_x_offset || 5,
|
|
112
|
+
content_x_offset: attr_cfg.content_x_offset || 26
|
|
113
|
+
)
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
def markers_from(marker_cfg)
|
|
117
|
+
return unless marker_cfg
|
|
118
|
+
|
|
119
|
+
Definition::MarkerSpec.new(
|
|
120
|
+
diamond_half_width: marker_cfg.diamond_half_width || 5,
|
|
121
|
+
diamond_half_height: marker_cfg.diamond_half_height || 10,
|
|
122
|
+
triangle_half_base: marker_cfg.triangle_half_base || 6,
|
|
123
|
+
triangle_height: marker_cfg.triangle_height || 11,
|
|
124
|
+
arrow_half_base: marker_cfg.arrow_half_base || 6,
|
|
125
|
+
arrow_height: marker_cfg.arrow_height || 11
|
|
126
|
+
)
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
def package_from(pkg_cfg)
|
|
130
|
+
return unless pkg_cfg
|
|
131
|
+
|
|
132
|
+
Definition::PackageSpec.new(
|
|
133
|
+
tab_height: pkg_cfg.tab_height || 20,
|
|
134
|
+
tab_label_padding: pkg_cfg.tab_label_padding || 10,
|
|
135
|
+
default_tab_width: pkg_cfg.default_tab_width || 105
|
|
136
|
+
)
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
def note_from(note_cfg)
|
|
140
|
+
return unless note_cfg
|
|
141
|
+
|
|
142
|
+
Definition::NoteSpec.new(
|
|
143
|
+
fold_size: note_cfg.fold_size || 12,
|
|
144
|
+
text_x_offset: note_cfg.text_x_offset || 5,
|
|
145
|
+
text_y_offset: note_cfg.text_y_offset || 12,
|
|
146
|
+
line_height: note_cfg.line_height || 12
|
|
126
147
|
)
|
|
127
148
|
end
|
|
149
|
+
# rubocop:enable Metrics/AbcSize, Metrics/MethodLength
|
|
128
150
|
end
|
|
129
151
|
end
|
|
130
152
|
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "lutaml/model"
|
|
4
|
+
|
|
5
|
+
module Ea
|
|
6
|
+
module Theme
|
|
7
|
+
# Framework-declared YAML wire mapping for theme files.
|
|
8
|
+
#
|
|
9
|
+
# Theme files group values under keys (font/colors/strokes/…)
|
|
10
|
+
# while Ea::Theme::Definition flattens them into constructor
|
|
11
|
+
# arguments. This document parses the nested wire shape through
|
|
12
|
+
# lutaml-model mappings (see the group spec classes under
|
|
13
|
+
# Definition); Loader flattens the parsed groups into Definition
|
|
14
|
+
# arguments and applies the group coalescing defaults.
|
|
15
|
+
class ThemeDocument < Lutaml::Model::Serializable
|
|
16
|
+
attribute :id, :string
|
|
17
|
+
attribute :name, :string
|
|
18
|
+
attribute :font, Definition::FontSpec
|
|
19
|
+
attribute :label_font, Definition::FontSpec
|
|
20
|
+
attribute :element_font, Definition::FontSpec
|
|
21
|
+
attribute :colors, Definition::ColorsSpec
|
|
22
|
+
attribute :strokes, Definition::StrokesSpec
|
|
23
|
+
attribute :text_metrics, Definition::TextMetricsSpec
|
|
24
|
+
attribute :canvas, Definition::Geometry
|
|
25
|
+
attribute :frame, Definition::FrameSpec
|
|
26
|
+
attribute :compartments, Definition::CompartmentSpec
|
|
27
|
+
attribute :attribute, Definition::AttrSpec
|
|
28
|
+
attribute :markers, Definition::MarkerSpec
|
|
29
|
+
attribute :package, Definition::PackageSpec
|
|
30
|
+
attribute :note, Definition::NoteSpec
|
|
31
|
+
attribute :fills, :hash
|
|
32
|
+
|
|
33
|
+
yaml do
|
|
34
|
+
map "id", to: :id
|
|
35
|
+
map "name", to: :name
|
|
36
|
+
map "font", to: :font
|
|
37
|
+
map "label_font", to: :label_font
|
|
38
|
+
map "element_font", to: :element_font
|
|
39
|
+
map "colors", to: :colors
|
|
40
|
+
map "strokes", to: :strokes
|
|
41
|
+
map "text_metrics", to: :text_metrics
|
|
42
|
+
map "canvas", to: :canvas
|
|
43
|
+
map "frame", to: :frame
|
|
44
|
+
map "compartments", to: :compartments
|
|
45
|
+
map "attribute", to: :attribute
|
|
46
|
+
map "markers", to: :markers
|
|
47
|
+
map "package", to: :package
|
|
48
|
+
map "note", to: :note
|
|
49
|
+
map "fills", to: :fills
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
data/lib/ea/theme.rb
CHANGED
|
@@ -414,7 +414,7 @@ module Ea
|
|
|
414
414
|
if note.nil? || note.empty?
|
|
415
415
|
"\t\t\t\t\t<documentation/>"
|
|
416
416
|
else
|
|
417
|
-
%(\t\t\t\t\t<documentation value="#{escape(note)}"/>)
|
|
417
|
+
%(\t\t\t\t\t<documentation value="#{escape(Ea::Rtf.to_text(note))}"/>)
|
|
418
418
|
end
|
|
419
419
|
end
|
|
420
420
|
|
|
@@ -673,8 +673,12 @@ module Ea
|
|
|
673
673
|
# Returns the documentation string for a record. Package notes
|
|
674
674
|
# and object notes come from different columns; both flow
|
|
675
675
|
# through here as the <properties documentation="..."> value.
|
|
676
|
+
# EA stores styled notes as RTF; export plain text like EA's
|
|
677
|
+
# own XMI output does.
|
|
676
678
|
def record_documentation(note)
|
|
677
|
-
note.nil? || note.empty?
|
|
679
|
+
return nil if note.nil? || note.empty?
|
|
680
|
+
|
|
681
|
+
Ea::Rtf.to_text(note)
|
|
678
682
|
end
|
|
679
683
|
|
|
680
684
|
def escape(text)
|
data/lib/ea/transformers.rb
CHANGED
|
@@ -3,23 +3,14 @@
|
|
|
3
3
|
module Ea
|
|
4
4
|
# Output transformers — converts domain models to interchange formats.
|
|
5
5
|
#
|
|
6
|
-
#
|
|
6
|
+
# Single entry point:
|
|
7
7
|
#
|
|
8
|
-
# {uml_to_xmi} — lossy, takes a Lutaml::Uml::Document (cross-tool use)
|
|
9
8
|
# {qea_to_xmi} — full fidelity, takes an Ea::Qea::Database
|
|
10
9
|
# (Sparx-to-Sparx round-trip)
|
|
11
10
|
module Transformers
|
|
12
|
-
autoload :UmlToXmi, "ea/transformers/uml_to_xmi"
|
|
13
11
|
autoload :QeaToXmi, "ea/transformers/qea_to_xmi"
|
|
14
12
|
|
|
15
13
|
class << self
|
|
16
|
-
# Lossy: any Lutaml::Uml::Document → Sparx XMI (cross-tool).
|
|
17
|
-
# @param document [Lutaml::Uml::Document]
|
|
18
|
-
# @return [String] XMI XML
|
|
19
|
-
def uml_to_xmi(document)
|
|
20
|
-
UmlToXmi::Transformer.new(document).serialize
|
|
21
|
-
end
|
|
22
|
-
|
|
23
14
|
# Full fidelity: Ea::Qea::Database → Sparx XMI.
|
|
24
15
|
# Walks the QEA tables directly — no intermediate UML model, no loss of
|
|
25
16
|
# Sparx-specific concepts (stereotypes, tagged values, multiplicities,
|
data/lib/ea/version.rb
CHANGED
data/lib/ea.rb
CHANGED
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.
|
|
4
|
+
version: 0.6.153
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
@@ -180,8 +180,6 @@ files:
|
|
|
180
180
|
- LICENSE.md
|
|
181
181
|
- README.adoc
|
|
182
182
|
- README.md
|
|
183
|
-
- config/diagram_styles.yml
|
|
184
|
-
- config/model_transformations.yml
|
|
185
183
|
- config/qea_schema.yml
|
|
186
184
|
- config/stereotype_colors.yml
|
|
187
185
|
- config/themes/119.yml
|
|
@@ -207,7 +205,6 @@ files:
|
|
|
207
205
|
- lib/ea/cli/command/parse.rb
|
|
208
206
|
- lib/ea/cli/command/query.rb
|
|
209
207
|
- lib/ea/cli/command/render.rb
|
|
210
|
-
- lib/ea/cli/command/repository_builder.rb
|
|
211
208
|
- lib/ea/cli/command/spa.rb
|
|
212
209
|
- lib/ea/cli/command/stats.rb
|
|
213
210
|
- lib/ea/cli/command/svg.rb
|
|
@@ -622,6 +619,7 @@ files:
|
|
|
622
619
|
- lib/ea/theme/definition.rb
|
|
623
620
|
- lib/ea/theme/loader.rb
|
|
624
621
|
- lib/ea/theme/registry.rb
|
|
622
|
+
- lib/ea/theme/theme_document.rb
|
|
625
623
|
- lib/ea/transformations.rb
|
|
626
624
|
- lib/ea/transformers.rb
|
|
627
625
|
- lib/ea/transformers/qea_to_xmi.rb
|
|
@@ -637,11 +635,6 @@ files:
|
|
|
637
635
|
- lib/ea/transformers/qea_to_xmi/transformer.rb
|
|
638
636
|
- lib/ea/transformers/qea_to_xmi/visibility.rb
|
|
639
637
|
- lib/ea/transformers/uml_to_xmi.rb
|
|
640
|
-
- lib/ea/transformers/uml_to_xmi/id_generator.rb
|
|
641
|
-
- lib/ea/transformers/uml_to_xmi/transformer.rb
|
|
642
|
-
- lib/ea/transformers/uml_to_xmi/writer.rb
|
|
643
|
-
- lib/ea/validation.rb
|
|
644
|
-
- lib/ea/validation/xmi_parity.rb
|
|
645
638
|
- lib/ea/version.rb
|
|
646
639
|
- lib/ea/xmi.rb
|
|
647
640
|
- lib/ea/xmi/liquid_drops/association_drop.rb
|
data/config/diagram_styles.yml
DELETED
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
# diagram_styles.yml - Configurable EA Diagram Styling
|
|
2
|
-
# This file defines the default styling for LutaML diagram generation
|
|
3
|
-
|
|
4
|
-
# Global defaults - applied when no other configuration matches
|
|
5
|
-
defaults:
|
|
6
|
-
colors:
|
|
7
|
-
background: "#FFFFFF"
|
|
8
|
-
default_fill: "#E0E0E0"
|
|
9
|
-
default_stroke: "#000000"
|
|
10
|
-
text: "#000000"
|
|
11
|
-
|
|
12
|
-
fonts:
|
|
13
|
-
default:
|
|
14
|
-
family: "Carlito, Arial, sans-serif"
|
|
15
|
-
size: 9
|
|
16
|
-
weight: 400
|
|
17
|
-
style: normal
|
|
18
|
-
|
|
19
|
-
class_name:
|
|
20
|
-
family: "Carlito, Arial, sans-serif"
|
|
21
|
-
size: 9
|
|
22
|
-
weight: 700 # bold
|
|
23
|
-
style: normal
|
|
24
|
-
|
|
25
|
-
stereotype:
|
|
26
|
-
family: "Carlito, Arial, sans-serif"
|
|
27
|
-
size: 9
|
|
28
|
-
weight: 400
|
|
29
|
-
style: normal
|
|
30
|
-
|
|
31
|
-
attribute:
|
|
32
|
-
family: "Carlito, Arial, sans-serif"
|
|
33
|
-
size: 9
|
|
34
|
-
weight: 400
|
|
35
|
-
style: normal
|
|
36
|
-
|
|
37
|
-
operation:
|
|
38
|
-
family: "Carlito, Arial, sans-serif"
|
|
39
|
-
size: 9
|
|
40
|
-
weight: 400
|
|
41
|
-
style: normal
|
|
42
|
-
|
|
43
|
-
box:
|
|
44
|
-
stroke_width: 2
|
|
45
|
-
stroke_linecap: round
|
|
46
|
-
stroke_linejoin: bevel
|
|
47
|
-
corner_radius: 0
|
|
48
|
-
padding: 5
|
|
49
|
-
fill_opacity: 1.0
|
|
50
|
-
stroke_opacity: 1.0
|
|
51
|
-
|
|
52
|
-
text:
|
|
53
|
-
visibility_public: "+"
|
|
54
|
-
visibility_private: "-"
|
|
55
|
-
visibility_protected: "#"
|
|
56
|
-
visibility_package: "~"
|
|
57
|
-
cardinality_format: "[%s]"
|
|
58
|
-
stereotype_format: "«%s»"
|
|
59
|
-
|
|
60
|
-
# Stereotype-based styling
|
|
61
|
-
# These apply when elements have specific stereotypes
|
|
62
|
-
stereotypes:
|
|
63
|
-
DataType:
|
|
64
|
-
colors:
|
|
65
|
-
fill: "#FFCCFF" # Pink for i-UR DataTypes
|
|
66
|
-
stroke: "#000000"
|
|
67
|
-
fonts:
|
|
68
|
-
class_name:
|
|
69
|
-
weight: 700
|
|
70
|
-
style: italic
|
|
71
|
-
|
|
72
|
-
FeatureType:
|
|
73
|
-
colors:
|
|
74
|
-
fill: "#FFFFCC" # Yellow for CityGML FeatureTypes
|
|
75
|
-
stroke: "#000000"
|
|
76
|
-
|
|
77
|
-
GMLType:
|
|
78
|
-
colors:
|
|
79
|
-
fill: "#CCFFCC" # Green for GML Types
|
|
80
|
-
stroke: "#000000"
|
|
81
|
-
|
|
82
|
-
Interface:
|
|
83
|
-
colors:
|
|
84
|
-
fill: "#FFFFEE"
|
|
85
|
-
stroke: "#000000"
|
|
86
|
-
fonts:
|
|
87
|
-
class_name:
|
|
88
|
-
style: italic
|
|
89
|
-
|
|
90
|
-
Enumeration:
|
|
91
|
-
colors:
|
|
92
|
-
fill: "#FFE6CC"
|
|
93
|
-
stroke: "#000000"
|
|
94
|
-
|
|
95
|
-
Abstract:
|
|
96
|
-
fonts:
|
|
97
|
-
class_name:
|
|
98
|
-
style: italic
|
|
99
|
-
|
|
100
|
-
# Package-based styling (optional)
|
|
101
|
-
# Supports wildcards: "CityGML::*" matches any package starting with "CityGML::"
|
|
102
|
-
packages:
|
|
103
|
-
"CityGML::*":
|
|
104
|
-
colors:
|
|
105
|
-
fill: "#FFFFCC"
|
|
106
|
-
|
|
107
|
-
"i-UR::*":
|
|
108
|
-
colors:
|
|
109
|
-
fill: "#FFCCFF"
|
|
110
|
-
|
|
111
|
-
"gml::*":
|
|
112
|
-
colors:
|
|
113
|
-
fill: "#CCFFCC"
|
|
114
|
-
|
|
115
|
-
# Class-specific overrides (highest priority after EA data)
|
|
116
|
-
# These take precedence over package and stereotype styling
|
|
117
|
-
classes: {}
|
|
118
|
-
|
|
119
|
-
# Connector styling
|
|
120
|
-
connectors:
|
|
121
|
-
generalization:
|
|
122
|
-
arrow:
|
|
123
|
-
type: hollow_triangle
|
|
124
|
-
size: 10
|
|
125
|
-
line:
|
|
126
|
-
stroke_width: 1
|
|
127
|
-
stroke: "#000000"
|
|
128
|
-
fill: none
|
|
129
|
-
|
|
130
|
-
association:
|
|
131
|
-
arrow:
|
|
132
|
-
type: open_arrow
|
|
133
|
-
size: 8
|
|
134
|
-
line:
|
|
135
|
-
stroke_width: 1
|
|
136
|
-
stroke: "#000000"
|
|
137
|
-
labels:
|
|
138
|
-
show_role_names: true
|
|
139
|
-
show_cardinality: true
|
|
140
|
-
font:
|
|
141
|
-
family: "Carlito, Arial, sans-serif"
|
|
142
|
-
size: 8
|
|
143
|
-
|
|
144
|
-
dependency:
|
|
145
|
-
arrow:
|
|
146
|
-
type: open_arrow
|
|
147
|
-
size: 8
|
|
148
|
-
line:
|
|
149
|
-
stroke_width: 1
|
|
150
|
-
stroke: "#000000"
|
|
151
|
-
stroke_dasharray: "5,5"
|
|
152
|
-
|
|
153
|
-
aggregation:
|
|
154
|
-
arrow:
|
|
155
|
-
type: diamond
|
|
156
|
-
size: 10
|
|
157
|
-
fill: white
|
|
158
|
-
line:
|
|
159
|
-
stroke_width: 1
|
|
160
|
-
stroke: "#000000"
|
|
161
|
-
|
|
162
|
-
composition:
|
|
163
|
-
arrow:
|
|
164
|
-
type: filled_diamond
|
|
165
|
-
size: 10
|
|
166
|
-
fill: black
|
|
167
|
-
line:
|
|
168
|
-
stroke_width: 1
|
|
169
|
-
stroke: "#000000"
|
|
170
|
-
|
|
171
|
-
realization:
|
|
172
|
-
arrow:
|
|
173
|
-
type: hollow_triangle
|
|
174
|
-
size: 10
|
|
175
|
-
line:
|
|
176
|
-
stroke_width: 1
|
|
177
|
-
stroke: "#000000"
|
|
178
|
-
stroke_dasharray: "5,5"
|
|
179
|
-
|
|
180
|
-
# Legend configuration
|
|
181
|
-
legend:
|
|
182
|
-
enabled: true
|
|
183
|
-
position: bottom_right
|
|
184
|
-
title: "Legend"
|
|
185
|
-
box:
|
|
186
|
-
fill: "#FFFFFF"
|
|
187
|
-
stroke: "#000000"
|
|
188
|
-
stroke_width: 1
|
|
189
|
-
padding: 10
|
|
190
|
-
font:
|
|
191
|
-
family: "Carlito, Arial, sans-serif"
|
|
192
|
-
size: 9
|
|
193
|
-
weight: 400
|
|
194
|
-
entries:
|
|
195
|
-
- label: "i-UR DataTypes"
|
|
196
|
-
color: "#FFCCFF"
|
|
197
|
-
- label: "CityGML FeatureTypes"
|
|
198
|
-
color: "#FFFFCC"
|
|
199
|
-
- label: "GML Types"
|
|
200
|
-
color: "#CCFFCC"
|