drawio_dsl 0.8.11 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/config/configuration.json +8 -8
  4. data/docs/project-plan/project.drawio +80 -74
  5. data/docs/project-plan/project_done.svg +1 -1
  6. data/docs/project-plan/project_in_progress.svg +1 -1
  7. data/docs/samples/grid-direction-horizontal.svg +1 -1
  8. data/docs/samples/grid-direction-vertical.svg +1 -1
  9. data/lib/drawio_dsl/configuration.rb +21 -9
  10. data/lib/drawio_dsl/configuration_shapes.rb +2 -2
  11. data/lib/drawio_dsl/configuration_themes.rb +44 -44
  12. data/lib/drawio_dsl/dom_builder_shapes.rb +3 -3
  13. data/lib/drawio_dsl/drawio_shapes.rb +3 -3
  14. data/lib/drawio_dsl/schema/_.rb +55 -45
  15. data/lib/drawio_dsl/schema/diagram.rb +1 -1
  16. data/lib/drawio_dsl/schema/element.rb +23 -0
  17. data/lib/drawio_dsl/schema/{shapes/face.rb → elements/actor.rb} +2 -2
  18. data/lib/drawio_dsl/schema/{shapes/actor.rb → elements/actor2.rb} +2 -2
  19. data/lib/drawio_dsl/schema/{shapes/circle.rb → elements/callout.rb} +2 -2
  20. data/lib/drawio_dsl/schema/{shapes/callout.rb → elements/callout2.rb} +2 -2
  21. data/lib/drawio_dsl/schema/elements/callout3.rb +9 -0
  22. data/lib/drawio_dsl/schema/elements/callout4.rb +9 -0
  23. data/lib/drawio_dsl/schema/{shapes/cross.rb → elements/circle.rb} +2 -2
  24. data/lib/drawio_dsl/schema/elements/cloud.rb +9 -0
  25. data/lib/drawio_dsl/schema/elements/container.rb +9 -0
  26. data/lib/drawio_dsl/schema/elements/container2.rb +9 -0
  27. data/lib/drawio_dsl/schema/elements/container3.rb +9 -0
  28. data/lib/drawio_dsl/schema/elements/container4.rb +9 -0
  29. data/lib/drawio_dsl/schema/elements/cross.rb +9 -0
  30. data/lib/drawio_dsl/schema/elements/database.rb +9 -0
  31. data/lib/drawio_dsl/schema/{shapes/actor2.rb → elements/db_json.rb} +2 -2
  32. data/lib/drawio_dsl/schema/elements/diamond.rb +9 -0
  33. data/lib/drawio_dsl/schema/elements/document.rb +9 -0
  34. data/lib/drawio_dsl/schema/elements/ellipse.rb +9 -0
  35. data/lib/drawio_dsl/schema/elements/embed_col200.rb +9 -0
  36. data/lib/drawio_dsl/schema/elements/embed_col50.rb +9 -0
  37. data/lib/drawio_dsl/schema/{shapes/callout2.rb → elements/embed_row.rb} +2 -2
  38. data/lib/drawio_dsl/schema/elements/envelop.rb +9 -0
  39. data/lib/drawio_dsl/schema/elements/face.rb +9 -0
  40. data/lib/drawio_dsl/schema/elements/group.rb +9 -0
  41. data/lib/drawio_dsl/schema/elements/hexagon.rb +9 -0
  42. data/lib/drawio_dsl/schema/elements/interface.rb +9 -0
  43. data/lib/drawio_dsl/schema/elements/klass.rb +9 -0
  44. data/lib/drawio_dsl/schema/elements/note.rb +9 -0
  45. data/lib/drawio_dsl/schema/elements/process.rb +9 -0
  46. data/lib/drawio_dsl/schema/elements/rectangle.rb +9 -0
  47. data/lib/drawio_dsl/schema/elements/rectangle2.rb +9 -0
  48. data/lib/drawio_dsl/schema/{shapes/cloud.rb → elements/square.rb} +2 -2
  49. data/lib/drawio_dsl/schema/elements/step.rb +9 -0
  50. data/lib/drawio_dsl/schema/elements/tick.rb +9 -0
  51. data/lib/drawio_dsl/schema/elements/todo.rb +9 -0
  52. data/lib/drawio_dsl/schema/elements/triangle.rb +9 -0
  53. data/lib/drawio_dsl/schema/line.rb +24 -0
  54. data/lib/drawio_dsl/schema/lines/solid.rb +9 -0
  55. data/lib/drawio_dsl/schema/page.rb +8 -6
  56. data/lib/drawio_dsl/schema/{shapes/shape.rb → shape.rb} +14 -22
  57. data/lib/drawio_dsl/schema/text.rb +23 -0
  58. data/lib/drawio_dsl/schema/{shapes → texts}/h1.rb +2 -2
  59. data/lib/drawio_dsl/schema/{shapes → texts}/h2.rb +2 -2
  60. data/lib/drawio_dsl/schema/{shapes → texts}/h3.rb +2 -2
  61. data/lib/drawio_dsl/schema/{shapes → texts}/h4.rb +2 -2
  62. data/lib/drawio_dsl/schema/{shapes → texts}/h5.rb +2 -2
  63. data/lib/drawio_dsl/schema/{shapes → texts}/h6.rb +2 -2
  64. data/lib/drawio_dsl/schema/{shapes → texts}/p.rb +2 -2
  65. data/lib/drawio_dsl/version.rb +1 -1
  66. data/lib/drawio_dsl.rb +7 -9
  67. data/package-lock.json +2 -2
  68. data/package.json +1 -1
  69. metadata +49 -46
  70. data/lib/drawio_dsl/schema/shapes/callout3.rb +0 -9
  71. data/lib/drawio_dsl/schema/shapes/callout4.rb +0 -9
  72. data/lib/drawio_dsl/schema/shapes/container.rb +0 -9
  73. data/lib/drawio_dsl/schema/shapes/container2.rb +0 -9
  74. data/lib/drawio_dsl/schema/shapes/container3.rb +0 -9
  75. data/lib/drawio_dsl/schema/shapes/container4.rb +0 -9
  76. data/lib/drawio_dsl/schema/shapes/database.rb +0 -9
  77. data/lib/drawio_dsl/schema/shapes/db_json.rb +0 -9
  78. data/lib/drawio_dsl/schema/shapes/diamond.rb +0 -9
  79. data/lib/drawio_dsl/schema/shapes/document.rb +0 -9
  80. data/lib/drawio_dsl/schema/shapes/ellipse.rb +0 -9
  81. data/lib/drawio_dsl/schema/shapes/embed_col200.rb +0 -9
  82. data/lib/drawio_dsl/schema/shapes/embed_col50.rb +0 -9
  83. data/lib/drawio_dsl/schema/shapes/embed_row.rb +0 -9
  84. data/lib/drawio_dsl/schema/shapes/envelop.rb +0 -9
  85. data/lib/drawio_dsl/schema/shapes/group.rb +0 -9
  86. data/lib/drawio_dsl/schema/shapes/hexagon.rb +0 -9
  87. data/lib/drawio_dsl/schema/shapes/interface.rb +0 -9
  88. data/lib/drawio_dsl/schema/shapes/klass.rb +0 -9
  89. data/lib/drawio_dsl/schema/shapes/line.rb +0 -9
  90. data/lib/drawio_dsl/schema/shapes/note.rb +0 -9
  91. data/lib/drawio_dsl/schema/shapes/process.rb +0 -9
  92. data/lib/drawio_dsl/schema/shapes/rectangle.rb +0 -9
  93. data/lib/drawio_dsl/schema/shapes/rectangle2.rb +0 -9
  94. data/lib/drawio_dsl/schema/shapes/square.rb +0 -9
  95. data/lib/drawio_dsl/schema/shapes/step.rb +0 -9
  96. data/lib/drawio_dsl/schema/shapes/tick.rb +0 -9
  97. data/lib/drawio_dsl/schema/shapes/todo.rb +0 -9
  98. data/lib/drawio_dsl/schema/shapes/triangle.rb +0 -9
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DrawioDsl
4
+ module Schema
5
+ class Rectangle2 < Element
6
+ configure_as(:rectangle2)
7
+ end
8
+ end
9
+ end
@@ -2,8 +2,8 @@
2
2
 
