diff --git a/e2etests/stable_test.go b/e2etests/stable_test.go index 6f03c9570..8b8e16ace 100644 --- a/e2etests/stable_test.go +++ b/e2etests/stable_test.go @@ -892,6 +892,37 @@ a -> b: To err is human, to moo bovine { shape: diamond } } +`, + }, + { + name: "stylish", + script: ` +x: { + style: { + opacity: 0.6 + fill: orange + stroke: "#53C0D8" + stroke-width: 5 + shadow: true + } +} + +y: { + style: { + opacity: 0.6 + fill: red + 3d: true + } +} + +x -> y: { + style: { + stroke: green + opacity: 0.5 + stroke-width: 2 + stroke-dash: 5 + } +} `, }, } diff --git a/e2etests/testdata/stable/stylish/dagre/board.exp.json b/e2etests/testdata/stable/stylish/dagre/board.exp.json new file mode 100644 index 000000000..9c7bc69dc --- /dev/null +++ b/e2etests/testdata/stable/stylish/dagre/board.exp.json @@ -0,0 +1,130 @@ +{ + "name": "", + "shapes": [ + { + "id": "x", + "type": "", + "pos": { + "x": 1, + "y": 0 + }, + "width": 113, + "height": 126, + "level": 1, + "opacity": 0.6, + "strokeDash": 0, + "strokeWidth": 5, + "borderRadius": 0, + "fill": "orange", + "stroke": "#53C0D8", + "shadow": true, + "3d": false, + "multiple": false, + "tooltip": "", + "link": "", + "icon": null, + "iconPosition": "", + "fields": null, + "methods": null, + "columns": null, + "label": "x", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "", + "color": "#0A0F25", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 13, + "labelHeight": 26, + "labelPosition": "INSIDE_MIDDLE_CENTER" + }, + { + "id": "y", + "type": "", + "pos": { + "x": 0, + "y": 226 + }, + "width": 114, + "height": 126, + "level": 1, + "opacity": 0.6, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "red", + "stroke": "#0D32B2", + "shadow": false, + "3d": true, + "multiple": false, + "tooltip": "", + "link": "", + "icon": null, + "iconPosition": "", + "fields": null, + "methods": null, + "columns": null, + "label": "y", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "", + "color": "#0A0F25", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 14, + "labelHeight": 26, + "labelPosition": "INSIDE_MIDDLE_CENTER" + } + ], + "connections": [ + { + "id": "(x -> y)[0]", + "src": "x", + "srcArrow": "none", + "srcLabel": "", + "dst": "y", + "dstArrow": "triangle", + "dstLabel": "", + "opacity": 0.5, + "strokeDash": 5, + "strokeWidth": 2, + "stroke": "green", + "label": "", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "", + "color": "#676C7E", + "italic": true, + "bold": false, + "underline": false, + "labelWidth": 0, + "labelHeight": 0, + "labelPosition": "", + "labelPercentage": 0, + "route": [ + { + "x": 57, + "y": 126 + }, + { + "x": 57, + "y": 166 + }, + { + "x": 57, + "y": 186 + }, + { + "x": 57, + "y": 226 + } + ], + "isCurve": true, + "animated": false, + "tooltip": "", + "icon": null + } + ] +} diff --git a/e2etests/testdata/stable/stylish/dagre/sketch.exp.svg b/e2etests/testdata/stable/stylish/dagre/sketch.exp.svg new file mode 100644 index 000000000..0cf218f55 --- /dev/null +++ b/e2etests/testdata/stable/stylish/dagre/sketch.exp.svg @@ -0,0 +1,32 @@ + + + + + + + + + +xy \ No newline at end of file diff --git a/e2etests/testdata/stable/stylish/elk/board.exp.json b/e2etests/testdata/stable/stylish/elk/board.exp.json new file mode 100644 index 000000000..f20088957 --- /dev/null +++ b/e2etests/testdata/stable/stylish/elk/board.exp.json @@ -0,0 +1,121 @@ +{ + "name": "", + "shapes": [ + { + "id": "x", + "type": "", + "pos": { + "x": 12, + "y": 12 + }, + "width": 113, + "height": 126, + "level": 1, + "opacity": 0.6, + "strokeDash": 0, + "strokeWidth": 5, + "borderRadius": 0, + "fill": "orange", + "stroke": "#53C0D8", + "shadow": true, + "3d": false, + "multiple": false, + "tooltip": "", + "link": "", + "icon": null, + "iconPosition": "", + "fields": null, + "methods": null, + "columns": null, + "label": "x", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "", + "color": "#0A0F25", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 13, + "labelHeight": 26, + "labelPosition": "INSIDE_MIDDLE_CENTER" + }, + { + "id": "y", + "type": "", + "pos": { + "x": 225, + "y": 12 + }, + "width": 114, + "height": 126, + "level": 1, + "opacity": 0.6, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "red", + "stroke": "#0D32B2", + "shadow": false, + "3d": true, + "multiple": false, + "tooltip": "", + "link": "", + "icon": null, + "iconPosition": "", + "fields": null, + "methods": null, + "columns": null, + "label": "y", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "", + "color": "#0A0F25", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 14, + "labelHeight": 26, + "labelPosition": "INSIDE_MIDDLE_CENTER" + } + ], + "connections": [ + { + "id": "(x -> y)[0]", + "src": "x", + "srcArrow": "none", + "srcLabel": "", + "dst": "y", + "dstArrow": "triangle", + "dstLabel": "", + "opacity": 0.5, + "strokeDash": 5, + "strokeWidth": 2, + "stroke": "green", + "label": "", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "", + "color": "#676C7E", + "italic": true, + "bold": false, + "underline": false, + "labelWidth": 0, + "labelHeight": 0, + "labelPosition": "", + "labelPercentage": 0, + "route": [ + { + "x": 125, + "y": 75 + }, + { + "x": 225, + "y": 75 + } + ], + "animated": false, + "tooltip": "", + "icon": null + } + ] +} diff --git a/e2etests/testdata/stable/stylish/elk/sketch.exp.svg b/e2etests/testdata/stable/stylish/elk/sketch.exp.svg new file mode 100644 index 000000000..469bc9e7c --- /dev/null +++ b/e2etests/testdata/stable/stylish/elk/sketch.exp.svg @@ -0,0 +1,32 @@ + + + + + + + + + +xy \ No newline at end of file