drawio_dsl 0.8.5 → 0.8.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3326464ea6385663c953bce3506bb21fed82b44a0003a08a75ad7649f1ee5bcb
4
- data.tar.gz: a8d0e991fb3f38038b417021d0f16dd42736bc757c9fc92001449650ed9b1fac
3
+ metadata.gz: db2a5ce1b5ea291cf4b2044123d747842b63cd60bc10286d528dd1bedb721486
4
+ data.tar.gz: 0eeeaebc648ff1a169ef79e09e85f5c72d38c3a2d20f7970ac72d465658efd3c
5
5
  SHA512:
6
- metadata.gz: 25a5e3322839124a32c317f9835b7216554e29e8f31071056d861b2a2f6eb7f96142c34ec45f14b5c478abfdb5539d5ffc5f50db58c6b811e532480582524bf1
7
- data.tar.gz: c318a04c0cad50652fcbcf0d490ed4788cf1e646745df16df587a60f86f157f3e05e3972815f106d4ea02029db03f1eb25974e80b84e727bdc766fb9cf1bc23f
6
+ metadata.gz: 5f89d67ab45ba7bc906b47aa605f9a71dceff627af5c40f0b0f0c91f9166a74a3ff0bf36151956e3ed0a2677ede8109c0e90935b5ef9b5fad7d8e1366c0ced65
7
+ data.tar.gz: bf776aae738f636103d2ba681f03532522889e1d45ccb74b3a9ea3ecfb432d83e43ed61897d59c74b8bee702793c541e3851a9070f63ed24c46920a5577f19c6
@@ -451,6 +451,15 @@
451
451
  "h": 120,
452
452
  "style_modifiers": "ellipse"
453
453
  },
454
+ {
455
+ "type": "group",
456
+ "category": "element",
457
+ "x": 0,
458
+ "y": 0,
459
+ "w": 210,
460
+ "h": 210,
461
+ "style_modifiers": "fontSize=20;verticalAlign=top"
462
+ },
454
463
  {
455
464
  "type": "hexagon",
456
465
  "category": "element",
@@ -129,6 +129,7 @@ m = KManager.model :shapes, namespace: %i[domain] do
129
129
  row :diamond , :element, 0, 0, 100, 100, 'rhombus'
130
130
  row :document , :element, 0, 0, 160, 160, 'shape=mxgraph.basic.document'
131
131
  row :ellipse , :element, 0, 0, 200, 120, 'ellipse'
132
+ row :group , :element, 0, 0, 210, 210, 'fontSize=20;verticalAlign=top'
132
133
  row :hexagon , :element, 0, 0, 200, 120, 'shape=hexagon'
133
134
  row :interface , :element, 0, 0, 160, 160, 'align=left;overflow=fill;fontSize=12;fontFamily=Helvetica'
134
135
  row :klass , :element, 0, 0, 160, 160, 'align=left;overflow=fill;fontSize=12;fontFamily=Helvetica'
@@ -11,8 +11,6 @@ KManager.action :project_plan do
11
11
 
12
12
  grid_layout(y: 90, direction: :horizontal, grid_h: 80, grid_w: 320, wrap_at: 3, grid: 0)
13
13
 
14
- todo(title: 'build a domain (class) diagram')
15
- todo(title: 'group box, like a regular box but with a top aligned h1 style title')
16
14
  todo(title: 'class html builder to support include/extend modules, class methods and regular html nodes such as p, h1.. ul, li')
17
15
  todo(title: 'add new shapes related to line connectors')
18
16
  todo(title: 'line connector aliases gives a simple way to use predefined line configurations')
@@ -32,7 +30,7 @@ KManager.action :project_plan do
32
30
  todo(title: 'move DrawioDsl::Formatters::StyleBuilder::MAPPINGS to resource file')
33
31
  todo(title: 'settings style attributes need to de-duplicate, might be best to utilize the new StyleBuilder class')
34
32
  todo(title: 'write SVG directly into other projects')
35
- todo(title: 'add :shape, :line and :text to random shape generator')
33
+ todo(title: 'add :shape, :line and :text to random shape generator, note: you can see the issue in the samples/20-styled-shapes.rb where the text is not rendered')
36
34
  todo(title: 'Nodes need to support child nodes')
37
35
  todo(title: 'Grid layout does not position itself in relation to the last element')
38
36
  todo(title: 'Dynamic sized shapes that expand to the size of their text')
@@ -48,6 +46,8 @@ KManager.action :project_plan do
48
46
 
49
47
  grid_layout(y:90, direction: :horizontal, grid_h: 80, grid_w: 320, wrap_at: 3, grid: 0)
50
48
 
49
+ todo(title: 'group box, like a regular box but with a top aligned h1 style title')
50
+ todo(title: 'build a domain (class) diagram')
51
51
  todo(title: 'build configuration for line strokes %i[dashed dotted dashdot dashdotdot dotdotdot longdash)')
52
52
  todo(title: 'build configuration for line compass %i[n ne e se s sw w nw]')
53
53
  todo(title: 'build configuration for line shape %i[style1 style2 style3 style4]')
@@ -1,4 +1,4 @@
1
- KManager.action :bootstrap do
1
+ KManager.action :styled_shapes do
2
2
  action do
3
3
 
4
4
  DrawioDsl::Drawio
@@ -50,7 +50,7 @@ KManager.action :bootstrap do
50
50
  end
51
51
  end
52
52
  .cd(:spec)
53
- .save('.samples/20-styles.drawio')
53
+ .osave('.samples/20-styled-shapes.drawio')
54
54
  .cd(:docs)
55
55
  .export_svg('samples/styles-plain', page: 1)
56
56
  .export_svg('samples/styles-shadow', page: 2)
@@ -24,7 +24,5 @@ KManager.action :bootstrap do
24
24
  end
25
25
  .cd(:spec)
26
26
  .save('.samples/35-ids-and-arrows.drawio')
27
- # .cd(:docs)
28
- # .export_svg('samples/styles-plain', page: 1)
29
27
  end
30
28
  end
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [0.8.5](https://github.com/klueless-io/drawio_dsl/compare/v0.8.4...v0.8.5) (2022-03-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * build a domain (class) diagram ([673cbba](https://github.com/klueless-io/drawio_dsl/commit/673cbba2e84bac025f43b64f93547d1547dc6d63))
7
+
1
8
  ## [0.8.4](https://github.com/klueless-io/drawio_dsl/compare/v0.8.3...v0.8.4) (2022-03-17)
2
9
 
3
10