3
3
  module DrawioDsl
4
4
  module Schema
5
- class Cloud < Shape
6
- configure_shape(:cloud)
5
+ class Square < Element
6
+ configure_as(:square)
7
7
  end
8
8
  end
9
9
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DrawioDsl
4
+ module Schema
5
+ class Step < Element
6
+ configure_as(:step)
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DrawioDsl
4
+ module Schema
5
+ class Tick < Element
6
+ configure_as(:tick)
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DrawioDsl
4
+ module Schema
5
+ class Todo < Element
6
+ configure_as(:todo)
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DrawioDsl
4
+ module Schema
5
+ class Triangle < Element
6
+ configure_as(:triangle)
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DrawioDsl
4
+ module Schema
5
+ # Text represents lines, usually used for drawing a connection between two elements.
6
+ class Line < Shape
7
+ class << self
8
+ def configure_as(key)
9
+ configure_shape(key, :line)
10
+ end
11
+ end
12
+
13
+ attr_accessor :source
14
+ attr_accessor :target
15
+
16
+ def apply_defaults(args)
17
+ super(args)
18
+
19
+ @source = args[:source]
20
+ @target = args[:target]
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DrawioDsl
4
+ module Schema
5
+ class Solid < Line
6
+ configure_as(:solid)
7
+ end
8
+ end
9
+ end
@@ -79,13 +79,11 @@ module DrawioDsl
79
79
  end
