forked from terrastruct/d2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add arrowhead label test case from terrastruct#169
- Loading branch information
Showing
7 changed files
with
333 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
130 changes: 130 additions & 0 deletions
130
e2etests/testdata/stable/arrowhead_labels/dagre/board.exp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
{ | ||
"name": "", | ||
"shapes": [ | ||
{ | ||
"id": "a", | ||
"type": "", | ||
"pos": { | ||
"x": 0, | ||
"y": 0 | ||
}, | ||
"width": 113, | ||
"height": 126, | ||
"level": 1, | ||
"opacity": 1, | ||
"strokeDash": 0, | ||
"strokeWidth": 2, | ||
"borderRadius": 0, | ||
"fill": "#F7F8FE", | ||
"stroke": "#0D32B2", | ||
"shadow": false, | ||
"3d": false, | ||
"multiple": false, | ||
"tooltip": "", | ||
"link": "", | ||
"icon": null, | ||
"iconPosition": "", | ||
"fields": null, | ||
"methods": null, | ||
"columns": null, | ||
"label": "a", | ||
"fontSize": 16, | ||
"fontFamily": "DEFAULT", | ||
"language": "", | ||
"color": "#0A0F25", | ||
"italic": false, | ||
"bold": true, | ||
"underline": false, | ||
"labelWidth": 13, | ||
"labelHeight": 26, | ||
"labelPosition": "INSIDE_MIDDLE_CENTER" | ||
}, | ||
{ | ||
"id": "b", | ||
"type": "", | ||
"pos": { | ||
"x": 0, | ||
"y": 226 | ||
}, | ||
"width": 113, | ||
"height": 126, | ||
"level": 1, | ||
"opacity": 1, | ||
"strokeDash": 0, | ||
"strokeWidth": 2, | ||
"borderRadius": 0, | ||
"fill": "#F7F8FE", | ||
"stroke": "#0D32B2", | ||
"shadow": false, | ||
"3d": false, | ||
"multiple": false, | ||
"tooltip": "", | ||
"link": "", | ||
"icon": null, | ||
"iconPosition": "", | ||
"fields": null, | ||
"methods": null, | ||
"columns": null, | ||
"label": "b", | ||
"fontSize": 16, | ||
"fontFamily": "DEFAULT", | ||
"language": "", | ||
"color": "#0A0F25", | ||
"italic": false, | ||
"bold": true, | ||
"underline": false, | ||
"labelWidth": 13, | ||
"labelHeight": 26, | ||
"labelPosition": "INSIDE_MIDDLE_CENTER" | ||
} | ||
], | ||
"connections": [ | ||
{ | ||
"id": "(a -> b)[0]", | ||
"src": "a", | ||
"srcArrow": "none", | ||
"srcLabel": "1", | ||
"dst": "b", | ||
"dstArrow": "diamond", | ||
"dstLabel": "*", | ||
"opacity": 1, | ||
"strokeDash": 0, | ||
"strokeWidth": 2, | ||
"stroke": "#0D32B2", | ||
"label": "To err is human, to moo bovine", | ||
"fontSize": 16, | ||
"fontFamily": "DEFAULT", | ||
"language": "", | ||
"color": "#676C7E", | ||
"italic": true, | ||
"bold": false, | ||
"underline": false, | ||
"labelWidth": 201, | ||
"labelHeight": 21, | ||
"labelPosition": "INSIDE_MIDDLE_CENTER", | ||
"labelPercentage": 0, | ||
"route": [ | ||
{ | ||
"x": 56.5, | ||
"y": 126 | ||
}, | ||
{ | ||
"x": 56.5, | ||
"y": 166 | ||
}, | ||
{ | ||
"x": 56.5, | ||
"y": 186 | ||
}, | ||
{ | ||
"x": 56.5, | ||
"y": 226 | ||
} | ||
], | ||
"isCurve": true, | ||
"animated": false, | ||
"tooltip": "", | ||
"icon": null | ||
} | ||
] | ||
} |
34 changes: 34 additions & 0 deletions
34
e2etests/testdata/stable/arrowhead_labels/dagre/sketch.exp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
121 changes: 121 additions & 0 deletions
121
e2etests/testdata/stable/arrowhead_labels/elk/board.exp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
{ | ||
"name": "", | ||
"shapes": [ | ||
{ | ||
"id": "a", | ||
"type": "", | ||
"pos": { | ||
"x": 12, | ||
"y": 12 | ||
}, | ||
"width": 113, | ||
"height": 126, | ||
"level": 1, | ||
"opacity": 1, | ||
"strokeDash": 0, | ||
"strokeWidth": 2, | ||
"borderRadius": 0, | ||
"fill": "#F7F8FE", | ||
"stroke": "#0D32B2", | ||
"shadow": false, | ||
"3d": false, | ||
"multiple": false, | ||
"tooltip": "", | ||
"link": "", | ||
"icon": null, | ||
"iconPosition": "", | ||
"fields": null, | ||
"methods": null, | ||
"columns": null, | ||
"label": "a", | ||
"fontSize": 16, | ||
"fontFamily": "DEFAULT", | ||
"language": "", | ||
"color": "#0A0F25", | ||
"italic": false, | ||
"bold": true, | ||
"underline": false, | ||
"labelWidth": 13, | ||
"labelHeight": 26, | ||
"labelPosition": "INSIDE_MIDDLE_CENTER" | ||
}, | ||
{ | ||
"id": "b", | ||
"type": "", | ||
"pos": { | ||
"x": 526, | ||
"y": 12 | ||
}, | ||
"width": 113, | ||
"height": 126, | ||
"level": 1, | ||
"opacity": 1, | ||
"strokeDash": 0, | ||
"strokeWidth": 2, | ||
"borderRadius": 0, | ||
"fill": "#F7F8FE", | ||
"stroke": "#0D32B2", | ||
"shadow": false, | ||
"3d": false, | ||
"multiple": false, | ||
"tooltip": "", | ||
"link": "", | ||
"icon": null, | ||
"iconPosition": "", | ||
"fields": null, | ||
"methods": null, | ||
"columns": null, | ||
"label": "b", | ||
"fontSize": 16, | ||
"fontFamily": "DEFAULT", | ||
"language": "", | ||
"color": "#0A0F25", | ||
"italic": false, | ||
"bold": true, | ||
"underline": false, | ||
"labelWidth": 13, | ||
"labelHeight": 26, | ||
"labelPosition": "INSIDE_MIDDLE_CENTER" | ||
} | ||
], | ||
"connections": [ | ||
{ | ||
"id": "(a -> b)[0]", | ||
"src": "a", | ||
"srcArrow": "none", | ||
"srcLabel": "1", | ||
"dst": "b", | ||
"dstArrow": "diamond", | ||
"dstLabel": "*", | ||
"opacity": 1, | ||
"strokeDash": 0, | ||
"strokeWidth": 2, | ||
"stroke": "#0D32B2", | ||
"label": "To err is human, to moo bovine", | ||
"fontSize": 16, | ||
"fontFamily": "DEFAULT", | ||
"language": "", | ||
"color": "#676C7E", | ||
"italic": true, | ||
"bold": false, | ||
"underline": false, | ||
"labelWidth": 201, | ||
"labelHeight": 21, | ||
"labelPosition": "INSIDE_MIDDLE_CENTER", | ||
"labelPercentage": 0, | ||
"route": [ | ||
{ | ||
"x": 125, | ||
"y": 75 | ||
}, | ||
{ | ||
"x": 526, | ||
"y": 75 | ||
} | ||
], | ||
"animated": false, | ||
"tooltip": "", | ||
"icon": null | ||
} | ||
] | ||
} |
34 changes: 34 additions & 0 deletions
34
e2etests/testdata/stable/arrowhead_labels/elk/sketch.exp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.