drawio_dsl 0.11.4 → 0.11.7
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/.rubocop.yml +3 -0
- data/CHANGELOG.md +23 -0
- data/config/configuration.json +160 -38
- data/docs/project-plan/project.drawio +103 -91
- 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/grid-alignment.svg +1 -1
- data/docs/samples/styles-sketch.svg +1 -1
- data/docs/samples/themes-random.svg +1 -1
- data/lib/drawio_dsl/configuration.rb +52 -5
- data/lib/drawio_dsl/drawio_extensions_active.rb +1 -0
- data/lib/drawio_dsl/schema/_.rb +1 -0
- data/lib/drawio_dsl/schema/diagram.rb +2 -3
- data/lib/drawio_dsl/schema/line.rb +23 -13
- data/lib/drawio_dsl/schema/shape.rb +38 -19
- data/lib/drawio_dsl/schema/style_builder.rb +82 -0
- data/lib/drawio_dsl/version.rb +1 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19884c8c76aaf61eb98bd7e8ae12d71375f25ebedfc6baf4375bf6ffff5450ea
|
4
|
+
data.tar.gz: a1f141cc4c44ef0383ddeb6cf32224fde6dbc142cc5f4f247292d4548b2779fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d517591ee66cd8aae0dfa9ac067bb3069dab01e86cd7c9068aeaa237bb4fc5fa4e3e72745d91a594da020f4484efa3c4b28acaef10692e328f296d4f91487cb5
|
7
|
+
data.tar.gz: 37d725224fdda478975b464b42971a09b70871f02fdf967b0c71c702e8ea60c1cfd0fe70b4553c94925ef974942c42ee3dc5dda6f96bf311ae741632b0f73829
|
data/.rubocop.yml
CHANGED
@@ -70,9 +70,11 @@ Metrics/AbcSize:
|
|
70
70
|
- "lib/drawio_dsl/configuration.rb"
|
71
71
|
- "lib/drawio_dsl/configuration_shapes.rb"
|
72
72
|
- "lib/drawio_dsl/configuration_themes.rb"
|
73
|
+
- "lib/drawio_dsl/schema/line.rb"
|
73
74
|
Metrics/CyclomaticComplexity:
|
74
75
|
Exclude:
|
75
76
|
- "lib/drawio_dsl/drawio_shapes.rb"
|
77
|
+
- "lib/drawio_dsl/schema/line.rb"
|
76
78
|
Metrics/MethodLength:
|
77
79
|
Max: 25
|
78
80
|
Exclude:
|
@@ -84,6 +86,7 @@ Metrics/MethodLength:
|
|
84
86
|
Metrics/PerceivedComplexity:
|
85
87
|
Exclude:
|
86
88
|
- "lib/drawio_dsl/drawio_shapes.rb"
|
89
|
+
- "lib/drawio_dsl/schema/line.rb"
|
87
90
|
Naming/MemoizedInstanceVariableName:
|
88
91
|
Enabled: false
|
89
92
|
Naming/AccessorMethodName:
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,26 @@
|
|
1
|
+
## [0.11.6](https://github.com/klueless-io/drawio_dsl/compare/v0.11.5...v0.11.6) (2022-03-31)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* bg_theme does not work OR at least make it better (see willoughby example) ([807364c](https://github.com/klueless-io/drawio_dsl/commit/807364c6df43de74349500858f87c93c2b75499e))
|
7
|
+
|
8
|
+
## [0.11.5](https://github.com/klueless-io/drawio_dsl/compare/v0.11.4...v0.11.5) (2022-03-30)
|
9
|
+
|
10
|
+
|
11
|
+
### Bug Fixes
|
12
|
+
|
13
|
+
* add support for :arrow to line ([5511b1a](https://github.com/klueless-io/drawio_dsl/commit/5511b1a56f444b1cac58c11670cdf1ee2e67e0d1))
|
14
|
+
* add support for :exit, :entry to line ([3381ff4](https://github.com/klueless-io/drawio_dsl/commit/3381ff45c0e8b4c3458f2c40d7e34f5c7a074800))
|
15
|
+
|
16
|
+
## [0.11.4](https://github.com/klueless-io/drawio_dsl/compare/v0.11.3...v0.11.4) (2022-03-28)
|
17
|
+
|
18
|
+
|
19
|
+
### Bug Fixes
|
20
|
+
|
21
|
+
* add support for :design to line ([bc007e4](https://github.com/klueless-io/drawio_dsl/commit/bc007e4fc77ffaf69491b571e840522220773ac3))
|
22
|
+
* refactor shapes to use configuration file and split into elements, lines and texts ([6303747](https://github.com/klueless-io/drawio_dsl/commit/630374751a60b797f045ae84b76506c51a3d0c00))
|
23
|
+
|
1
24
|
## [0.11.3](https://github.com/klueless-io/drawio_dsl/compare/v0.11.2...v0.11.3) (2022-03-28)
|
2
25
|
|
3
26
|
|
data/config/configuration.json
CHANGED
@@ -560,98 +560,98 @@
|
|
560
560
|
{
|
561
561
|
"category": "line",
|
562
562
|
"key": "solid",
|
563
|
-
"style_modifiers":
|
563
|
+
"style_modifiers": null,
|
564
564
|
"design": null,
|
565
565
|
"stroke": null
|
566
566
|
},
|
567
567
|
{
|
568
568
|
"category": "line",
|
569
569
|
"key": "dash",
|
570
|
-
"style_modifiers":
|
570
|
+
"style_modifiers": null,
|
571
571
|
"design": null,
|
572
572
|
"stroke": "dash"
|
573
573
|
},
|
574
574
|
{
|
575
575
|
"category": "line",
|
576
576
|
"key": "dot",
|
577
|
-
"style_modifiers":
|
577
|
+
"style_modifiers": null,
|
578
578
|
"design": null,
|
579
579
|
"stroke": "dot"
|
580
580
|
},
|
581
581
|
{
|
582
582
|
"category": "line",
|
583
583
|
"key": "dash_dot",
|
584
|
-
"style_modifiers":
|
584
|
+
"style_modifiers": null,
|
585
585
|
"design": null,
|
586
586
|
"stroke": "dash_dot"
|
587
587
|
},
|
588
588
|
{
|
589
589
|
"category": "line",
|
590
590
|
"key": "dash_dot_dot",
|
591
|
-
"style_modifiers":
|
591
|
+
"style_modifiers": null,
|
592
592
|
"design": null,
|
593
593
|
"stroke": "dash_dot_dot"
|
594
594
|
},
|
595
595
|
{
|
596
596
|
"category": "line",
|
597
597
|
"key": "dot_dot_dot",
|
598
|
-
"style_modifiers":
|
598
|
+
"style_modifiers": null,
|
599
599
|
"design": null,
|
600
600
|
"stroke": "dot_dot_dot"
|
601
601
|
},
|
602
602
|
{
|
603
603
|
"category": "line",
|
604
604
|
"key": "long_dash",
|
605
|
-
"style_modifiers":
|
605
|
+
"style_modifiers": null,
|
606
606
|
"design": null,
|
607
607
|
"stroke": "long_dash"
|
608
608
|
},
|
609
609
|
{
|
610
610
|
"category": "line",
|
611
611
|
"key": "dash_long_dash",
|
612
|
-
"style_modifiers":
|
612
|
+
"style_modifiers": null,
|
613
613
|
"design": null,
|
614
614
|
"stroke": "dash_long_dash"
|
615
615
|
},
|
616
616
|
{
|
617
617
|
"category": "line",
|
618
618
|
"key": "dash24",
|
619
|
-
"style_modifiers":
|
619
|
+
"style_modifiers": null,
|
620
620
|
"design": null,
|
621
621
|
"stroke": "dash24"
|
622
622
|
},
|
623
623
|
{
|
624
624
|
"category": "line",
|
625
625
|
"key": "dash32",
|
626
|
-
"style_modifiers":
|
626
|
+
"style_modifiers": null,
|
627
627
|
"design": null,
|
628
628
|
"stroke": "dash32"
|
629
629
|
},
|
630
630
|
{
|
631
631
|
"category": "line",
|
632
632
|
"key": "dash44",
|
633
|
-
"style_modifiers":
|
633
|
+
"style_modifiers": null,
|
634
634
|
"design": null,
|
635
635
|
"stroke": "dash44"
|
636
636
|
},
|
637
637
|
{
|
638
638
|
"category": "line",
|
639
639
|
"key": "double",
|
640
|
-
"style_modifiers":
|
640
|
+
"style_modifiers": null,
|
641
641
|
"design": "double",
|
642
642
|
"stroke": null
|
643
643
|
},
|
644
644
|
{
|
645
645
|
"category": "line",
|
646
646
|
"key": "double_dash",
|
647
|
-
"style_modifiers":
|
647
|
+
"style_modifiers": null,
|
648
648
|
"design": "double",
|
649
649
|
"stroke": "dash"
|
650
650
|
},
|
651
651
|
{
|
652
652
|
"category": "line",
|
653
653
|
"key": "double_dot",
|
654
|
-
"style_modifiers":
|
654
|
+
"style_modifiers": null,
|
655
655
|
"design": "double",
|
656
656
|
"stroke": "dot"
|
657
657
|
}
|
@@ -800,73 +800,195 @@
|
|
800
800
|
}
|
801
801
|
],
|
802
802
|
"arrows": [
|
803
|
+
{
|
804
|
+
"key": "none",
|
805
|
+
"image": "none",
|
806
|
+
"fill": 1
|
807
|
+
},
|
808
|
+
{
|
809
|
+
"key": "box",
|
810
|
+
"image": "box",
|
811
|
+
"fill": 1
|
812
|
+
},
|
813
|
+
{
|
814
|
+
"key": "open_box",
|
815
|
+
"image": "box",
|
816
|
+
"fill": 0
|
817
|
+
},
|
803
818
|
{
|
804
819
|
"key": "simple",
|
805
|
-
"
|
820
|
+
"image": "open",
|
821
|
+
"fill": 1
|
806
822
|
},
|
807
823
|
{
|
808
|
-
"key": "
|
809
|
-
"
|
824
|
+
"key": "simple_thin",
|
825
|
+
"image": "openThin",
|
826
|
+
"fill": 1
|
827
|
+
},
|
828
|
+
{
|
829
|
+
"key": "arrow",
|
830
|
+
"image": "block",
|
831
|
+
"fill": 1
|
832
|
+
},
|
833
|
+
{
|
834
|
+
"key": "open_arrow",
|
835
|
+
"image": "block",
|
836
|
+
"fill": 0
|
837
|
+
},
|
838
|
+
{
|
839
|
+
"key": "arrow_thin",
|
840
|
+
"image": "blockThin",
|
841
|
+
"fill": 1
|
842
|
+
},
|
843
|
+
{
|
844
|
+
"key": "open_arrow_thin",
|
845
|
+
"image": "blockThin",
|
846
|
+
"fill": 0
|
847
|
+
},
|
848
|
+
{
|
849
|
+
"key": "arrow_double",
|
850
|
+
"image": "doubleBlock",
|
851
|
+
"fill": 1
|
852
|
+
},
|
853
|
+
{
|
854
|
+
"key": "open_arrow_double",
|
855
|
+
"image": "doubleBlock",
|
856
|
+
"fill": 0
|
810
857
|
},
|
811
858
|
{
|
812
859
|
"key": "diamond",
|
813
|
-
"
|
860
|
+
"image": "diamond",
|
861
|
+
"fill": 1
|
862
|
+
},
|
863
|
+
{
|
864
|
+
"key": "open_diamond",
|
865
|
+
"image": "diamond",
|
866
|
+
"fill": 0
|
867
|
+
},
|
868
|
+
{
|
869
|
+
"key": "diamond_thin",
|
870
|
+
"image": "diamondThin",
|
871
|
+
"fill": 1
|
872
|
+
},
|
873
|
+
{
|
874
|
+
"key": "open_diamond_thin",
|
875
|
+
"image": "diamondThin",
|
876
|
+
"fill": 0
|
814
877
|
},
|
815
878
|
{
|
816
879
|
"key": "circle",
|
817
|
-
"
|
880
|
+
"image": "oval",
|
881
|
+
"fill": 1
|
882
|
+
},
|
883
|
+
{
|
884
|
+
"key": "open_circle",
|
885
|
+
"image": "oval",
|
886
|
+
"fill": 0
|
887
|
+
},
|
888
|
+
{
|
889
|
+
"key": "half_circle",
|
890
|
+
"image": "halfCircle",
|
891
|
+
"fill": 1
|
892
|
+
},
|
893
|
+
{
|
894
|
+
"key": "plus_circle",
|
895
|
+
"image": "circlePlus",
|
896
|
+
"fill": 1
|
897
|
+
},
|
898
|
+
{
|
899
|
+
"key": "open_plus_circle",
|
900
|
+
"image": "circlePlus",
|
901
|
+
"fill": 0
|
818
902
|
},
|
819
903
|
{
|
820
904
|
"key": "cross",
|
821
|
-
"
|
905
|
+
"image": "cross",
|
906
|
+
"fill": 1
|
822
907
|
},
|
823
908
|
{
|
824
909
|
"key": "short",
|
825
|
-
"
|
910
|
+
"image": "classicThin",
|
911
|
+
"fill": 1
|
912
|
+
},
|
913
|
+
{
|
914
|
+
"key": "open_short",
|
915
|
+
"image": "classicThin",
|
916
|
+
"fill": 0
|
826
917
|
},
|
827
918
|
{
|
828
919
|
"key": "default",
|
829
|
-
"
|
920
|
+
"image": "classic",
|
921
|
+
"fill": 1
|
830
922
|
},
|
831
923
|
{
|
832
|
-
"key": "
|
833
|
-
"
|
924
|
+
"key": "open_default",
|
925
|
+
"image": "classic",
|
926
|
+
"fill": 0
|
834
927
|
},
|
835
928
|
{
|
836
|
-
"key": "
|
837
|
-
"
|
929
|
+
"key": "none",
|
930
|
+
"image": "none",
|
931
|
+
"fill": 1
|
838
932
|
},
|
839
933
|
{
|
840
|
-
"key": "
|
841
|
-
"
|
934
|
+
"key": "open_none",
|
935
|
+
"image": "none",
|
936
|
+
"fill": 0
|
842
937
|
},
|
843
938
|
{
|
844
|
-
"key": "
|
845
|
-
"
|
939
|
+
"key": "skewed_dash",
|
940
|
+
"image": "dash",
|
941
|
+
"fill": 1
|
846
942
|
},
|
847
943
|
{
|
848
944
|
"key": "er_many",
|
849
|
-
"
|
945
|
+
"image": "ERmany",
|
946
|
+
"fill": 1
|
850
947
|
},
|
851
948
|
{
|
852
949
|
"key": "er_one",
|
853
|
-
"
|
950
|
+
"image": "ERone",
|
951
|
+
"fill": 1
|
854
952
|
},
|
855
953
|
{
|
856
954
|
"key": "er_one_optional",
|
857
|
-
"
|
955
|
+
"image": "ERzeroToOne",
|
956
|
+
"fill": 1
|
858
957
|
},
|
859
958
|
{
|
860
959
|
"key": "er_one_mandatory",
|
861
|
-
"
|
960
|
+
"image": "ERmandOne",
|
961
|
+
"fill": 1
|
862
962
|
},
|
863
963
|
{
|
864
964
|
"key": "er_many_optional",
|
865
|
-
"
|
965
|
+
"image": "ERzeroToMany",
|
966
|
+
"fill": 1
|
967
|
+
},
|
968
|
+
{
|
969
|
+
"key": "er_many_optional",
|
970
|
+
"image": "ERzeroToMany",
|
971
|
+
"fill": 0
|
866
972
|
},
|
867
973
|
{
|
868
974
|
"key": "er_many_mandatory",
|
869
|
-
"
|
975
|
+
"image": "ERoneToMany",
|
976
|
+
"fill": 1
|
977
|
+
},
|
978
|
+
{
|
979
|
+
"key": "er_many_mandatory",
|
980
|
+
"image": "ERoneToMany",
|
981
|
+
"fill": 0
|
982
|
+
},
|
983
|
+
{
|
984
|
+
"key": "async",
|
985
|
+
"image": "async",
|
986
|
+
"fill": 1
|
987
|
+
},
|
988
|
+
{
|
989
|
+
"key": "async",
|
990
|
+
"image": "async",
|
991
|
+
"fill": 0
|
870
992
|
}
|
871
993
|
],
|
872
994
|
"designs": [
|
@@ -1887,13 +2009,13 @@
|
|
1887
2009
|
"favourite": 1,
|
1888
2010
|
"key": "pale_gray",
|
1889
2011
|
"bg_color": "#FAFAFA",
|
1890
|
-
"font_color": "#
|
2012
|
+
"font_color": "#1F2D3D"
|
1891
2013
|
},
|
1892
2014
|
{
|
1893
2015
|
"favourite": 0,
|
1894
2016
|
"key": "pale_grey",
|
1895
2017
|
"bg_color": "#FAFAFA",
|
1896
|
-
"font_color": "#
|
2018
|
+
"font_color": "#1F2D3D"
|
1897
2019
|
},
|
1898
2020
|
{
|
1899
2021
|
"favourite": 0,
|