80
80
 
81
81
  @palette = DrawioDsl::Schema::DefaultPalette.new(self, **args) do |page|
82
- theme_palette = KConfig.configuration.drawio.palette(page.theme)
83
-
84
82
  # Inherit from theme when specific palette options are not specified.
85
- @fill_color ||= theme_palette.fill_color
86
- @stroke_color ||= theme_palette.stroke_color
87
- @font_color ||= theme_palette.font_color
88
- @gradient ||= theme_palette.gradient
83
+ @fill_color ||= page.theme_palette.fill_color
84
+ @stroke_color ||= page.theme_palette.stroke_color
85
+ @font_color ||= page.theme_palette.element_font_color
86
+ @gradient ||= page.theme_palette.gradient
89
87
  end
90
88
 
91
89
  @nodes = NodeList.new # []
@@ -101,6 +99,10 @@ module DrawioDsl
101
99
  node
102
100
  end
103
101
 
102
+ def theme_palette
103
+ @theme_palette ||= KConfig.configuration.drawio.palette(theme)
104
+ end
105
+
104
106
  def as_xml(xml)
105
107
  nodes.as_xml(xml)
106
108
  end
@@ -8,22 +8,23 @@ module DrawioDsl
8
8
 
9
9
  class << self
10
10
  attr_reader :shape_key
11
+ attr_reader :shape_category
11
12
  attr_reader :shape_defaults
12
13
 
13
- def configure_shape(key)
14
- unless KConfig.configuration.drawio.shapes.members.include?(key)
15
- puts "Shape #{key} not found in configuration"
14
+ def configure_shape(key, category)
15
+ item_config = KConfig.configuration.drawio.get_item_by_category(key, category)
16
+
17
+ if item_config.nil?
18
+ puts "#{key} not found in configuration for category: #{category}"
16
19
  return
17
20
  end
18
21
 
19
22
  @shape_key = key
20
- @shape_defaults = KConfig.configuration.drawio.shapes[key].clone
23
+ @shape_category = category
24
+ @shape_defaults = item_config.clone
21
25
  end
22
26
  end
23
27
 
24
- configure_shape(:shape)
25
-
26
- attr_accessor :category
27
28
  attr_accessor :theme
28
29
  attr_accessor :title
29
30
  attr_accessor :value
@@ -47,9 +48,6 @@ module DrawioDsl
47
48
  attr_accessor :h
48
49
  attr_accessor :style_modifiers
49
50
 
50
- attr_accessor :source
51
- attr_accessor :target
52
-
53
51
  def initialize(page, **args, &block)
