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 +4 -4
- data/.builders/.data/shapes.json +9 -0
- data/.builders/blueprint/shapes.rb +1 -0
- data/.builders/generators/project-plan.rb +3 -3
- data/.builders/generators/sample_diagrams/20-styles.rb +2 -2
- data/.builders/generators/sample_diagrams/35-ids-and-arrows.rb +0 -2
- data/CHANGELOG.md +7 -0
- data/docs/domain-modal/domain_model_custom.svg +1 -0
- data/docs/domain-modal.md +1 -1
- data/docs/project-plan/project.drawio +58 -58
- data/docs/project-plan/project_done.svg +1 -1
- data/docs/project-plan/project_in_progress.svg +1 -1
- data/docs/project-plan/project_todo.svg +1 -1
- 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/lib/drawio_dsl/configuration_shapes.rb +3 -1
- data/lib/drawio_dsl/dom_builder_shapes.rb +7 -1
- data/lib/drawio_dsl/drawio_shapes.rb +22 -16
- data/lib/drawio_dsl/schema/_.rb +1 -0
- data/lib/drawio_dsl/schema/shapes/group.rb +9 -0
- data/lib/drawio_dsl/version.rb +1 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- metadata +3 -2
- data/docs/domain-modal/domain_model_custom.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db2a5ce1b5ea291cf4b2044123d747842b63cd60bc10286d528dd1bedb721486
|
4
|
+
data.tar.gz: 0eeeaebc648ff1a169ef79e09e85f5c72d38c3a2d20f7970ac72d465658efd3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f89d67ab45ba7bc906b47aa605f9a71dceff627af5c40f0b0f0c91f9166a74a3ff0bf36151956e3ed0a2677ede8109c0e90935b5ef9b5fad7d8e1366c0ced65
|
7
|
+
data.tar.gz: bf776aae738f636103d2ba681f03532522889e1d45ccb74b3a9ea3ecfb432d83e43ed61897d59c74b8bee702793c541e3851a9070f63ed24c46920a5577f19c6
|
data/.builders/.data/shapes.json
CHANGED
@@ -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 :
|
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
|
-
.
|
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)
|
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
|
|