added test cases in txtar.txt

This commit is contained in:
melsonic 2025-03-19 23:32:18 +05:30
parent 532d913309
commit 9353310fed
No known key found for this signature in database
GPG key ID: DFA426742F621CD7
13 changed files with 914 additions and 192 deletions

View file

@ -15,7 +15,7 @@
"id": "a",
"type": "rectangle",
"pos": {
"x": 0,
"x": 29,
"y": 0
},
"width": 53,
@ -57,7 +57,7 @@
"id": "b",
"type": "rectangle",
"pos": {
"x": 186,
"x": 275,
"y": 0
},
"width": 53,
@ -99,7 +99,7 @@
"id": "c",
"type": "rectangle",
"pos": {
"x": 339,
"x": 459,
"y": 0
},
"width": 53,
@ -136,6 +136,90 @@
"labelPosition": "INSIDE_MIDDLE_CENTER",
"zIndex": 0,
"level": 1
},
{
"id": "producer",
"type": "rectangle",
"pos": {
"x": 0,
"y": 126
},
"width": 110,
"height": 66,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,
"borderRadius": 0,
"fill": "B6",
"stroke": "B1",
"animated": false,
"shadow": false,
"3d": false,
"multiple": false,
"double-border": false,
"tooltip": "",
"link": "",
"icon": null,
"iconPosition": "",
"blend": false,
"fields": null,
"methods": null,
"columns": null,
"label": "producer",
"fontSize": 16,
"fontFamily": "DEFAULT",
"language": "",
"color": "N1",
"italic": false,
"bold": true,
"underline": false,
"labelWidth": 65,
"labelHeight": 21,
"labelPosition": "INSIDE_MIDDLE_CENTER",
"zIndex": 0,
"level": 1
},
{
"id": "consumer",
"type": "rectangle",
"pos": {
"x": 243,
"y": 126
},
"width": 116,
"height": 66,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,
"borderRadius": 0,
"fill": "B6",
"stroke": "B1",
"animated": false,
"shadow": false,
"3d": false,
"multiple": false,
"double-border": false,
"tooltip": "",
"link": "",
"icon": null,
"iconPosition": "",
"blend": false,
"fields": null,
"methods": null,
"columns": null,
"label": "consumer",
"fontSize": 16,
"fontFamily": "DEFAULT",
"language": "",
"color": "N1",
"italic": false,
"bold": true,
"underline": false,
"labelWidth": 71,
"labelHeight": 21,
"labelPosition": "INSIDE_MIDDLE_CENTER",
"zIndex": 0,
"level": 1
}
],
"connections": [
@ -165,19 +249,19 @@
"link": "",
"route": [
{
"x": 52.5,
"x": 82.5,
"y": 33
},
{
"x": 106.0999984741211,
"x": 157.6999969482422,
"y": 33
},
{
"x": 132.89999389648438,
"x": 196.10000610351562,
"y": 33
},
{
"x": 186.5,
"x": 274.5,
"y": 33
}
],
@ -226,19 +310,19 @@
"link": "",
"route": [
{
"x": 239,
"x": 328.5,
"y": 33
},
{
"x": 279,
"x": 392.8999938964844,
"y": 33
},
{
"x": 299,
"x": 419,
"y": 33
},
{
"x": 339,
"x": 459,
"y": 33
}
],
@ -260,6 +344,68 @@
},
"iconPosition": "INSIDE_MIDDLE_CENTER",
"zIndex": 0
},
{
"id": "(producer -> consumer)[0]",
"src": "producer",
"srcArrow": "none",
"dst": "consumer",
"dstArrow": "triangle",
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,
"stroke": "B1",
"borderRadius": 10,
"label": "",
"fontSize": 16,
"fontFamily": "DEFAULT",
"language": "",
"color": "N2",
"italic": true,
"bold": false,
"underline": false,
"labelWidth": 0,
"labelHeight": 0,
"labelPosition": "",
"labelPercentage": 0,
"link": "",
"route": [
{
"x": 109.5,
"y": 159
},
{
"x": 163.10000610351562,
"y": 159
},
{
"x": 189.89999389648438,
"y": 159
},
{
"x": 243.5,
"y": 159
}
],
"isCurve": true,
"animated": false,
"tooltip": "",
"icon": {
"Scheme": "https",
"Opaque": "",
"User": null,
"Host": "icons.terrastruct.com",
"Path": "/aws/Application Integration/Amazon-Simple-Queue-Service-SQS.svg",
"RawPath": "/aws%2FApplication%20Integration%2FAmazon-Simple-Queue-Service-SQS.svg",
"OmitHost": false,
"ForceQuery": false,
"RawQuery": "",
"Fragment": "",
"RawFragment": ""
},
"iconPosition": "INSIDE_MIDDLE_CENTER",
"iconBorderRadius": 20,
"zIndex": 0
}
],
"root": {

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View file

@ -15,7 +15,7 @@
"id": "a",
"type": "rectangle",
"pos": {
"x": 12,
"x": 69,
"y": 12
},
"width": 53,
@ -57,7 +57,7 @@
"id": "b",
"type": "rectangle",
"pos": {
"x": 238,
"x": 378,
"y": 12
},
"width": 53,
@ -99,7 +99,7 @@
"id": "c",
"type": "rectangle",
"pos": {
"x": 361,
"x": 501,
"y": 12
},
"width": 53,
@ -136,6 +136,90 @@
"labelPosition": "INSIDE_MIDDLE_CENTER",
"zIndex": 0,
"level": 1
},
{
"id": "producer",
"type": "rectangle",
"pos": {
"x": 12,
"y": 98
},
"width": 110,
"height": 66,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,
"borderRadius": 0,
"fill": "B6",
"stroke": "B1",
"animated": false,
"shadow": false,
"3d": false,
"multiple": false,
"double-border": false,
"tooltip": "",
"link": "",
"icon": null,
"iconPosition": "",
"blend": false,
"fields": null,
"methods": null,
"columns": null,
"label": "producer",
"fontSize": 16,
"fontFamily": "DEFAULT",
"language": "",
"color": "N1",
"italic": false,
"bold": true,
"underline": false,
"labelWidth": 65,
"labelHeight": 21,
"labelPosition": "INSIDE_MIDDLE_CENTER",
"zIndex": 0,
"level": 1
},
{
"id": "consumer",
"type": "rectangle",
"pos": {
"x": 192,
"y": 98
},
"width": 116,
"height": 66,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,
"borderRadius": 0,
"fill": "B6",
"stroke": "B1",
"animated": false,
"shadow": false,
"3d": false,
"multiple": false,
"double-border": false,
"tooltip": "",
"link": "",
"icon": null,
"iconPosition": "",
"blend": false,
"fields": null,
"methods": null,
"columns": null,
"label": "consumer",
"fontSize": 16,
"fontFamily": "DEFAULT",
"language": "",
"color": "N1",
"italic": false,
"bold": true,
"underline": false,
"labelWidth": 71,
"labelHeight": 21,
"labelPosition": "INSIDE_MIDDLE_CENTER",
"zIndex": 0,
"level": 1
}
],
"connections": [
@ -165,11 +249,11 @@
"link": "",
"route": [
{
"x": 65,
"x": 122,
"y": 45
},
{
"x": 238,
"x": 378,
"y": 45
}
],
@ -217,11 +301,11 @@
"link": "",
"route": [
{
"x": 291,
"x": 431,
"y": 45
},
{
"x": 361,
"x": 501,
"y": 45
}
],
@ -242,6 +326,59 @@
},
"iconPosition": "INSIDE_MIDDLE_CENTER",
"zIndex": 0
},
{
"id": "(producer -> consumer)[0]",
"src": "producer",
"srcArrow": "none",
"dst": "consumer",
"dstArrow": "triangle",
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,
"stroke": "B1",
"borderRadius": 10,
"label": "",
"fontSize": 16,
"fontFamily": "DEFAULT",
"language": "",
"color": "N2",
"italic": true,
"bold": false,
"underline": false,
"labelWidth": 0,
"labelHeight": 0,
"labelPosition": "",
"labelPercentage": 0,
"link": "",
"route": [
{
"x": 122,
"y": 131
},
{
"x": 192,
"y": 131
}
],
"animated": false,
"tooltip": "",
"icon": {
"Scheme": "https",
"Opaque": "",
"User": null,
"Host": "icons.terrastruct.com",
"Path": "/aws/Application Integration/Amazon-Simple-Queue-Service-SQS.svg",
"RawPath": "/aws%2FApplication%20Integration%2FAmazon-Simple-Queue-Service-SQS.svg",
"OmitHost": false,
"ForceQuery": false,
"RawQuery": "",
"Fragment": "",
"RawFragment": ""
},
"iconPosition": "INSIDE_MIDDLE_CENTER",
"iconBorderRadius": 20,
"zIndex": 0
}
],
"root": {

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 17 KiB

112
e2etests/testdata/txtar/icon-style/dagre/board.exp.json generated vendored Normal file
View file

@ -0,0 +1,112 @@
{
"name": "",
"config": {
"sketch": false,
"themeID": 0,
"darkThemeID": null,
"pad": null,
"center": null,
"layoutEngine": null
},
"isFolderOnly": false,
"fontFamily": "SourceSansPro",
"shapes": [
{
"id": "lambda",
"type": "image",
"pos": {
"x": 0,
"y": 0
},
"width": 128,
"height": 128,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,
"borderRadius": 0,
"fill": "N7",
"stroke": "B1",
"animated": false,
"shadow": false,
"3d": false,
"multiple": false,
"double-border": false,
"tooltip": "",
"link": "",
"icon": {
"Scheme": "https",
"Opaque": "",
"User": null,
"Host": "icons.terrastruct.com",
"Path": "/aws/Compute/AWS-Lambda.svg",
"RawPath": "/aws%2FCompute%2FAWS-Lambda.svg",
"OmitHost": false,
"ForceQuery": false,
"RawQuery": "",
"Fragment": "",
"RawFragment": ""
},
"iconBorderRadius": 20,
"iconPosition": "INSIDE_MIDDLE_CENTER",
"blend": false,
"fields": null,
"methods": null,
"columns": null,
"label": "lambda",
"fontSize": 16,
"fontFamily": "DEFAULT",
"language": "",
"color": "N1",
"italic": false,
"bold": true,
"underline": false,
"labelWidth": 53,
"labelHeight": 21,
"labelPosition": "OUTSIDE_BOTTOM_CENTER",
"zIndex": 0,
"level": 1
}
],
"connections": [],
"root": {
"id": "",
"type": "",
"pos": {
"x": 0,
"y": 0
},
"width": 0,
"height": 0,
"opacity": 0,
"strokeDash": 0,
"strokeWidth": 0,
"borderRadius": 0,
"fill": "N7",
"stroke": "",
"animated": false,
"shadow": false,
"3d": false,
"multiple": false,
"double-border": false,
"tooltip": "",
"link": "",
"icon": null,
"iconPosition": "",
"blend": false,
"fields": null,
"methods": null,
"columns": null,
"label": "",
"fontSize": 0,
"fontFamily": "",
"language": "",
"color": "",
"italic": false,
"bold": false,
"underline": false,
"labelWidth": 0,
"labelHeight": 0,
"zIndex": 0,
"level": 0
}
}

View file

@ -0,0 +1,95 @@
<?xml version="1.0" encoding="utf-8"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-d2-version="v0.6.9-HEAD" preserveAspectRatio="xMinYMin meet" viewBox="0 0 130 155"><svg class="d2-2397759342 d2-svg" width="130" height="155" viewBox="-1 -1 130 155"><rect x="-1.000000" y="-1.000000" width="130.000000" height="155.000000" rx="0.000000" fill="#FFFFFF" class=" fill-N7" stroke-width="0" /><style type="text/css"><![CDATA[
.d2-2397759342 .text-bold {
font-family: "d2-2397759342-font-bold";
}
@font-face {
font-family: d2-2397759342-font-bold;
src: url("data:application/font-woff;base64,d09GRgABAAAAAAeEAAoAAAAADHAAAguFAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAAA9AAAAGAAAABgXxHXrmNtYXAAAAFUAAAAQwAAAEgAggEsZ2x5ZgAAAZgAAAH9AAACLMAty6VoZWFkAAADmAAAADYAAAA2G38e1GhoZWEAAAPQAAAAJAAAACQKfwXFaG10eAAAA/QAAAAYAAAAGA2yAWRsb2NhAAAEDAAAAA4AAAAOAkIBpm1heHAAAAQcAAAAIAAAACAAHgD3bmFtZQAABDwAAAMoAAAIKgjwVkFwb3N0AAAHZAAAAB0AAAAg/9EAMgADAioCvAAFAAACigJYAAAASwKKAlgAAAFeADIBKQAAAgsHAwMEAwICBGAAAvcAAAADAAAAAAAAAABBREJPACAAIP//Au7/BgAAA9gBESAAAZ8AAAAAAfAClAAAACAAA3icJMq7DYQwAAUw53NSihuJZUApYR862PQhgWujaAr+ugXDULGZjgSraU9y58r53k9RNd2PBwAA//8BAAD//3bDC6gAeJxMkT1v01AUhs+9cWwaWY3s+COJajn2bXzjhipNHNuIRG2jtKmgaRUGaKQCFhlYyodohZQyIxbElA5MTDAgsTBSKcxIZUTiD/ADEIqYEgc5pYjlvtM9z3neA3HoAOAePoEYzEESRJABHMEQ8g6lhPMd3ydqzKdI4DpYDN+9pTZj28xS7rX+LAjQzl18Mnmwv9Pr/Q5qtfDNp9PwFTo6BcCwNB2hb2gMGSAAqmm5Vc+3LGKyHPU8p6LIAqGEZf2K57ssK0vK543O8wEmtr6+6JYOrgb3+wlG37qUyad26zq/t7bbTRo0Ld/TFh8dhj+cBXKopvYSRS2tQsRrTEdYwUOQQAeImxYlHBEcmZvBFFliWVrx3CoxOVlR0KbR1Bj+aMBoG2a9W6oHXcu7ddmWCryRc/HwQzurrT5p3zxe67faL5bPx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MujI7y4a0sxZ/yA4xs6siljR9afxcQifiYzdefiOFMdUzL1vGTuqdZIFd59wuUOpRvqyOUz0B6Vlk7zS7RnASNTRSaGU/VyqY3c+heaIqaqpZzt7X25DXPbveUW35Bqh0u1LjiVk1swet9UvXc0c60fj4CQlAtZDEiZ0qDgRrzPCbgixnGs7p1oSwpaK58yz41UEjEVgw6J4szI9Dcw3fjGfbChe2dvSSj/kunlqqr7ZHHq1e2M3qh7yzvfuhytTaBhU03X1DQQ18S0H2mn1vn78s31uqU85YiUmPBfL8AzPJrsc8AhY2UY6GZur0NTL0STlxyq+ksiWQ2l58giHODxnAMOeMnzd/q4ZOKMi1txWc/d4pgjuhx+UBUL+y5HvF59+/+sv4tpU7U4nq5OL+49xSd3UOsX2rPb97KniZWTmFu02604I2BacnG76zW5x3j/AAAA//8BAAD///S3T1F4nGJgZgCD/+cYjBiwAAAAAAD//wEAAP//LwECAwAAAA==");
}]]></style><style type="text/css"><![CDATA[.shape {
shape-rendering: geometricPrecision;
stroke-linejoin: round;
}
.connection {
stroke-linecap: round;
stroke-linejoin: round;
}
.blend {
mix-blend-mode: multiply;
opacity: 0.5;
}
.d2-2397759342 .fill-N1{fill:#0A0F25;}
.d2-2397759342 .fill-N2{fill:#676C7E;}
.d2-2397759342 .fill-N3{fill:#9499AB;}
.d2-2397759342 .fill-N4{fill:#CFD2DD;}
.d2-2397759342 .fill-N5{fill:#DEE1EB;}
.d2-2397759342 .fill-N6{fill:#EEF1F8;}
.d2-2397759342 .fill-N7{fill:#FFFFFF;}
.d2-2397759342 .fill-B1{fill:#0D32B2;}
.d2-2397759342 .fill-B2{fill:#0D32B2;}
.d2-2397759342 .fill-B3{fill:#E3E9FD;}
.d2-2397759342 .fill-B4{fill:#E3E9FD;}
.d2-2397759342 .fill-B5{fill:#EDF0FD;}
.d2-2397759342 .fill-B6{fill:#F7F8FE;}
.d2-2397759342 .fill-AA2{fill:#4A6FF3;}
.d2-2397759342 .fill-AA4{fill:#EDF0FD;}
.d2-2397759342 .fill-AA5{fill:#F7F8FE;}
.d2-2397759342 .fill-AB4{fill:#EDF0FD;}
.d2-2397759342 .fill-AB5{fill:#F7F8FE;}
.d2-2397759342 .stroke-N1{stroke:#0A0F25;}
.d2-2397759342 .stroke-N2{stroke:#676C7E;}
.d2-2397759342 .stroke-N3{stroke:#9499AB;}
.d2-2397759342 .stroke-N4{stroke:#CFD2DD;}
.d2-2397759342 .stroke-N5{stroke:#DEE1EB;}
.d2-2397759342 .stroke-N6{stroke:#EEF1F8;}
.d2-2397759342 .stroke-N7{stroke:#FFFFFF;}
.d2-2397759342 .stroke-B1{stroke:#0D32B2;}
.d2-2397759342 .stroke-B2{stroke:#0D32B2;}
.d2-2397759342 .stroke-B3{stroke:#E3E9FD;}
.d2-2397759342 .stroke-B4{stroke:#E3E9FD;}
.d2-2397759342 .stroke-B5{stroke:#EDF0FD;}
.d2-2397759342 .stroke-B6{stroke:#F7F8FE;}
.d2-2397759342 .stroke-AA2{stroke:#4A6FF3;}
.d2-2397759342 .stroke-AA4{stroke:#EDF0FD;}
.d2-2397759342 .stroke-AA5{stroke:#F7F8FE;}
.d2-2397759342 .stroke-AB4{stroke:#EDF0FD;}
.d2-2397759342 .stroke-AB5{stroke:#F7F8FE;}
.d2-2397759342 .background-color-N1{background-color:#0A0F25;}
.d2-2397759342 .background-color-N2{background-color:#676C7E;}
.d2-2397759342 .background-color-N3{background-color:#9499AB;}
.d2-2397759342 .background-color-N4{background-color:#CFD2DD;}
.d2-2397759342 .background-color-N5{background-color:#DEE1EB;}
.d2-2397759342 .background-color-N6{background-color:#EEF1F8;}
.d2-2397759342 .background-color-N7{background-color:#FFFFFF;}
.d2-2397759342 .background-color-B1{background-color:#0D32B2;}
.d2-2397759342 .background-color-B2{background-color:#0D32B2;}
.d2-2397759342 .background-color-B3{background-color:#E3E9FD;}
.d2-2397759342 .background-color-B4{background-color:#E3E9FD;}
.d2-2397759342 .background-color-B5{background-color:#EDF0FD;}
.d2-2397759342 .background-color-B6{background-color:#F7F8FE;}
.d2-2397759342 .background-color-AA2{background-color:#4A6FF3;}
.d2-2397759342 .background-color-AA4{background-color:#EDF0FD;}
.d2-2397759342 .background-color-AA5{background-color:#F7F8FE;}
.d2-2397759342 .background-color-AB4{background-color:#EDF0FD;}
.d2-2397759342 .background-color-AB5{background-color:#F7F8FE;}
.d2-2397759342 .color-N1{color:#0A0F25;}
.d2-2397759342 .color-N2{color:#676C7E;}
.d2-2397759342 .color-N3{color:#9499AB;}
.d2-2397759342 .color-N4{color:#CFD2DD;}
.d2-2397759342 .color-N5{color:#DEE1EB;}
.d2-2397759342 .color-N6{color:#EEF1F8;}
.d2-2397759342 .color-N7{color:#FFFFFF;}
.d2-2397759342 .color-B1{color:#0D32B2;}
.d2-2397759342 .color-B2{color:#0D32B2;}
.d2-2397759342 .color-B3{color:#E3E9FD;}
.d2-2397759342 .color-B4{color:#E3E9FD;}
.d2-2397759342 .color-B5{color:#EDF0FD;}
.d2-2397759342 .color-B6{color:#F7F8FE;}
.d2-2397759342 .color-AA2{color:#4A6FF3;}
.d2-2397759342 .color-AA4{color:#EDF0FD;}
.d2-2397759342 .color-AA5{color:#F7F8FE;}
.d2-2397759342 .color-AB4{color:#EDF0FD;}
.d2-2397759342 .color-AB5{color:#F7F8FE;}.appendix text.text{fill:#0A0F25}.md{--color-fg-default:#0A0F25;--color-fg-muted:#676C7E;--color-fg-subtle:#9499AB;--color-canvas-default:#FFFFFF;--color-canvas-subtle:#EEF1F8;--color-border-default:#0D32B2;--color-border-muted:#0D32B2;--color-neutral-muted:#EEF1F8;--color-accent-fg:#0D32B2;--color-accent-emphasis:#0D32B2;--color-attention-subtle:#676C7E;--color-danger-fg:red;}.sketch-overlay-B1{fill:url(#streaks-darker-d2-2397759342);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-2397759342);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-2397759342);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-2397759342);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-2397759342);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-2397759342);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-2397759342);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]></style><g class="bGFtYmRh"><g class="shape" ><clipPath id="d2-2397759342-lambda-icon"><path d="M 0.000000 20.000000 L 0.000000 20.000000 S 0.000000 0.000000 20.000000 0.000000 L 108.000000 0.000000 L 108.000000 0.000000 S 128.000000 0.000000 128.000000 20.000000 L 128.000000 108.000000 S 128.000000 128.000000 108.000000 128.000000 L 20.000000 128.000000 S 0.000000 128.000000 0.000000 108.000000L 0.000000 20.000000Z 0.000000 0.000000" fill="none" /> </clipPath><image href="https://icons.terrastruct.com/aws%2FCompute%2FAWS-Lambda.svg" x="0.000000" y="0.000000" width="128.000000" height="128.000000" stroke="#0D32B2" fill="#FFFFFF" class=" stroke-B1 fill-N7" style="stroke-width:2;" clip-path="url(#d2-2397759342-lambda-icon)" /></g><text x="64.000000" y="149.000000" fill="#0A0F25" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">lambda</text></g><mask id="d2-2397759342" maskUnits="userSpaceOnUse" x="-1" y="-1" width="130" height="155">
<rect x="-1" y="-1" width="130" height="155" fill="white"></rect>
<rect x="37.500000" y="133.000000" width="53" height="21" fill="rgba(0,0,0,0.75)"></rect>
</mask></svg></svg>

After

Width:  |  Height:  |  Size: 9.8 KiB

112
e2etests/testdata/txtar/icon-style/elk/board.exp.json generated vendored Normal file
View file

@ -0,0 +1,112 @@
{
"name": "",
"config": {
"sketch": false,
"themeID": 0,
"darkThemeID": null,
"pad": null,
"center": null,
"layoutEngine": null
},
"isFolderOnly": false,
"fontFamily": "SourceSansPro",
"shapes": [
{
"id": "lambda",
"type": "image",
"pos": {
"x": 12,
"y": 12
},
"width": 128,
"height": 128,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,
"borderRadius": 0,
"fill": "N7",
"stroke": "B1",
"animated": false,
"shadow": false,
"3d": false,
"multiple": false,
"double-border": false,
"tooltip": "",
"link": "",
"icon": {
"Scheme": "https",
"Opaque": "",
"User": null,
"Host": "icons.terrastruct.com",
"Path": "/aws/Compute/AWS-Lambda.svg",
"RawPath": "/aws%2FCompute%2FAWS-Lambda.svg",
"OmitHost": false,
"ForceQuery": false,
"RawQuery": "",
"Fragment": "",
"RawFragment": ""
},
"iconBorderRadius": 20,
"iconPosition": "INSIDE_MIDDLE_CENTER",
"blend": false,
"fields": null,
"methods": null,
"columns": null,
"label": "lambda",
"fontSize": 16,
"fontFamily": "DEFAULT",
"language": "",
"color": "N1",
"italic": false,
"bold": true,
"underline": false,
"labelWidth": 53,
"labelHeight": 21,
"labelPosition": "OUTSIDE_BOTTOM_CENTER",
"zIndex": 0,
"level": 1
}
],
"connections": [],
"root": {
"id": "",
"type": "",
"pos": {
"x": 0,
"y": 0
},
"width": 0,
"height": 0,
"opacity": 0,
"strokeDash": 0,
"strokeWidth": 0,
"borderRadius": 0,
"fill": "N7",
"stroke": "",
"animated": false,
"shadow": false,
"3d": false,
"multiple": false,
"double-border": false,
"tooltip": "",
"link": "",
"icon": null,
"iconPosition": "",
"blend": false,
"fields": null,
"methods": null,
"columns": null,
"label": "",
"fontSize": 0,
"fontFamily": "",
"language": "",
"color": "",
"italic": false,
"bold": false,
"underline": false,
"labelWidth": 0,
"labelHeight": 0,
"zIndex": 0,
"level": 0
}
}

View file

@ -0,0 +1,95 @@
<?xml version="1.0" encoding="utf-8"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-d2-version="v0.6.9-HEAD" preserveAspectRatio="xMinYMin meet" viewBox="0 0 130 155"><svg class="d2-2677970358 d2-svg" width="130" height="155" viewBox="11 11 130 155"><rect x="11.000000" y="11.000000" width="130.000000" height="155.000000" rx="0.000000" fill="#FFFFFF" class=" fill-N7" stroke-width="0" /><style type="text/css"><![CDATA[
.d2-2677970358 .text-bold {
font-family: "d2-2677970358-font-bold";
}
@font-face {
font-family: d2-2677970358-font-bold;
src: url("data:application/font-woff;base64,d09GRgABAAAAAAeEAAoAAAAADHAAAguFAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAAA9AAAAGAAAABgXxHXrmNtYXAAAAFUAAAAQwAAAEgAggEsZ2x5ZgAAAZgAAAH9AAACLMAty6VoZWFkAAADmAAAADYAAAA2G38e1GhoZWEAAAPQAAAAJAAAACQKfwXFaG10eAAAA/QAAAAYAAAAGA2yAWRsb2NhAAAEDAAAAA4AAAAOAkIBpm1heHAAAAQcAAAAIAAAACAAHgD3bmFtZQAABDwAAAMoAAAIKgjwVkFwb3N0AAAHZAAAAB0AAAAg/9EAMgADAioCvAAFAAACigJYAAAASwKKAlgAAAFeADIBKQAAAgsHAwMEAwICBGAAAvcAAAADAAAAAAAAAABBREJPACAAIP//Au7/BgAAA9gBESAAAZ8AAAAA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8BM+BWKP5fOzYBdEmipJ8d+75851zvnOBHf5mm0r1IfBHPTFcYa9+bniLB/UTw9u061uGqzyp/Wm4RlibG67zea1n+CPeVn8z/ID96k+GH7JbbRv+mGfVHcOfbDv+Mvwp+7xd4Aq84FfDFXbJDG+xw4+Gt3mExaxUeUTTcI3P2DNcZw/oM6EgZkLCCMeQCSOumBGR4xMxY8KQiBBHhxYxhb4mBEKO0X9+DfApmBEo4pgCR4xPTEDO2CL+Iq+Uc2Uc6jSzuxYFYwIu5HFJQIIjZURKQsSl4hQUZLyiQYOcgfhmFOR45EyI8UiZMaJBlzan9BkzIcfRVqSSmU/KkIJrAuV3ZlF2ZkBEQm6srkgIxdOJXyTvDqc4umSyXY98uhHhSxzfybvklsr2Kzz9ujVmm3mXbALm6mesrsS6udYEx7ot87b4VrjgFe5e/dlk8v4ehfpfKPIFV5p/qEklYpLg3C4tfCnId49xHOncwVdHvqdDnxO6vKGvc4sePVqc0afDa/l26eH4mi5nHMujI7y4a0sxZ/yA4xs6siljR9afxcQifiYzdefiOFMdUzL1vGTuqdZIFd59wuUOpRvqyOUz0B6Vlk7zS7RnASNTRSaGU/VyqY3c+heaIqaqpZzt7X25DXPbveUW35Bqh0u1LjiVk1swet9UvXc0c60fj4CQlAtZDEiZ0qDgRrzPCbgixnGs7p1oSwpaK58yz41UEjEVgw6J4szI9Dcw3fjGfbChe2dvSSj/kunlqqr7ZHHq1e2M3qh7yzvfuhytTaBhU03X1DQQ18S0H2mn1vn78s31uqU85YiUmPBfL8AzPJrsc8AhY2UY6GZur0NTL0STlxyq+ksiWQ2l58giHODxnAMOeMnzd/q4ZOKMi1txWc/d4pgjuhx+UBUL+y5HvF59+/+sv4tpU7U4nq5OL+49xSd3UOsX2rPb97KniZWTmFu02604I2BacnG76zW5x3j/AAAA//8BAAD///S3T1F4nGJgZgCD/+cYjBiwAAAAAAD//wEAAP//LwECAwAAAA==");
}]]></style><style type="text/css"><![CDATA[.shape {
shape-rendering: geometricPrecision;
stroke-linejoin: round;
}
.connection {
stroke-linecap: round;
stroke-linejoin: round;
}
.blend {
mix-blend-mode: multiply;
opacity: 0.5;
}
.d2-2677970358 .fill-N1{fill:#0A0F25;}
.d2-2677970358 .fill-N2{fill:#676C7E;}
.d2-2677970358 .fill-N3{fill:#9499AB;}
.d2-2677970358 .fill-N4{fill:#CFD2DD;}
.d2-2677970358 .fill-N5{fill:#DEE1EB;}
.d2-2677970358 .fill-N6{fill:#EEF1F8;}
.d2-2677970358 .fill-N7{fill:#FFFFFF;}
.d2-2677970358 .fill-B1{fill:#0D32B2;}
.d2-2677970358 .fill-B2{fill:#0D32B2;}
.d2-2677970358 .fill-B3{fill:#E3E9FD;}
.d2-2677970358 .fill-B4{fill:#E3E9FD;}
.d2-2677970358 .fill-B5{fill:#EDF0FD;}
.d2-2677970358 .fill-B6{fill:#F7F8FE;}
.d2-2677970358 .fill-AA2{fill:#4A6FF3;}
.d2-2677970358 .fill-AA4{fill:#EDF0FD;}
.d2-2677970358 .fill-AA5{fill:#F7F8FE;}
.d2-2677970358 .fill-AB4{fill:#EDF0FD;}
.d2-2677970358 .fill-AB5{fill:#F7F8FE;}
.d2-2677970358 .stroke-N1{stroke:#0A0F25;}
.d2-2677970358 .stroke-N2{stroke:#676C7E;}
.d2-2677970358 .stroke-N3{stroke:#9499AB;}
.d2-2677970358 .stroke-N4{stroke:#CFD2DD;}
.d2-2677970358 .stroke-N5{stroke:#DEE1EB;}
.d2-2677970358 .stroke-N6{stroke:#EEF1F8;}
.d2-2677970358 .stroke-N7{stroke:#FFFFFF;}
.d2-2677970358 .stroke-B1{stroke:#0D32B2;}
.d2-2677970358 .stroke-B2{stroke:#0D32B2;}
.d2-2677970358 .stroke-B3{stroke:#E3E9FD;}
.d2-2677970358 .stroke-B4{stroke:#E3E9FD;}
.d2-2677970358 .stroke-B5{stroke:#EDF0FD;}
.d2-2677970358 .stroke-B6{stroke:#F7F8FE;}
.d2-2677970358 .stroke-AA2{stroke:#4A6FF3;}
.d2-2677970358 .stroke-AA4{stroke:#EDF0FD;}
.d2-2677970358 .stroke-AA5{stroke:#F7F8FE;}
.d2-2677970358 .stroke-AB4{stroke:#EDF0FD;}
.d2-2677970358 .stroke-AB5{stroke:#F7F8FE;}
.d2-2677970358 .background-color-N1{background-color:#0A0F25;}
.d2-2677970358 .background-color-N2{background-color:#676C7E;}
.d2-2677970358 .background-color-N3{background-color:#9499AB;}
.d2-2677970358 .background-color-N4{background-color:#CFD2DD;}
.d2-2677970358 .background-color-N5{background-color:#DEE1EB;}
.d2-2677970358 .background-color-N6{background-color:#EEF1F8;}
.d2-2677970358 .background-color-N7{background-color:#FFFFFF;}
.d2-2677970358 .background-color-B1{background-color:#0D32B2;}
.d2-2677970358 .background-color-B2{background-color:#0D32B2;}
.d2-2677970358 .background-color-B3{background-color:#E3E9FD;}
.d2-2677970358 .background-color-B4{background-color:#E3E9FD;}
.d2-2677970358 .background-color-B5{background-color:#EDF0FD;}
.d2-2677970358 .background-color-B6{background-color:#F7F8FE;}
.d2-2677970358 .background-color-AA2{background-color:#4A6FF3;}
.d2-2677970358 .background-color-AA4{background-color:#EDF0FD;}
.d2-2677970358 .background-color-AA5{background-color:#F7F8FE;}
.d2-2677970358 .background-color-AB4{background-color:#EDF0FD;}
.d2-2677970358 .background-color-AB5{background-color:#F7F8FE;}
.d2-2677970358 .color-N1{color:#0A0F25;}
.d2-2677970358 .color-N2{color:#676C7E;}
.d2-2677970358 .color-N3{color:#9499AB;}
.d2-2677970358 .color-N4{color:#CFD2DD;}
.d2-2677970358 .color-N5{color:#DEE1EB;}
.d2-2677970358 .color-N6{color:#EEF1F8;}
.d2-2677970358 .color-N7{color:#FFFFFF;}
.d2-2677970358 .color-B1{color:#0D32B2;}
.d2-2677970358 .color-B2{color:#0D32B2;}
.d2-2677970358 .color-B3{color:#E3E9FD;}
.d2-2677970358 .color-B4{color:#E3E9FD;}
.d2-2677970358 .color-B5{color:#EDF0FD;}
.d2-2677970358 .color-B6{color:#F7F8FE;}
.d2-2677970358 .color-AA2{color:#4A6FF3;}
.d2-2677970358 .color-AA4{color:#EDF0FD;}
.d2-2677970358 .color-AA5{color:#F7F8FE;}
.d2-2677970358 .color-AB4{color:#EDF0FD;}
.d2-2677970358 .color-AB5{color:#F7F8FE;}.appendix text.text{fill:#0A0F25}.md{--color-fg-default:#0A0F25;--color-fg-muted:#676C7E;--color-fg-subtle:#9499AB;--color-canvas-default:#FFFFFF;--color-canvas-subtle:#EEF1F8;--color-border-default:#0D32B2;--color-border-muted:#0D32B2;--color-neutral-muted:#EEF1F8;--color-accent-fg:#0D32B2;--color-accent-emphasis:#0D32B2;--color-attention-subtle:#676C7E;--color-danger-fg:red;}.sketch-overlay-B1{fill:url(#streaks-darker-d2-2677970358);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-2677970358);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-2677970358);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-2677970358);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-2677970358);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-2677970358);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-2677970358);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]></style><g class="bGFtYmRh"><g class="shape" ><clipPath id="d2-2677970358-lambda-icon"><path d="M 12.000000 32.000000 L 12.000000 32.000000 S 12.000000 12.000000 32.000000 12.000000 L 120.000000 12.000000 L 120.000000 12.000000 S 140.000000 12.000000 140.000000 32.000000 L 140.000000 120.000000 S 140.000000 140.000000 120.000000 140.000000 L 32.000000 140.000000 S 12.000000 140.000000 12.000000 120.000000L 12.000000 32.000000Z 12.000000 12.000000" fill="none" /> </clipPath><image href="https://icons.terrastruct.com/aws%2FCompute%2FAWS-Lambda.svg" x="12.000000" y="12.000000" width="128.000000" height="128.000000" stroke="#0D32B2" fill="#FFFFFF" class=" stroke-B1 fill-N7" style="stroke-width:2;" clip-path="url(#d2-2677970358-lambda-icon)" /></g><text x="76.000000" y="161.000000" fill="#0A0F25" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">lambda</text></g><mask id="d2-2677970358" maskUnits="userSpaceOnUse" x="11" y="11" width="130" height="155">
<rect x="11" y="11" width="130" height="155" fill="white"></rect>
<rect x="49.500000" y="145.000000" width="53" height="21" fill="rgba(0,0,0,0.75)"></rect>
</mask></svg></svg>

After

Width:  |  Height:  |  Size: 9.8 KiB

View file

@ -171,6 +171,19 @@ a -> b: hi {
style.underline: true
}
-- icon-style --
lambda : {
icon: https://icons.terrastruct.com/aws%2FCompute%2FAWS-Lambda.svg
icon.style.border-radius: 20
}
lambda : {
shape: image
icon: https://icons.terrastruct.com/aws%2FCompute%2FAWS-Lambda.svg
icon.style.border-radius: 20
}
-- none-fill --
vars: {
@ -776,6 +789,12 @@ b -> c: {
icon: https://icons.terrastruct.com/essentials%2F213-alarm.svg
}
direction: right
producer -> consumer: {
icon: https://icons.terrastruct.com/aws%2FApplication%20Integration%2FAmazon-Simple-Queue-Service-SQS.svg
icon.style.border-radius: 20
}
-- model-view --
# Models
user.style.fill: blue