54
52
  args[:classification] = :shape
55
53
  super(page, **args)
@@ -68,7 +66,6 @@ module DrawioDsl
68
66
  # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
69
67
  def apply_defaults(args)
70
68
  @theme = args[:theme] || page.theme # KConfig.configuration.drawio.themes.sample
71
- theme_palette = KConfig.configuration.drawio.palette(theme)
72
69
  @title = args[:title] || ''
73
70
 
74
71
  @white_space = args[:white_space] || page.style.white_space # wrap or nil
@@ -79,20 +76,11 @@ module DrawioDsl
79
76
  @glass = args[:glass] || page.style.glass
80
77
 
81
78
  @type = args[:type] || shape_defaults.type
82
- @category = args[:category] || shape_defaults.category
83
79
  @x = args[:x] || shape_defaults.x
84
80
  @y = args[:y] || shape_defaults.y
85
81
  @w = args[:w] || shape_defaults.w
86
82
  @h = args[:h] || shape_defaults.h
87
83
  @style_modifiers = args[:style_modifiers] || shape_defaults.style_modifiers
88
-
89
- @source = args[:source]
90
- @target = args[:target]
91
-
92
- @fill_color = args[:fill_color] || (category == :text ? nil : theme_palette.fill_color)
93
- @stroke_color = args[:stroke_color] || (category == :text ? nil : theme_palette.stroke_color)
94
- @gradient = args[:gradient] || (category == :text ? nil : theme_palette.gradient)
95
- @font_color = args[:font_color] || theme_palette.font_color
96
84
  end
97
85
 
98
86
  def format(type = nil)
@@ -121,8 +109,8 @@ module DrawioDsl
121
109
  def as_xml(xml)
122
110
  # log.error category
123
111
  # log.error type
124
- draw_element(xml) if category == :element
125
- draw_line(xml) if category == :line
112
+ draw_element(xml) if is_a?(Element) || is_a?(Text)
113
+ draw_line(xml) if is_a?(Line)
126
114
  end
127
115
 
128
116
  def draw_element(xml)
@@ -153,6 +141,10 @@ module DrawioDsl
153
141
  result
154
142
  end
155
143
 
144
+ def theme_palette
145
+ @theme_palette ||= KConfig.configuration.drawio.palette(theme)
146
+ end
147
+
156
148
  # :nocov:
157
149
  def debug(format: :detail)
158
150
  if format == :detail
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DrawioDsl
4
+ module Schema
5
+ # Text represents text shapes such as h1, h2, p, etc.
6
+ class Text < Shape
7
+ class << self
8
+ def configure_as(key)
9
+ configure_shape(key, :text)
10
+ end
11
+ end
12
+
13
+ def apply_defaults(args)
14
+ super(args)
15
+
16
+ @fill_color = args[:fill_color]
17
+ @stroke_color = args[:stroke_color]
18
+ @gradient = args[:gradient]
19
+ @font_color = args[:font_color] || theme_palette.text_font_color
20
+ end
21
+ end
22
+ end
23
+ end
@@ -2,8 +2,8 @@
2
2
 
3
3
  module DrawioDsl
4
4
  module Schema
5
- class H1 < Shape
6
- configure_shape(:h1)
5
+ class H1 < Text
6
+ configure_as(:h1)
7
7
  end
8
8
  end
9
9
  end
@@ -2,8 +2,8 @@
2
2
 
3
3
  module DrawioDsl
4
4
  module Schema
5
- class H2 < Shape
6
- configure_shape(:h2)
5
+ class H2 < Text
6
+ configure_as(:h2)
7
7
  end
8
8
  end
9
9
  end
@@ -2,8 +2,8 @@
2
2
 
3
3
  module DrawioDsl
4
4
  module Schema
5
- class H3 < Shape
6
- configure_shape(:h3)
5
+ class H3 < Text
6
+ configure_as(:h3)
7
7
  end
8
8
  end
9
9
  end
@@ -2,8 +2,8 @@
2
2
 
3
3
  module DrawioDsl
4
4
  module Schema
5
- class H4 < Shape
6
- configure_shape(:h4)
5
+ class H4 < Text
6
+ configure_as(:h4)
7
7
  end
