drawio_dsl 0.6.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.builders/.data/shapes.json +58 -22
- data/.builders/.templates/basic/dom_builder_shapes.rb +3 -2
- data/.builders/.templates/basic/drawio_shapes.rb +2 -2
- data/.builders/blueprint/shapes.rb +25 -4
- data/.builders/generators/project-plan.rb +72 -0
- data/.builders/generators/sample_diagrams/05-samples.rb +19 -6
- data/.builders/generators/sample_diagrams/30-html-shapes.rb +48 -0
- data/.builders/generators/sample_diagrams/35-ids-and-arrows.rb +20 -0
- data/CHANGELOG.md +28 -0
- data/docs/project-plan/project.drawio +128 -0
- data/docs/project-plan/project_done.svg +3 -0
- data/docs/project-plan/project_in_progress.svg +3 -0
- data/docs/project-plan/project_todo.svg +3 -0
- data/docs/project-plan.md +3 -3
- data/docs/samples/html-shapes.svg +3 -0
- data/docs/samples/samples.md +4 -0
- data/docs/samples/styles-glass.svg +1 -1
- data/docs/samples/styles-plain.svg +1 -1
- data/docs/samples/styles-rounded.svg +1 -1
- data/docs/samples/styles-shadow.svg +1 -1
- data/docs/samples/styles-sketch.svg +1 -1
- data/docs/samples/themes-random.svg +1 -1
- data/lib/drawio_dsl/configuration_shapes.rb +14 -8
- data/lib/drawio_dsl/dom_builder_shapes.rb +137 -82
- data/lib/drawio_dsl/drawio_shapes.rb +114 -96
- data/lib/drawio_dsl/formatters/_.rb +8 -0
- data/lib/drawio_dsl/formatters/base_formatter.rb +24 -0
- data/lib/drawio_dsl/formatters/factory.rb +33 -0
- data/lib/drawio_dsl/formatters/html_builder.rb +84 -0
- data/lib/drawio_dsl/formatters/interface_formatter.rb +55 -0
- data/lib/drawio_dsl/formatters/klass_formatter.rb +54 -0
- data/lib/drawio_dsl/formatters/style_builder.rb +63 -0
- data/lib/drawio_dsl/schema/_.rb +7 -4
- data/lib/drawio_dsl/schema/shapes/interface.rb +9 -0
- data/lib/drawio_dsl/schema/shapes/klass.rb +9 -0
- data/lib/drawio_dsl/schema/shapes/shape.rb +20 -8
- data/lib/drawio_dsl/schema/shapes/todo.rb +9 -0
- data/lib/drawio_dsl/version.rb +1 -1
- data/lib/drawio_dsl.rb +1 -0
- data/package-lock.json +2 -2
- data/package.json +1 -1
- metadata +20 -7
- data/.builders/generators/project_plans/drawio_dsl.rb +0 -63
- data/.builders/generators/project_plans/k_doc.rb +0 -39
- data/docs/project_done.svg +0 -3
- data/docs/project_in_progress.svg +0 -3
- data/docs/project_todo.svg +0 -3
@@ -4,188 +4,243 @@
|
|
4
4
|
module DrawioDsl
|
5
5
|
# DrawioDsl is a DSL for draw-io diagrams.
|
6
6
|
module DomBuilderShapes
|
7
|
-
def add_h1(**opts)
|
8
|
-
|
7
|
+
def add_h1(id = nil, **opts, &block)
|
8
|
+
opts = { id: id }.merge(opts) if id
|
9
|
+
h1 = DrawioDsl::Schema::H1.new(current_page, **opts, &block)
|
9
10
|
add_shape(h1)
|
10
11
|
end
|
11
12
|
|
12
|
-
def add_h2(**opts)
|
13
|
-
|
13
|
+
def add_h2(id = nil, **opts, &block)
|
14
|
+
opts = { id: id }.merge(opts) if id
|
15
|
+
h2 = DrawioDsl::Schema::H2.new(current_page, **opts, &block)
|
14
16
|
add_shape(h2)
|
15
17
|
end
|
16
18
|
|
17
|
-
def add_h3(**opts)
|
18
|
-
|
19
|
+
def add_h3(id = nil, **opts, &block)
|
20
|
+
opts = { id: id }.merge(opts) if id
|
21
|
+
h3 = DrawioDsl::Schema::H3.new(current_page, **opts, &block)
|
19
22
|
add_shape(h3)
|
20
23
|
end
|
21
24
|
|
22
|
-
def add_h4(**opts)
|
23
|
-
|
25
|
+
def add_h4(id = nil, **opts, &block)
|
26
|
+
opts = { id: id }.merge(opts) if id
|
27
|
+
h4 = DrawioDsl::Schema::H4.new(current_page, **opts, &block)
|
24
28
|
add_shape(h4)
|
25
29
|
end
|
26
30
|
|
27
|
-
def add_h5(**opts)
|
28
|
-
|
31
|
+
def add_h5(id = nil, **opts, &block)
|
32
|
+
opts = { id: id }.merge(opts) if id
|
33
|
+
h5 = DrawioDsl::Schema::H5.new(current_page, **opts, &block)
|
29
34
|
add_shape(h5)
|
30
35
|
end
|
31
36
|
|
32
|
-
def add_h6(**opts)
|
33
|
-
|
37
|
+
def add_h6(id = nil, **opts, &block)
|
38
|
+
opts = { id: id }.merge(opts) if id
|
39
|
+
h6 = DrawioDsl::Schema::H6.new(current_page, **opts, &block)
|
34
40
|
add_shape(h6)
|
35
41
|
end
|
36
42
|
|
37
|
-
def add_p(**opts)
|
38
|
-
|
43
|
+
def add_p(id = nil, **opts, &block)
|
44
|
+
opts = { id: id }.merge(opts) if id
|
45
|
+
p = DrawioDsl::Schema::P.new(current_page, **opts, &block)
|
39
46
|
add_shape(p)
|
40
47
|
end
|
41
48
|
|
42
|
-
def add_actor(**opts)
|
43
|
-
|
49
|
+
def add_actor(id = nil, **opts, &block)
|
50
|
+
opts = { id: id }.merge(opts) if id
|
51
|
+
actor = DrawioDsl::Schema::Actor.new(current_page, **opts, &block)
|
44
52
|
add_shape(actor)
|
45
53
|
end
|
46
54
|
|
47
|
-
def add_actor2(**opts)
|
48
|
-
|
55
|
+
def add_actor2(id = nil, **opts, &block)
|
56
|
+
opts = { id: id }.merge(opts) if id
|
57
|
+
actor2 = DrawioDsl::Schema::Actor2.new(current_page, **opts, &block)
|
49
58
|
add_shape(actor2)
|
50
59
|
end
|
51
60
|
|
52
|
-
def add_callout(**opts)
|
53
|
-
|
61
|
+
def add_callout(id = nil, **opts, &block)
|
62
|
+
opts = { id: id }.merge(opts) if id
|
63
|
+
callout = DrawioDsl::Schema::Callout.new(current_page, **opts, &block)
|
54
64
|
add_shape(callout)
|
55
65
|
end
|
56
66
|
|
57
|
-
def add_callout2(**opts)
|
58
|
-
|
67
|
+
def add_callout2(id = nil, **opts, &block)
|
68
|
+
opts = { id: id }.merge(opts) if id
|
69
|
+
callout2 = DrawioDsl::Schema::Callout2.new(current_page, **opts, &block)
|
59
70
|
add_shape(callout2)
|
60
71
|
end
|
61
72
|
|
62
|
-
def add_callout3(**opts)
|
63
|
-
|
73
|
+
def add_callout3(id = nil, **opts, &block)
|
74
|
+
opts = { id: id }.merge(opts) if id
|
75
|
+
callout3 = DrawioDsl::Schema::Callout3.new(current_page, **opts, &block)
|
64
76
|
add_shape(callout3)
|
65
77
|
end
|
66
78
|
|
67
|
-
def add_callout4(**opts)
|
68
|
-
|
79
|
+
def add_callout4(id = nil, **opts, &block)
|
80
|
+
opts = { id: id }.merge(opts) if id
|
81
|
+
callout4 = DrawioDsl::Schema::Callout4.new(current_page, **opts, &block)
|
69
82
|
add_shape(callout4)
|
70
83
|
end
|
71
84
|
|
72
|
-
def add_circle(**opts)
|
73
|
-
|
85
|
+
def add_circle(id = nil, **opts, &block)
|
86
|
+
opts = { id: id }.merge(opts) if id
|
87
|
+
circle = DrawioDsl::Schema::Circle.new(current_page, **opts, &block)
|
74
88
|
add_shape(circle)
|
75
89
|
end
|
76
90
|
|
77
|
-
def add_cloud(**opts)
|
78
|
-
|
91
|
+
def add_cloud(id = nil, **opts, &block)
|
92
|
+
opts = { id: id }.merge(opts) if id
|
93
|
+
cloud = DrawioDsl::Schema::Cloud.new(current_page, **opts, &block)
|
79
94
|
add_shape(cloud)
|
80
95
|
end
|
81
96
|
|
82
|
-
def
|
83
|
-
|
97
|
+
def add_container(id = nil, **opts, &block)
|
98
|
+
opts = { id: id }.merge(opts) if id
|
99
|
+
container = DrawioDsl::Schema::Container.new(current_page, **opts, &block)
|
100
|
+
add_shape(container)
|
101
|
+
end
|
102
|
+
|
103
|
+
def add_container2(id = nil, **opts, &block)
|
104
|
+
opts = { id: id }.merge(opts) if id
|
105
|
+
container2 = DrawioDsl::Schema::Container2.new(current_page, **opts, &block)
|
106
|
+
add_shape(container2)
|
107
|
+
end
|
108
|
+
|
109
|
+
def add_container3(id = nil, **opts, &block)
|
110
|
+
opts = { id: id }.merge(opts) if id
|
111
|
+
container3 = DrawioDsl::Schema::Container3.new(current_page, **opts, &block)
|
112
|
+
add_shape(container3)
|
113
|
+
end
|
114
|
+
|
115
|
+
def add_container4(id = nil, **opts, &block)
|
116
|
+
opts = { id: id }.merge(opts) if id
|
117
|
+
container4 = DrawioDsl::Schema::Container4.new(current_page, **opts, &block)
|
118
|
+
add_shape(container4)
|
119
|
+
end
|
120
|
+
|
121
|
+
def add_cross(id = nil, **opts, &block)
|
122
|
+
opts = { id: id }.merge(opts) if id
|
123
|
+
cross = DrawioDsl::Schema::Cross.new(current_page, **opts, &block)
|
84
124
|
add_shape(cross)
|
85
125
|
end
|
86
126
|
|
87
|
-
def add_envelop(**opts)
|
88
|
-
|
127
|
+
def add_envelop(id = nil, **opts, &block)
|
128
|
+
opts = { id: id }.merge(opts) if id
|
129
|
+
envelop = DrawioDsl::Schema::Envelop.new(current_page, **opts, &block)
|
89
130
|
add_shape(envelop)
|
90
131
|
end
|
91
132
|
|
92
|
-
def add_diamond(**opts)
|
93
|
-
|
133
|
+
def add_diamond(id = nil, **opts, &block)
|
134
|
+
opts = { id: id }.merge(opts) if id
|
135
|
+
diamond = DrawioDsl::Schema::Diamond.new(current_page, **opts, &block)
|
94
136
|
add_shape(diamond)
|
95
137
|
end
|
96
138
|
|
97
|
-
def add_document(**opts)
|
98
|
-
|
139
|
+
def add_document(id = nil, **opts, &block)
|
140
|
+
opts = { id: id }.merge(opts) if id
|
141
|
+
document = DrawioDsl::Schema::Document.new(current_page, **opts, &block)
|
99
142
|
add_shape(document)
|
100
143
|
end
|
101
144
|
|
102
|
-
def add_ellipse(**opts)
|
103
|
-
|
145
|
+
def add_ellipse(id = nil, **opts, &block)
|
146
|
+
opts = { id: id }.merge(opts) if id
|
147
|
+
ellipse = DrawioDsl::Schema::Ellipse.new(current_page, **opts, &block)
|
104
148
|
add_shape(ellipse)
|
105
149
|
end
|
106
150
|
|
107
|
-
def add_hexagon(**opts)
|
108
|
-
|
151
|
+
def add_hexagon(id = nil, **opts, &block)
|
152
|
+
opts = { id: id }.merge(opts) if id
|
153
|
+
hexagon = DrawioDsl::Schema::Hexagon.new(current_page, **opts, &block)
|
109
154
|
add_shape(hexagon)
|
110
155
|
end
|
111
156
|
|
112
|
-
def
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
def add_container2(**opts)
|
118
|
-
container2 = DrawioDsl::Schema::Container2.new(current_page, **opts)
|
119
|
-
add_shape(container2)
|
157
|
+
def add_interface(id = nil, **opts, &block)
|
158
|
+
opts = { id: id }.merge(opts) if id
|
159
|
+
interface = DrawioDsl::Schema::Interface.new(current_page, **opts, &block)
|
160
|
+
add_shape(interface)
|
120
161
|
end
|
121
162
|
|
122
|
-
def
|
123
|
-
|
124
|
-
|
163
|
+
def add_klass(id = nil, **opts, &block)
|
164
|
+
opts = { id: id }.merge(opts) if id
|
165
|
+
klass = DrawioDsl::Schema::Klass.new(current_page, **opts, &block)
|
166
|
+
add_shape(klass)
|
125
167
|
end
|
126
168
|
|
127
|
-
def
|
128
|
-
|
129
|
-
|
130
|
-
end
|
131
|
-
|
132
|
-
def add_note(**opts)
|
133
|
-
note = DrawioDsl::Schema::Note.new(current_page, **opts)
|
169
|
+
def add_note(id = nil, **opts, &block)
|
170
|
+
opts = { id: id }.merge(opts) if id
|
171
|
+
note = DrawioDsl::Schema::Note.new(current_page, **opts, &block)
|
134
172
|
add_shape(note)
|
135
173
|
end
|
136
174
|
|
137
|
-
def add_process(**opts)
|
138
|
-
|
175
|
+
def add_process(id = nil, **opts, &block)
|
176
|
+
opts = { id: id }.merge(opts) if id
|
177
|
+
process = DrawioDsl::Schema::Process.new(current_page, **opts, &block)
|
139
178
|
add_shape(process)
|
140
179
|
end
|
141
180
|
|
142
|
-
def add_rectangle(**opts)
|
143
|
-
|
181
|
+
def add_rectangle(id = nil, **opts, &block)
|
182
|
+
opts = { id: id }.merge(opts) if id
|
183
|
+
rectangle = DrawioDsl::Schema::Rectangle.new(current_page, **opts, &block)
|
144
184
|
add_shape(rectangle)
|
145
185
|
end
|
146
186
|
|
147
|
-
def add_rectangle2(**opts)
|
148
|
-
|
187
|
+
def add_rectangle2(id = nil, **opts, &block)
|
188
|
+
opts = { id: id }.merge(opts) if id
|
189
|
+
rectangle2 = DrawioDsl::Schema::Rectangle2.new(current_page, **opts, &block)
|
149
190
|
add_shape(rectangle2)
|
150
191
|
end
|
151
192
|
|
152
|
-
def add_square(**opts)
|
153
|
-
|
193
|
+
def add_square(id = nil, **opts, &block)
|
194
|
+
opts = { id: id }.merge(opts) if id
|
195
|
+
square = DrawioDsl::Schema::Square.new(current_page, **opts, &block)
|
154
196
|
add_shape(square)
|
155
197
|
end
|
156
198
|
|
157
|
-
def add_step(**opts)
|
158
|
-
|
199
|
+
def add_step(id = nil, **opts, &block)
|
200
|
+
opts = { id: id }.merge(opts) if id
|
201
|
+
step = DrawioDsl::Schema::Step.new(current_page, **opts, &block)
|
159
202
|
add_shape(step)
|
160
203
|
end
|
161
204
|
|
162
|
-
def add_tick(**opts)
|
163
|
-
|
205
|
+
def add_tick(id = nil, **opts, &block)
|
206
|
+
opts = { id: id }.merge(opts) if id
|
207
|
+
tick = DrawioDsl::Schema::Tick.new(current_page, **opts, &block)
|
164
208
|
add_shape(tick)
|
165
209
|
end
|
166
210
|
|
167
|
-
def
|
168
|
-
|
211
|
+
def add_todo(id = nil, **opts, &block)
|
212
|
+
opts = { id: id }.merge(opts) if id
|
213
|
+
todo = DrawioDsl::Schema::Todo.new(current_page, **opts, &block)
|
214
|
+
add_shape(todo)
|
215
|
+
end
|
216
|
+
|
217
|
+
def add_face(id = nil, **opts, &block)
|
218
|
+
opts = { id: id }.merge(opts) if id
|
219
|
+
face = DrawioDsl::Schema::Face.new(current_page, **opts, &block)
|
169
220
|
add_shape(face)
|
170
221
|
end
|
171
222
|
|
172
|
-
def add_triangle(**opts)
|
173
|
-
|
223
|
+
def add_triangle(id = nil, **opts, &block)
|
224
|
+
opts = { id: id }.merge(opts) if id
|
225
|
+
triangle = DrawioDsl::Schema::Triangle.new(current_page, **opts, &block)
|
174
226
|
add_shape(triangle)
|
175
227
|
end
|
176
228
|
|
177
|
-
def add_embed_row(**opts)
|
178
|
-
|
229
|
+
def add_embed_row(id = nil, **opts, &block)
|
230
|
+
opts = { id: id }.merge(opts) if id
|
231
|
+
embed_row = DrawioDsl::Schema::EmbedRow.new(current_page, **opts, &block)
|
179
232
|
add_shape(embed_row)
|
180
233
|
end
|
181
234
|
|
182
|
-
def add_embed_col50(**opts)
|
183
|
-
|
235
|
+
def add_embed_col50(id = nil, **opts, &block)
|
236
|
+
opts = { id: id }.merge(opts) if id
|
237
|
+
embed_col50 = DrawioDsl::Schema::EmbedCol50.new(current_page, **opts, &block)
|
184
238
|
add_shape(embed_col50)
|
185
239
|
end
|
186
240
|
|
187
|
-
def add_embed_col200(**opts)
|
188
|
-
|
241
|
+
def add_embed_col200(id = nil, **opts, &block)
|
242
|
+
opts = { id: id }.merge(opts) if id
|
243
|
+
embed_col200 = DrawioDsl::Schema::EmbedCol200.new(current_page, **opts, &block)
|
189
244
|
add_shape(embed_col200)
|
190
245
|
end
|
191
246
|
end
|
@@ -5,7 +5,7 @@ module DrawioDsl
|
|
5
5
|
# :nocov:
|
6
6
|
module DrawioShapes
|
7
7
|
def random(**opts)
|
8
|
-
case rand(
|
8
|
+
case rand(40)
|
9
9
|
when 0
|
10
10
|
h1(**opts)
|
11
11
|
when 1
|
@@ -37,198 +37,216 @@ module DrawioDsl
|
|
37
37
|
when 14
|
38
38
|
cloud(**opts)
|
39
39
|
when 15
|
40
|
-
|
40
|
+
container(**opts)
|
41
41
|
when 16
|
42
|
-
|
42
|
+
container2(**opts)
|
43
43
|
when 17
|
44
|
-
|
44
|
+
container3(**opts)
|
45
45
|
when 18
|
46
|
-
|
46
|
+
container4(**opts)
|
47
47
|
when 19
|
48
|
-
|
48
|
+
cross(**opts)
|
49
49
|
when 20
|
50
|
-
|
50
|
+
envelop(**opts)
|
51
51
|
when 21
|
52
|
-
|
52
|
+
diamond(**opts)
|
53
53
|
when 22
|
54
|
-
|
54
|
+
document(**opts)
|
55
55
|
when 23
|
56
|
-
|
56
|
+
ellipse(**opts)
|
57
57
|
when 24
|
58
|
-
|
58
|
+
hexagon(**opts)
|
59
59
|
when 25
|
60
|
-
|
60
|
+
interface(**opts)
|
61
61
|
when 26
|
62
|
-
|
62
|
+
klass(**opts)
|
63
63
|
when 27
|
64
|
-
|
64
|
+
note(**opts)
|
65
65
|
when 28
|
66
|
-
|
66
|
+
process(**opts)
|
67
67
|
when 29
|
68
|
-
|
68
|
+
rectangle(**opts)
|
69
69
|
when 30
|
70
|
-
|
70
|
+
rectangle2(**opts)
|
71
71
|
when 31
|
72
|
-
|
72
|
+
square(**opts)
|
73
73
|
when 32
|
74
|
-
|
74
|
+
step(**opts)
|
75
75
|
when 33
|
76
|
-
|
76
|
+
tick(**opts)
|
77
77
|
when 34
|
78
|
-
|
78
|
+
todo(**opts)
|
79
79
|
when 35
|
80
|
-
|
80
|
+
face(**opts)
|
81
81
|
when 36
|
82
|
+
triangle(**opts)
|
83
|
+
when 37
|
84
|
+
embed_row(**opts)
|
85
|
+
when 38
|
86
|
+
embed_col50(**opts)
|
87
|
+
when 39
|
82
88
|
embed_col200(**opts)
|
83
89
|
end
|
84
90
|
end
|
85
91
|
|
86
|
-
def h1(**opts)
|
87
|
-
builder.add_h1(**opts)
|
92
|
+
def h1(id = nil, **opts, &block)
|
93
|
+
builder.add_h1(id, **opts, &block)
|
94
|
+
end
|
95
|
+
|
96
|
+
def h2(id = nil, **opts, &block)
|
97
|
+
builder.add_h2(id, **opts, &block)
|
98
|
+
end
|
99
|
+
|
100
|
+
def h3(id = nil, **opts, &block)
|
101
|
+
builder.add_h3(id, **opts, &block)
|
102
|
+
end
|
103
|
+
|
104
|
+
def h4(id = nil, **opts, &block)
|
105
|
+
builder.add_h4(id, **opts, &block)
|
88
106
|
end
|
89
107
|
|
90
|
-
def
|
91
|
-
builder.
|
108
|
+
def h5(id = nil, **opts, &block)
|
109
|
+
builder.add_h5(id, **opts, &block)
|
92
110
|
end
|
93
111
|
|
94
|
-
def
|
95
|
-
builder.
|
112
|
+
def h6(id = nil, **opts, &block)
|
113
|
+
builder.add_h6(id, **opts, &block)
|
96
114
|
end
|
97
115
|
|
98
|
-
def
|
99
|
-
builder.
|
116
|
+
def p(id = nil, **opts, &block)
|
117
|
+
builder.add_p(id, **opts, &block)
|
100
118
|
end
|
101
119
|
|
102
|
-
def
|
103
|
-
builder.
|
120
|
+
def actor(id = nil, **opts, &block)
|
121
|
+
builder.add_actor(id, **opts, &block)
|
104
122
|
end
|
105
123
|
|
106
|
-
def
|
107
|
-
builder.
|
124
|
+
def actor2(id = nil, **opts, &block)
|
125
|
+
builder.add_actor2(id, **opts, &block)
|
108
126
|
end
|
109
127
|
|
110
|
-
def
|
111
|
-
builder.
|
128
|
+
def callout(id = nil, **opts, &block)
|
129
|
+
builder.add_callout(id, **opts, &block)
|
112
130
|
end
|
113
131
|
|
114
|
-
def
|
115
|
-
builder.
|
132
|
+
def callout2(id = nil, **opts, &block)
|
133
|
+
builder.add_callout2(id, **opts, &block)
|
116
134
|
end
|
117
135
|
|
118
|
-
def
|
119
|
-
builder.
|
136
|
+
def callout3(id = nil, **opts, &block)
|
137
|
+
builder.add_callout3(id, **opts, &block)
|
120
138
|
end
|
121
139
|
|
122
|
-
def
|
123
|
-
builder.
|
140
|
+
def callout4(id = nil, **opts, &block)
|
141
|
+
builder.add_callout4(id, **opts, &block)
|
124
142
|
end
|
125
143
|
|
126
|
-
def
|
127
|
-
builder.
|
144
|
+
def circle(id = nil, **opts, &block)
|
145
|
+
builder.add_circle(id, **opts, &block)
|
128
146
|
end
|
129
147
|
|
130
|
-
def
|
131
|
-
builder.
|
148
|
+
def cloud(id = nil, **opts, &block)
|
149
|
+
builder.add_cloud(id, **opts, &block)
|
132
150
|
end
|
133
151
|
|
134
|
-
def
|
135
|
-
builder.
|
152
|
+
def container(id = nil, **opts, &block)
|
153
|
+
builder.add_container(id, **opts, &block)
|
136
154
|
end
|
137
155
|
|
138
|
-
def
|
139
|
-
builder.
|
156
|
+
def container2(id = nil, **opts, &block)
|
157
|
+
builder.add_container2(id, **opts, &block)
|
140
158
|
end
|
141
159
|
|
142
|
-
def
|
143
|
-
builder.
|
160
|
+
def container3(id = nil, **opts, &block)
|
161
|
+
builder.add_container3(id, **opts, &block)
|
144
162
|
end
|
145
163
|
|
146
|
-
def
|
147
|
-
builder.
|
164
|
+
def container4(id = nil, **opts, &block)
|
165
|
+
builder.add_container4(id, **opts, &block)
|
148
166
|
end
|
149
167
|
|
150
|
-
def
|
151
|
-
builder.
|
168
|
+
def cross(id = nil, **opts, &block)
|
169
|
+
builder.add_cross(id, **opts, &block)
|
152
170
|
end
|
153
171
|
|
154
|
-
def
|
155
|
-
builder.
|
172
|
+
def envelop(id = nil, **opts, &block)
|
173
|
+
builder.add_envelop(id, **opts, &block)
|
156
174
|
end
|
157
175
|
|
158
|
-
def
|
159
|
-
builder.
|
176
|
+
def diamond(id = nil, **opts, &block)
|
177
|
+
builder.add_diamond(id, **opts, &block)
|
160
178
|
end
|
161
179
|
|
162
|
-
def
|
163
|
-
builder.
|
180
|
+
def document(id = nil, **opts, &block)
|
181
|
+
builder.add_document(id, **opts, &block)
|
164
182
|
end
|
165
183
|
|
166
|
-
def
|
167
|
-
builder.
|
184
|
+
def ellipse(id = nil, **opts, &block)
|
185
|
+
builder.add_ellipse(id, **opts, &block)
|
168
186
|
end
|
169
187
|
|
170
|
-
def
|
171
|
-
builder.
|
188
|
+
def hexagon(id = nil, **opts, &block)
|
189
|
+
builder.add_hexagon(id, **opts, &block)
|
172
190
|
end
|
173
191
|
|
174
|
-
def
|
175
|
-
builder.
|
192
|
+
def interface(id = nil, **opts, &block)
|
193
|
+
builder.add_interface(id, **opts, &block)
|
176
194
|
end
|
177
195
|
|
178
|
-
def
|
179
|
-
builder.
|
196
|
+
def klass(id = nil, **opts, &block)
|
197
|
+
builder.add_klass(id, **opts, &block)
|
180
198
|
end
|
181
199
|
|
182
|
-
def
|
183
|
-
builder.
|
200
|
+
def note(id = nil, **opts, &block)
|
201
|
+
builder.add_note(id, **opts, &block)
|
184
202
|
end
|
185
203
|
|
186
|
-
def
|
187
|
-
builder.
|
204
|
+
def process(id = nil, **opts, &block)
|
205
|
+
builder.add_process(id, **opts, &block)
|
188
206
|
end
|
189
207
|
|
190
|
-
def
|
191
|
-
builder.
|
208
|
+
def rectangle(id = nil, **opts, &block)
|
209
|
+
builder.add_rectangle(id, **opts, &block)
|
192
210
|
end
|
193
211
|
|
194
|
-
def
|
195
|
-
builder.
|
212
|
+
def rectangle2(id = nil, **opts, &block)
|
213
|
+
builder.add_rectangle2(id, **opts, &block)
|
196
214
|
end
|
197
215
|
|
198
|
-
def
|
199
|
-
builder.
|
216
|
+
def square(id = nil, **opts, &block)
|
217
|
+
builder.add_square(id, **opts, &block)
|
200
218
|
end
|
201
219
|
|
202
|
-
def
|
203
|
-
builder.
|
220
|
+
def step(id = nil, **opts, &block)
|
221
|
+
builder.add_step(id, **opts, &block)
|
204
222
|
end
|
205
223
|
|
206
|
-
def
|
207
|
-
builder.
|
224
|
+
def tick(id = nil, **opts, &block)
|
225
|
+
builder.add_tick(id, **opts, &block)
|
208
226
|
end
|
209
227
|
|
210
|
-
def
|
211
|
-
builder.
|
228
|
+
def todo(id = nil, **opts, &block)
|
229
|
+
builder.add_todo(id, **opts, &block)
|
212
230
|
end
|
213
231
|
|
214
|
-
def face(**opts)
|
215
|
-
builder.add_face(**opts)
|
232
|
+
def face(id = nil, **opts, &block)
|
233
|
+
builder.add_face(id, **opts, &block)
|
216
234
|
end
|
217
235
|
|
218
|
-
def triangle(**opts)
|
219
|
-
builder.add_triangle(**opts)
|
236
|
+
def triangle(id = nil, **opts, &block)
|
237
|
+
builder.add_triangle(id, **opts, &block)
|
220
238
|
end
|
221
239
|
|
222
|
-
def embed_row(**opts)
|
223
|
-
builder.add_embed_row(**opts)
|
240
|
+
def embed_row(id = nil, **opts, &block)
|
241
|
+
builder.add_embed_row(id, **opts, &block)
|
224
242
|
end
|
225
243
|
|
226
|
-
def embed_col50(**opts)
|
227
|
-
builder.add_embed_col50(**opts)
|
244
|
+
def embed_col50(id = nil, **opts, &block)
|
245
|
+
builder.add_embed_col50(id, **opts, &block)
|
228
246
|
end
|
229
247
|
|
230
|
-
def embed_col200(**opts)
|
231
|
-
builder.add_embed_col200(**opts)
|
248
|
+
def embed_col200(id = nil, **opts, &block)
|
249
|
+
builder.add_embed_col200(id, **opts, &block)
|
232
250
|
end
|
233
251
|
end
|
234
252
|
# :nocov:
|