8
8
  end
9
9
  end
@@ -2,8 +2,8 @@
2
2
 
3
3
  module DrawioDsl
4
4
  module Schema
5
- class H5 < Shape
6
- configure_shape(:h5)
5
+ class H5 < Text
6
+ configure_as(:h5)
7
7
  end
8
8
  end
9
9
  end
@@ -2,8 +2,8 @@
2
2
 
3
3
  module DrawioDsl
4
4
  module Schema
5
- class H6 < Shape
6
- configure_shape(:h6)
5
+ class H6 < Text
6
+ configure_as(:h6)
7
7
  end
8
8
  end
9
9
  end
@@ -2,8 +2,8 @@
2
2
 
3
3
  module DrawioDsl
4
4
  module Schema
5
- class P < Shape
6
- configure_shape(:p)
5
+ class P < Text
6
+ configure_as(:p)
7
7
  end
8
8
  end
9
9
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DrawioDsl
4
- VERSION = '0.8.11'
4
+ VERSION = '0.9.0'
5
5
  end
data/lib/drawio_dsl.rb CHANGED
@@ -7,6 +7,13 @@ require 'k_config'
7
7
  require 'k_log'
8
8
  require 'k_director'
9
9
 
10
+ module DrawioDsl
11
+ # raise DrawioDsl::Error, 'Sample message'
12
+ Error = Class.new(StandardError)
13
+
14
+ ROOT_PATH = File.expand_path('..', __dir__)
15
+ end
16
+
10
17
  require_relative 'drawio_dsl/configuration_extension'
11
18
  require_relative 'drawio_dsl/configuration_shapes'
12
19
  require_relative 'drawio_dsl/configuration_themes'
@@ -24,15 +31,6 @@ require_relative 'drawio_dsl/drawio_extensions'
24
31
  require_relative 'drawio_dsl/drawio_page'
25
32
  require_relative 'drawio_dsl/drawio'
26
33
 
27
- module DrawioDsl
28
- # raise DrawioDsl::Error, 'Sample message'
29
- Error = Class.new(StandardError)
30
-
31
- ROOT_PATH = File.expand_path('..', __dir__)
32
-
33
- # Your code goes here...
34
- end
35
-
36
34
  if ENV['KLUE_DEBUG']&.to_s&.downcase == 'true'
37
35
  namespace = 'DrawioDsl::Version'
38
36
  file_path = $LOADED_FEATURES.find { |f| f.include?('drawio_dsl/version') }
data/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "drawio_dsl",
3
- "version": "0.8.11",
3
+ "version": "0.9.0",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "drawio_dsl",
9
- "version": "0.8.11",
9
+ "version": "0.9.0",
10
10
  "devDependencies": {
11
11
  "@klueless-js/semantic-release-rubygem": "github:klueless-js/semantic-release-rubygem",
12
12
  "@semantic-release/changelog": "^6.0.1",
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drawio_dsl",
3
- "version": "0.8.11",
3
+ "version": "0.9.0",
4
4
  "description": "DrawIO DSL can build DrawIO diagrams using a Domain Specific Language",
5
5
  "scripts": {
6
6
  "release": "semantic-release"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drawio_dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.11
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys
@@ -303,57 +303,60 @@ files:
303
303
  - lib/drawio_dsl/schema/common_style.rb
304
304
  - lib/drawio_dsl/schema/default_palette.rb
305
305
  - lib/drawio_dsl/schema/diagram.rb
306
+ - lib/drawio_dsl/schema/element.rb
307
+ - lib/drawio_dsl/schema/elements/actor.rb
308
+ - lib/drawio_dsl/schema/elements/actor2.rb
309
+ - lib/drawio_dsl/schema/elements/callout.rb
310
+ - lib/drawio_dsl/schema/elements/callout2.rb
311
+ - lib/drawio_dsl/schema/elements/callout3.rb
312
+ - lib/drawio_dsl/schema/elements/callout4.rb
313
+ - lib/drawio_dsl/schema/elements/circle.rb
314
+ - lib/drawio_dsl/schema/elements/cloud.rb
315
+ - lib/drawio_dsl/schema/elements/container.rb
316
+ - lib/drawio_dsl/schema/elements/container2.rb
317
+ - lib/drawio_dsl/schema/elements/container3.rb
318
+ - lib/drawio_dsl/schema/elements/container4.rb
319
+ - lib/drawio_dsl/schema/elements/cross.rb
320
+ - lib/drawio_dsl/schema/elements/database.rb
321
+ - lib/drawio_dsl/schema/elements/db_json.rb
322
+ - lib/drawio_dsl/schema/elements/diamond.rb
323
+ - lib/drawio_dsl/schema/elements/document.rb
324
+ - lib/drawio_dsl/schema/elements/ellipse.rb
325
+ - lib/drawio_dsl/schema/elements/embed_col200.rb
326
+ - lib/drawio_dsl/schema/elements/embed_col50.rb
327
+ - lib/drawio_dsl/schema/elements/embed_row.rb
328
+ - lib/drawio_dsl/schema/elements/envelop.rb
329
+ - lib/drawio_dsl/schema/elements/face.rb
330
+ - lib/drawio_dsl/schema/elements/group.rb
331
+ - lib/drawio_dsl/schema/elements/hexagon.rb
332
+ - lib/drawio_dsl/schema/elements/interface.rb
333
+ - lib/drawio_dsl/schema/elements/klass.rb
334
+ - lib/drawio_dsl/schema/elements/note.rb
335
+ - lib/drawio_dsl/schema/elements/process.rb
336
+ - lib/drawio_dsl/schema/elements/rectangle.rb
337
+ - lib/drawio_dsl/schema/elements/rectangle2.rb
338
+ - lib/drawio_dsl/schema/elements/square.rb
339
+ - lib/drawio_dsl/schema/elements/step.rb
340
+ - lib/drawio_dsl/schema/elements/tick.rb
341
+ - lib/drawio_dsl/schema/elements/todo.rb
342
+ - lib/drawio_dsl/schema/elements/triangle.rb
306
343
  - lib/drawio_dsl/schema/layouts/flex_layout.rb
307
344
  - lib/drawio_dsl/schema/layouts/grid_layout.rb
308
345
  - lib/drawio_dsl/schema/layouts/layout.rb
346
+ - lib/drawio_dsl/schema/line.rb
347
+ - lib/drawio_dsl/schema/lines/solid.rb
309
348
  - lib/drawio_dsl/schema/node.rb
310
349
  - lib/drawio_dsl/schema/node_list.rb
311
350
  - lib/drawio_dsl/schema/page.rb
312
- - lib/drawio_dsl/schema/shapes/actor.rb
313
- - lib/drawio_dsl/schema/shapes/actor2.rb
314
- - lib/drawio_dsl/schema/shapes/callout.rb
315
- - lib/drawio_dsl/schema/shapes/callout2.rb
316
- - lib/drawio_dsl/schema/shapes/callout3.rb
317
- - lib/drawio_dsl/schema/shapes/callout4.rb
318
- - lib/drawio_dsl/schema/shapes/circle.rb
319
- - lib/drawio_dsl/schema/shapes/cloud.rb
320
- - lib/drawio_dsl/schema/shapes/container.rb
321
- - lib/drawio_dsl/schema/shapes/container2.rb
322
- - lib/drawio_dsl/schema/shapes/container3.rb
323
- - lib/drawio_dsl/schema/shapes/container4.rb
324
- - lib/drawio_dsl/schema/shapes/cross.rb
325
- - lib/drawio_dsl/schema/shapes/database.rb
326
- - lib/drawio_dsl/schema/shapes/db_json.rb
327
- - lib/drawio_dsl/schema/shapes/diamond.rb
328
- - lib/drawio_dsl/schema/shapes/document.rb
329
- - lib/drawio_dsl/schema/shapes/ellipse.rb
330
- - lib/drawio_dsl/schema/shapes/embed_col200.rb
331
- - lib/drawio_dsl/schema/shapes/embed_col50.rb
332
- - lib/drawio_dsl/schema/shapes/embed_row.rb
333
- - lib/drawio_dsl/schema/shapes/envelop.rb
334
- - lib/drawio_dsl/schema/shapes/face.rb
335
- - lib/drawio_dsl/schema/shapes/group.rb
336
- - lib/drawio_dsl/schema/shapes/h1.rb
337
- - lib/drawio_dsl/schema/shapes/h2.rb
338
- - lib/drawio_dsl/schema/shapes/h3.rb
339
- - lib/drawio_dsl/schema/shapes/h4.rb
340
- - lib/drawio_dsl/schema/shapes/h5.rb
341
- - lib/drawio_dsl/schema/shapes/h6.rb
342
- - lib/drawio_dsl/schema/shapes/hexagon.rb
343
- - lib/drawio_dsl/schema/shapes/interface.rb
344
- - lib/drawio_dsl/schema/shapes/klass.rb
345
- - lib/drawio_dsl/schema/shapes/line.rb
346
- - lib/drawio_dsl/schema/shapes/note.rb
347
- - lib/drawio_dsl/schema/shapes/p.rb
348
- - lib/drawio_dsl/schema/shapes/process.rb
349
- - lib/drawio_dsl/schema/shapes/rectangle.rb
350
- - lib/drawio_dsl/schema/shapes/rectangle2.rb
351
- - lib/drawio_dsl/schema/shapes/shape.rb
352
- - lib/drawio_dsl/schema/shapes/square.rb
353
- - lib/drawio_dsl/schema/shapes/step.rb
354
- - lib/drawio_dsl/schema/shapes/tick.rb
355
- - lib/drawio_dsl/schema/shapes/todo.rb
356
- - lib/drawio_dsl/schema/shapes/triangle.rb
351
+ - lib/drawio_dsl/schema/shape.rb
352
+ - lib/drawio_dsl/schema/text.rb
353
+ - lib/drawio_dsl/schema/texts/h1.rb
354
+ - lib/drawio_dsl/schema/texts/h2.rb
355
+ - lib/drawio_dsl/schema/texts/h3.rb
356
+ - lib/drawio_dsl/schema/texts/h4.rb
357
+ - lib/drawio_dsl/schema/texts/h5.rb
358
+ - lib/drawio_dsl/schema/texts/h6.rb
359
+ - lib/drawio_dsl/schema/texts/p.rb
357
360
  - lib/drawio_dsl/schema/virtual/anchor.rb
358
361
  - lib/drawio_dsl/version.rb
359
362
  - lib/drawio_dsl/xml_builder.rb
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module DrawioDsl
4
- module Schema
5
- class Callout3 < Shape
6
- configure_shape(:callout3)
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module DrawioDsl
4
- module Schema
5
- class Callout4 < Shape
6
- configure_shape(:callout4)
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module DrawioDsl
4
- module Schema
5
- class Container < Shape
6
- configure_shape(:container)
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module DrawioDsl
4
- module Schema
5
- class Container2 < Shape
6
- configure_shape(:container2)
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module DrawioDsl
4
- module Schema
5
- class Container3 < Shape
6
- configure_shape(:container3)
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module DrawioDsl
4
- module Schema
5
- class Container4 < Shape
6
- configure_shape(:container4)
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module DrawioDsl
4
- module Schema
5
- class Database < Shape
6
- configure_shape(:database)
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module DrawioDsl
4
- module Schema
5
- class DbJson < Shape
6
- configure_shape(:db_json)
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module DrawioDsl
4
- module Schema
5
- class Diamond < Shape
6
- configure_shape(:diamond)
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module DrawioDsl
4
- module Schema
5
- class Document < Shape
6
- configure_shape(:document)
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module DrawioDsl
4
- module Schema
5
- class Ellipse < Shape
6
- configure_shape(:ellipse)
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module DrawioDsl
4
- module Schema
5
- class EmbedCol200 < Shape
6
- configure_shape(:embed_col200)
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module DrawioDsl
4
- module Schema
5
- class EmbedCol50 < Shape
6
- configure_shape(:embed_col50)
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module DrawioDsl
4
- module Schema
5
- class EmbedRow < Shape
6
- configure_shape(:embed_row)
7
- end
8
- end
9
- end