Merge pull request #2425 from alixander/fix-c4-person-head

make c4 person head a little smaller
This commit is contained in:
Alexander Wang 2025-03-13 19:26:15 -07:00 committed by GitHub
commit b75b5f533f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 2082 additions and 1774 deletions

View file

@ -16,7 +16,7 @@
"type": "c4-person",
"pos": {
"x": 0,
"y": 0
"y": 32
},
"width": 410,
"height": 390,
@ -58,7 +58,7 @@
"type": "c4-person",
"pos": {
"x": 470,
"y": 0
"y": 32
},
"width": 410,
"height": 390,
@ -100,7 +100,7 @@
"type": "c4-person",
"pos": {
"x": 940,
"y": 0
"y": 32
},
"width": 410,
"height": 390,
@ -136,6 +136,174 @@
"labelPosition": "INSIDE_BOTTOM_CENTER",
"zIndex": 0,
"level": 1
},
{
"id": "customer1",
"type": "c4-person",
"pos": {
"x": 1410,
"y": 14
},
"width": 448,
"height": 426,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,
"borderRadius": 0,
"fill": "B3",
"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": "## Personal Banking Customer\n[person]\n\nA customer of the bank, with pekkrsonal bank ccountskks.",
"fontSize": 16,
"fontFamily": "DEFAULT",
"language": "markdown",
"color": "N1",
"italic": false,
"bold": true,
"underline": false,
"labelWidth": 388,
"labelHeight": 119,
"labelPosition": "INSIDE_MIDDLE_CENTER",
"zIndex": 0,
"level": 1
},
{
"id": "customer2",
"type": "c4-person",
"pos": {
"x": 1918,
"y": 0
},
"width": 457,
"height": 453,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,
"borderRadius": 0,
"fill": "B3",
"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": "## Personal Banking Customerk\n[person]\n\nA customer of the bank, with pekkrsonal bank accountskks.\n\nA customer of the bank, with pekkrsonal bank accountskks.\n\nA customer of the bank, with pekkrsonal bank accountskks.",
"fontSize": 16,
"fontFamily": "DEFAULT",
"language": "markdown",
"color": "N1",
"italic": false,
"bold": true,
"underline": false,
"labelWidth": 396,
"labelHeight": 199,
"labelPosition": "INSIDE_MIDDLE_CENTER",
"zIndex": 0,
"level": 1
},
{
"id": "customer3",
"type": "c4-person",
"pos": {
"x": 2435,
"y": 10
},
"width": 457,
"height": 434,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,
"borderRadius": 0,
"fill": "B3",
"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": "## Personal Banking Customer\n[person]\n\nA customer of the bank, with pekkrsonal bank accountskks.",
"fontSize": 16,
"fontFamily": "DEFAULT",
"language": "markdown",
"color": "N1",
"italic": false,
"bold": true,
"underline": false,
"labelWidth": 396,
"labelHeight": 119,
"labelPosition": "INSIDE_MIDDLE_CENTER",
"zIndex": 0,
"level": 1
},
{
"id": "customer4",
"type": "c4-person",
"pos": {
"x": 2952,
"y": 10
},
"width": 457,
"height": 434,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,
"borderRadius": 0,
"fill": "B3",
"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": "## Personal Banking Customer\n[person]\n\nA customer of the bank, with pekkrsonal bank accountskks.",
"fontSize": 16,
"fontFamily": "DEFAULT",
"language": "markdown",
"color": "N1",
"italic": false,
"bold": true,
"underline": false,
"labelWidth": 396,
"labelHeight": 119,
"labelPosition": "INSIDE_MIDDLE_CENTER",
"zIndex": 0,
"level": 1
}
],
"connections": [],

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View file

@ -16,7 +16,7 @@
"type": "c4-person",
"pos": {
"x": 12,
"y": 12
"y": 43
},
"width": 410,
"height": 390,
@ -58,7 +58,7 @@
"type": "c4-person",
"pos": {
"x": 442,
"y": 12
"y": 43
},
"width": 410,
"height": 390,
@ -100,7 +100,7 @@
"type": "c4-person",
"pos": {
"x": 872,
"y": 12
"y": 43
},
"width": 410,
"height": 390,
@ -136,6 +136,174 @@
"labelPosition": "INSIDE_BOTTOM_CENTER",
"zIndex": 0,
"level": 1
},
{
"id": "customer1",
"type": "c4-person",
"pos": {
"x": 1302,
"y": 25
},
"width": 448,
"height": 426,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,
"borderRadius": 0,
"fill": "B3",
"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": "## Personal Banking Customer\n[person]\n\nA customer of the bank, with pekkrsonal bank ccountskks.",
"fontSize": 16,
"fontFamily": "DEFAULT",
"language": "markdown",
"color": "N1",
"italic": false,
"bold": true,
"underline": false,
"labelWidth": 388,
"labelHeight": 119,
"labelPosition": "INSIDE_MIDDLE_CENTER",
"zIndex": 0,
"level": 1
},
{
"id": "customer2",
"type": "c4-person",
"pos": {
"x": 1770,
"y": 12
},
"width": 457,
"height": 453,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,
"borderRadius": 0,
"fill": "B3",
"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": "## Personal Banking Customerk\n[person]\n\nA customer of the bank, with pekkrsonal bank accountskks.\n\nA customer of the bank, with pekkrsonal bank accountskks.\n\nA customer of the bank, with pekkrsonal bank accountskks.",
"fontSize": 16,
"fontFamily": "DEFAULT",
"language": "markdown",
"color": "N1",
"italic": false,
"bold": true,
"underline": false,
"labelWidth": 396,
"labelHeight": 199,
"labelPosition": "INSIDE_MIDDLE_CENTER",
"zIndex": 0,
"level": 1
},
{
"id": "customer3",
"type": "c4-person",
"pos": {
"x": 2247,
"y": 21
},
"width": 457,
"height": 434,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,
"borderRadius": 0,
"fill": "B3",
"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": "## Personal Banking Customer\n[person]\n\nA customer of the bank, with pekkrsonal bank accountskks.",
"fontSize": 16,
"fontFamily": "DEFAULT",
"language": "markdown",
"color": "N1",
"italic": false,
"bold": true,
"underline": false,
"labelWidth": 396,
"labelHeight": 119,
"labelPosition": "INSIDE_MIDDLE_CENTER",
"zIndex": 0,
"level": 1
},
{
"id": "customer4",
"type": "c4-person",
"pos": {
"x": 2724,
"y": 21
},
"width": 457,
"height": 434,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,
"borderRadius": 0,
"fill": "B3",
"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": "## Personal Banking Customer\n[person]\n\nA customer of the bank, with pekkrsonal bank accountskks.",
"fontSize": 16,
"fontFamily": "DEFAULT",
"language": "markdown",
"color": "N1",
"italic": false,
"bold": true,
"underline": false,
"labelWidth": 396,
"labelHeight": 119,
"labelPosition": "INSIDE_MIDDLE_CENTER",
"zIndex": 0,
"level": 1
}
],
"connections": [],

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View file

@ -16,10 +16,10 @@
"type": "c4-person",
"pos": {
"x": 0,
"y": 504
"y": 507
},
"width": 336,
"height": 328,
"height": 342,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 1,
@ -100,7 +100,7 @@
"type": "person",
"pos": {
"x": 101,
"y": 309
"y": 311
},
"width": 134,
"height": 89,
@ -145,7 +145,7 @@
"y": 273
},
"width": 210,
"height": 515,
"height": 525,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,
@ -187,7 +187,7 @@
"y": 303
},
"width": 84,
"height": 101,
"height": 104,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 1,
@ -226,7 +226,7 @@
"type": "c4-person",
"pos": {
"x": 416,
"y": 578
"y": 588
},
"width": 150,
"height": 180,
@ -292,19 +292,19 @@
"route": [
{
"x": 168,
"y": 424
"y": 426
},
{
"x": 168,
"y": 448
"y": 450.79998779296875
},
{
"x": 168,
"y": 461
"y": 467
},
{
"x": 168,
"y": 489
"y": 507
}
],
"isCurve": true,
@ -348,11 +348,11 @@
},
{
"x": 168,
"y": 264.20001220703125
"y": 264.6000061035156
},
{
"x": 168,
"y": 309
"y": 311
}
],
"isCurve": true,
@ -436,19 +436,19 @@
"route": [
{
"x": 491,
"y": 405
"y": 407
},
{
"x": 491,
"y": 444.20001220703125
"y": 447
},
{
"x": 491,
"y": 478.6000061035156
"y": 483.20001220703125
},
{
"x": 491,
"y": 577
"y": 588
}
],
"isCurve": true,

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View file

@ -16,10 +16,10 @@
"type": "c4-person",
"pos": {
"x": 12,
"y": 935
"y": 938
},
"width": 336,
"height": 328,
"height": 342,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 1,
@ -100,7 +100,7 @@
"type": "person",
"pos": {
"x": 113,
"y": 750
"y": 753
},
"width": 134,
"height": 89,
@ -145,7 +145,7 @@
"y": 229
},
"width": 250,
"height": 451,
"height": 454,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,
@ -187,7 +187,7 @@
"y": 279
},
"width": 84,
"height": 101,
"height": 104,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 1,
@ -226,7 +226,7 @@
"type": "c4-person",
"pos": {
"x": 306,
"y": 450
"y": 453
},
"width": 150,
"height": 180,
@ -292,11 +292,11 @@
"route": [
{
"x": 180,
"y": 865
"y": 868
},
{
"x": 180,
"y": 920
"y": 938
}
],
"animated": false,
@ -331,7 +331,7 @@
"route": [
{
"x": 258,
"y": 144
"y": 143
},
{
"x": 257.5830078125,
@ -343,7 +343,7 @@
},
{
"x": 180,
"y": 750
"y": 753
}
],
"animated": false,
@ -378,7 +378,7 @@
"route": [
{
"x": 304,
"y": 144
"y": 143
},
{
"x": 303.9159851074219,
@ -425,11 +425,11 @@
"route": [
{
"x": 381,
"y": 381
"y": 383
},
{
"x": 382,
"y": 449
"y": 453
}
],
"animated": false,

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View file

@ -513,12 +513,12 @@
"link": "",
"route": [
{
"x": 1092,
"y": 348
"x": 1091,
"y": 349
},
{
"x": 968,
"y": 439.6000061035156
"x": 967.7999877929688,
"y": 439.79998779296875
},
{
"x": 937,
@ -801,11 +801,11 @@
"link": "",
"route": [
{
"x": 1505,
"x": 1503,
"y": 238
},
{
"x": 2410.60009765625,
"x": 2410.199951171875,
"y": 417.6000061035156
},
{

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

View file

@ -19,7 +19,7 @@
"y": 0
},
"width": 180,
"height": 94,
"height": 97,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,

View file

@ -1,9 +1,9 @@
<?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 182 120"><svg class="d2-4248901620 d2-svg" width="182" height="120" viewBox="-1 -25 182 120"><rect x="-1.000000" y="-25.000000" width="182.000000" height="120.000000" rx="0.000000" fill="#FFFFFF" class=" fill-N7" stroke-width="0" /><style type="text/css"><![CDATA[
.d2-4248901620 .text-bold {
font-family: "d2-4248901620-font-bold";
<?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 182 122"><svg class="d2-1864249435 d2-svg" width="182" height="122" viewBox="-1 -24 182 122"><rect x="-1.000000" y="-24.000000" width="182.000000" height="122.000000" rx="0.000000" fill="#FFFFFF" class=" fill-N7" stroke-width="0" /><style type="text/css"><![CDATA[
.d2-1864249435 .text-bold {
font-family: "d2-1864249435-font-bold";
}
@font-face {
font-family: d2-4248901620-font-bold;
font-family: d2-1864249435-font-bold;
src: url("data:application/font-woff;base64,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");
}]]></style><style type="text/css"><![CDATA[.shape {
shape-rendering: geometricPrecision;
@ -18,78 +18,78 @@
opacity: 0.5;
}
.d2-4248901620 .fill-N1{fill:#0A0F25;}
.d2-4248901620 .fill-N2{fill:#676C7E;}
.d2-4248901620 .fill-N3{fill:#9499AB;}
.d2-4248901620 .fill-N4{fill:#CFD2DD;}
.d2-4248901620 .fill-N5{fill:#DEE1EB;}
.d2-4248901620 .fill-N6{fill:#EEF1F8;}
.d2-4248901620 .fill-N7{fill:#FFFFFF;}
.d2-4248901620 .fill-B1{fill:#0D32B2;}
.d2-4248901620 .fill-B2{fill:#0D32B2;}
.d2-4248901620 .fill-B3{fill:#E3E9FD;}
.d2-4248901620 .fill-B4{fill:#E3E9FD;}
.d2-4248901620 .fill-B5{fill:#EDF0FD;}
.d2-4248901620 .fill-B6{fill:#F7F8FE;}
.d2-4248901620 .fill-AA2{fill:#4A6FF3;}
.d2-4248901620 .fill-AA4{fill:#EDF0FD;}
.d2-4248901620 .fill-AA5{fill:#F7F8FE;}
.d2-4248901620 .fill-AB4{fill:#EDF0FD;}
.d2-4248901620 .fill-AB5{fill:#F7F8FE;}
.d2-4248901620 .stroke-N1{stroke:#0A0F25;}
.d2-4248901620 .stroke-N2{stroke:#676C7E;}
.d2-4248901620 .stroke-N3{stroke:#9499AB;}
.d2-4248901620 .stroke-N4{stroke:#CFD2DD;}
.d2-4248901620 .stroke-N5{stroke:#DEE1EB;}
.d2-4248901620 .stroke-N6{stroke:#EEF1F8;}
.d2-4248901620 .stroke-N7{stroke:#FFFFFF;}
.d2-4248901620 .stroke-B1{stroke:#0D32B2;}
.d2-4248901620 .stroke-B2{stroke:#0D32B2;}
.d2-4248901620 .stroke-B3{stroke:#E3E9FD;}
.d2-4248901620 .stroke-B4{stroke:#E3E9FD;}
.d2-4248901620 .stroke-B5{stroke:#EDF0FD;}
.d2-4248901620 .stroke-B6{stroke:#F7F8FE;}
.d2-4248901620 .stroke-AA2{stroke:#4A6FF3;}
.d2-4248901620 .stroke-AA4{stroke:#EDF0FD;}
.d2-4248901620 .stroke-AA5{stroke:#F7F8FE;}
.d2-4248901620 .stroke-AB4{stroke:#EDF0FD;}
.d2-4248901620 .stroke-AB5{stroke:#F7F8FE;}
.d2-4248901620 .background-color-N1{background-color:#0A0F25;}
.d2-4248901620 .background-color-N2{background-color:#676C7E;}
.d2-4248901620 .background-color-N3{background-color:#9499AB;}
.d2-4248901620 .background-color-N4{background-color:#CFD2DD;}
.d2-4248901620 .background-color-N5{background-color:#DEE1EB;}
.d2-4248901620 .background-color-N6{background-color:#EEF1F8;}
.d2-4248901620 .background-color-N7{background-color:#FFFFFF;}
.d2-4248901620 .background-color-B1{background-color:#0D32B2;}
.d2-4248901620 .background-color-B2{background-color:#0D32B2;}
.d2-4248901620 .background-color-B3{background-color:#E3E9FD;}
.d2-4248901620 .background-color-B4{background-color:#E3E9FD;}
.d2-4248901620 .background-color-B5{background-color:#EDF0FD;}
.d2-4248901620 .background-color-B6{background-color:#F7F8FE;}
.d2-4248901620 .background-color-AA2{background-color:#4A6FF3;}
.d2-4248901620 .background-color-AA4{background-color:#EDF0FD;}
.d2-4248901620 .background-color-AA5{background-color:#F7F8FE;}
.d2-4248901620 .background-color-AB4{background-color:#EDF0FD;}
.d2-4248901620 .background-color-AB5{background-color:#F7F8FE;}
.d2-4248901620 .color-N1{color:#0A0F25;}
.d2-4248901620 .color-N2{color:#676C7E;}
.d2-4248901620 .color-N3{color:#9499AB;}
.d2-4248901620 .color-N4{color:#CFD2DD;}
.d2-4248901620 .color-N5{color:#DEE1EB;}
.d2-4248901620 .color-N6{color:#EEF1F8;}
.d2-4248901620 .color-N7{color:#FFFFFF;}
.d2-4248901620 .color-B1{color:#0D32B2;}
.d2-4248901620 .color-B2{color:#0D32B2;}
.d2-4248901620 .color-B3{color:#E3E9FD;}
.d2-4248901620 .color-B4{color:#E3E9FD;}
.d2-4248901620 .color-B5{color:#EDF0FD;}
.d2-4248901620 .color-B6{color:#F7F8FE;}
.d2-4248901620 .color-AA2{color:#4A6FF3;}
.d2-4248901620 .color-AA4{color:#EDF0FD;}
.d2-4248901620 .color-AA5{color:#F7F8FE;}
.d2-4248901620 .color-AB4{color:#EDF0FD;}
.d2-4248901620 .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-4248901620);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-4248901620);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-4248901620);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-4248901620);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-4248901620);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-4248901620);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-4248901620);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-4248901620);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-4248901620);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-4248901620);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-4248901620);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-4248901620);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-4248901620);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-4248901620);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-4248901620);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-4248901620);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-4248901620);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-4248901620);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]></style><g class="YQ=="><g class="shape" ><path d="M 0 60 C 0 54 6 49 11 49 H 168 C 174 49 179 55 179 60 V 83 C 179 89 173 94 168 94 H 11 C 5 94 -0 88 -0 83 Z" stroke="#0D32B2" fill="#E3E9FD" class=" stroke-B1 fill-B3" style="stroke-width:2;" /><path d="M 90 -23 C 112 -23 130 -5 130 17 C 130 39 112 57 90 57 C 68 57 50 39 50 17 C 50 -5 68 -23 90 -23" stroke="#0D32B2" fill="#E3E9FD" class=" stroke-B1 fill-B3" style="stroke-width:2;" /></g><text x="90.000000" y="76.800000" fill="#0A0F25" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">c4-person</text></g><mask id="d2-4248901620" maskUnits="userSpaceOnUse" x="-1" y="-25" width="182" height="120">
<rect x="-1" y="-25" width="182" height="120" fill="white"></rect>
<rect x="54.500000" y="60.800000" width="71" height="21" fill="rgba(0,0,0,0.75)"></rect>
.d2-1864249435 .fill-N1{fill:#0A0F25;}
.d2-1864249435 .fill-N2{fill:#676C7E;}
.d2-1864249435 .fill-N3{fill:#9499AB;}
.d2-1864249435 .fill-N4{fill:#CFD2DD;}
.d2-1864249435 .fill-N5{fill:#DEE1EB;}
.d2-1864249435 .fill-N6{fill:#EEF1F8;}
.d2-1864249435 .fill-N7{fill:#FFFFFF;}
.d2-1864249435 .fill-B1{fill:#0D32B2;}
.d2-1864249435 .fill-B2{fill:#0D32B2;}
.d2-1864249435 .fill-B3{fill:#E3E9FD;}
.d2-1864249435 .fill-B4{fill:#E3E9FD;}
.d2-1864249435 .fill-B5{fill:#EDF0FD;}
.d2-1864249435 .fill-B6{fill:#F7F8FE;}
.d2-1864249435 .fill-AA2{fill:#4A6FF3;}
.d2-1864249435 .fill-AA4{fill:#EDF0FD;}
.d2-1864249435 .fill-AA5{fill:#F7F8FE;}
.d2-1864249435 .fill-AB4{fill:#EDF0FD;}
.d2-1864249435 .fill-AB5{fill:#F7F8FE;}
.d2-1864249435 .stroke-N1{stroke:#0A0F25;}
.d2-1864249435 .stroke-N2{stroke:#676C7E;}
.d2-1864249435 .stroke-N3{stroke:#9499AB;}
.d2-1864249435 .stroke-N4{stroke:#CFD2DD;}
.d2-1864249435 .stroke-N5{stroke:#DEE1EB;}
.d2-1864249435 .stroke-N6{stroke:#EEF1F8;}
.d2-1864249435 .stroke-N7{stroke:#FFFFFF;}
.d2-1864249435 .stroke-B1{stroke:#0D32B2;}
.d2-1864249435 .stroke-B2{stroke:#0D32B2;}
.d2-1864249435 .stroke-B3{stroke:#E3E9FD;}
.d2-1864249435 .stroke-B4{stroke:#E3E9FD;}
.d2-1864249435 .stroke-B5{stroke:#EDF0FD;}
.d2-1864249435 .stroke-B6{stroke:#F7F8FE;}
.d2-1864249435 .stroke-AA2{stroke:#4A6FF3;}
.d2-1864249435 .stroke-AA4{stroke:#EDF0FD;}
.d2-1864249435 .stroke-AA5{stroke:#F7F8FE;}
.d2-1864249435 .stroke-AB4{stroke:#EDF0FD;}
.d2-1864249435 .stroke-AB5{stroke:#F7F8FE;}
.d2-1864249435 .background-color-N1{background-color:#0A0F25;}
.d2-1864249435 .background-color-N2{background-color:#676C7E;}
.d2-1864249435 .background-color-N3{background-color:#9499AB;}
.d2-1864249435 .background-color-N4{background-color:#CFD2DD;}
.d2-1864249435 .background-color-N5{background-color:#DEE1EB;}
.d2-1864249435 .background-color-N6{background-color:#EEF1F8;}
.d2-1864249435 .background-color-N7{background-color:#FFFFFF;}
.d2-1864249435 .background-color-B1{background-color:#0D32B2;}
.d2-1864249435 .background-color-B2{background-color:#0D32B2;}
.d2-1864249435 .background-color-B3{background-color:#E3E9FD;}
.d2-1864249435 .background-color-B4{background-color:#E3E9FD;}
.d2-1864249435 .background-color-B5{background-color:#EDF0FD;}
.d2-1864249435 .background-color-B6{background-color:#F7F8FE;}
.d2-1864249435 .background-color-AA2{background-color:#4A6FF3;}
.d2-1864249435 .background-color-AA4{background-color:#EDF0FD;}
.d2-1864249435 .background-color-AA5{background-color:#F7F8FE;}
.d2-1864249435 .background-color-AB4{background-color:#EDF0FD;}
.d2-1864249435 .background-color-AB5{background-color:#F7F8FE;}
.d2-1864249435 .color-N1{color:#0A0F25;}
.d2-1864249435 .color-N2{color:#676C7E;}
.d2-1864249435 .color-N3{color:#9499AB;}
.d2-1864249435 .color-N4{color:#CFD2DD;}
.d2-1864249435 .color-N5{color:#DEE1EB;}
.d2-1864249435 .color-N6{color:#EEF1F8;}
.d2-1864249435 .color-N7{color:#FFFFFF;}
.d2-1864249435 .color-B1{color:#0D32B2;}
.d2-1864249435 .color-B2{color:#0D32B2;}
.d2-1864249435 .color-B3{color:#E3E9FD;}
.d2-1864249435 .color-B4{color:#E3E9FD;}
.d2-1864249435 .color-B5{color:#EDF0FD;}
.d2-1864249435 .color-B6{color:#F7F8FE;}
.d2-1864249435 .color-AA2{color:#4A6FF3;}
.d2-1864249435 .color-AA4{color:#EDF0FD;}
.d2-1864249435 .color-AA5{color:#F7F8FE;}
.d2-1864249435 .color-AB4{color:#EDF0FD;}
.d2-1864249435 .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-1864249435);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-1864249435);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-1864249435);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-1864249435);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-1864249435);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-1864249435);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-1864249435);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-1864249435);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-1864249435);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-1864249435);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-1864249435);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-1864249435);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-1864249435);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-1864249435);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-1864249435);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-1864249435);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-1864249435);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-1864249435);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]></style><g class="YQ=="><g class="shape" ><path d="M 0 78 C 0 74 4 72 6 72 H 173 C 177 72 179 76 179 78 V 91 C 179 95 175 97 173 97 H 6 C 2 97 -0 93 -0 91 Z" stroke="#0D32B2" fill="#E3E9FD" class=" stroke-B1 fill-B3" style="stroke-width:2;" /><path d="M 90 0 C 112 0 130 18 130 40 C 130 61 112 79 90 79 C 68 79 50 61 50 40 C 50 18 68 0 90 0" stroke="#0D32B2" fill="#E3E9FD" class=" stroke-B1 fill-B3" style="stroke-width:2;" /></g><text x="90.000000" y="89.640000" fill="#0A0F25" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">c4-person</text></g><mask id="d2-1864249435" maskUnits="userSpaceOnUse" x="-1" y="-24" width="182" height="122">
<rect x="-1" y="-24" width="182" height="122" fill="white"></rect>
<rect x="54.500000" y="73.640000" width="71" height="21" fill="rgba(0,0,0,0.75)"></rect>
</mask></svg></svg>

Before

Width:  |  Height:  |  Size: 9.8 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB

View file

@ -19,7 +19,7 @@
"y": 12
},
"width": 180,
"height": 94,
"height": 97,
"opacity": 1,
"strokeDash": 0,
"strokeWidth": 2,

View file

@ -1,9 +1,9 @@
<?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 182 120"><svg class="d2-108552620 d2-svg" width="182" height="120" viewBox="11 -13 182 120"><rect x="11.000000" y="-13.000000" width="182.000000" height="120.000000" rx="0.000000" fill="#FFFFFF" class=" fill-N7" stroke-width="0" /><style type="text/css"><![CDATA[
.d2-108552620 .text-bold {
font-family: "d2-108552620-font-bold";
<?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 182 122"><svg class="d2-1736778707 d2-svg" width="182" height="122" viewBox="11 -12 182 122"><rect x="11.000000" y="-12.000000" width="182.000000" height="122.000000" rx="0.000000" fill="#FFFFFF" class=" fill-N7" stroke-width="0" /><style type="text/css"><![CDATA[
.d2-1736778707 .text-bold {
font-family: "d2-1736778707-font-bold";
}
@font-face {
font-family: d2-108552620-font-bold;
font-family: d2-1736778707-font-bold;
src: url("data:application/font-woff;base64,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");
}]]></style><style type="text/css"><![CDATA[.shape {
shape-rendering: geometricPrecision;
@ -18,78 +18,78 @@
opacity: 0.5;
}
.d2-108552620 .fill-N1{fill:#0A0F25;}
.d2-108552620 .fill-N2{fill:#676C7E;}
.d2-108552620 .fill-N3{fill:#9499AB;}
.d2-108552620 .fill-N4{fill:#CFD2DD;}
.d2-108552620 .fill-N5{fill:#DEE1EB;}
.d2-108552620 .fill-N6{fill:#EEF1F8;}
.d2-108552620 .fill-N7{fill:#FFFFFF;}
.d2-108552620 .fill-B1{fill:#0D32B2;}
.d2-108552620 .fill-B2{fill:#0D32B2;}
.d2-108552620 .fill-B3{fill:#E3E9FD;}
.d2-108552620 .fill-B4{fill:#E3E9FD;}
.d2-108552620 .fill-B5{fill:#EDF0FD;}
.d2-108552620 .fill-B6{fill:#F7F8FE;}
.d2-108552620 .fill-AA2{fill:#4A6FF3;}
.d2-108552620 .fill-AA4{fill:#EDF0FD;}
.d2-108552620 .fill-AA5{fill:#F7F8FE;}
.d2-108552620 .fill-AB4{fill:#EDF0FD;}
.d2-108552620 .fill-AB5{fill:#F7F8FE;}
.d2-108552620 .stroke-N1{stroke:#0A0F25;}
.d2-108552620 .stroke-N2{stroke:#676C7E;}
.d2-108552620 .stroke-N3{stroke:#9499AB;}
.d2-108552620 .stroke-N4{stroke:#CFD2DD;}
.d2-108552620 .stroke-N5{stroke:#DEE1EB;}
.d2-108552620 .stroke-N6{stroke:#EEF1F8;}
.d2-108552620 .stroke-N7{stroke:#FFFFFF;}
.d2-108552620 .stroke-B1{stroke:#0D32B2;}
.d2-108552620 .stroke-B2{stroke:#0D32B2;}
.d2-108552620 .stroke-B3{stroke:#E3E9FD;}
.d2-108552620 .stroke-B4{stroke:#E3E9FD;}
.d2-108552620 .stroke-B5{stroke:#EDF0FD;}
.d2-108552620 .stroke-B6{stroke:#F7F8FE;}
.d2-108552620 .stroke-AA2{stroke:#4A6FF3;}
.d2-108552620 .stroke-AA4{stroke:#EDF0FD;}
.d2-108552620 .stroke-AA5{stroke:#F7F8FE;}
.d2-108552620 .stroke-AB4{stroke:#EDF0FD;}
.d2-108552620 .stroke-AB5{stroke:#F7F8FE;}
.d2-108552620 .background-color-N1{background-color:#0A0F25;}
.d2-108552620 .background-color-N2{background-color:#676C7E;}
.d2-108552620 .background-color-N3{background-color:#9499AB;}
.d2-108552620 .background-color-N4{background-color:#CFD2DD;}
.d2-108552620 .background-color-N5{background-color:#DEE1EB;}
.d2-108552620 .background-color-N6{background-color:#EEF1F8;}
.d2-108552620 .background-color-N7{background-color:#FFFFFF;}
.d2-108552620 .background-color-B1{background-color:#0D32B2;}
.d2-108552620 .background-color-B2{background-color:#0D32B2;}
.d2-108552620 .background-color-B3{background-color:#E3E9FD;}
.d2-108552620 .background-color-B4{background-color:#E3E9FD;}
.d2-108552620 .background-color-B5{background-color:#EDF0FD;}
.d2-108552620 .background-color-B6{background-color:#F7F8FE;}
.d2-108552620 .background-color-AA2{background-color:#4A6FF3;}
.d2-108552620 .background-color-AA4{background-color:#EDF0FD;}
.d2-108552620 .background-color-AA5{background-color:#F7F8FE;}
.d2-108552620 .background-color-AB4{background-color:#EDF0FD;}
.d2-108552620 .background-color-AB5{background-color:#F7F8FE;}
.d2-108552620 .color-N1{color:#0A0F25;}
.d2-108552620 .color-N2{color:#676C7E;}
.d2-108552620 .color-N3{color:#9499AB;}
.d2-108552620 .color-N4{color:#CFD2DD;}
.d2-108552620 .color-N5{color:#DEE1EB;}
.d2-108552620 .color-N6{color:#EEF1F8;}
.d2-108552620 .color-N7{color:#FFFFFF;}
.d2-108552620 .color-B1{color:#0D32B2;}
.d2-108552620 .color-B2{color:#0D32B2;}
.d2-108552620 .color-B3{color:#E3E9FD;}
.d2-108552620 .color-B4{color:#E3E9FD;}
.d2-108552620 .color-B5{color:#EDF0FD;}
.d2-108552620 .color-B6{color:#F7F8FE;}
.d2-108552620 .color-AA2{color:#4A6FF3;}
.d2-108552620 .color-AA4{color:#EDF0FD;}
.d2-108552620 .color-AA5{color:#F7F8FE;}
.d2-108552620 .color-AB4{color:#EDF0FD;}
.d2-108552620 .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-108552620);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-108552620);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-108552620);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-108552620);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-108552620);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-108552620);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-108552620);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-108552620);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-108552620);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-108552620);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-108552620);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-108552620);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-108552620);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-108552620);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-108552620);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-108552620);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-108552620);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-108552620);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]></style><g class="YQ=="><g class="shape" ><path d="M 12 72 C 12 66 18 61 23 61 H 180 C 186 61 191 67 191 72 V 95 C 191 101 185 106 180 106 H 23 C 17 106 12 100 12 95 Z" stroke="#0D32B2" fill="#E3E9FD" class=" stroke-B1 fill-B3" style="stroke-width:2;" /><path d="M 102 -11 C 124 -11 142 7 142 29 C 142 51 124 69 102 69 C 80 69 62 51 62 29 C 62 7 80 -11 102 -11" stroke="#0D32B2" fill="#E3E9FD" class=" stroke-B1 fill-B3" style="stroke-width:2;" /></g><text x="102.000000" y="88.800000" fill="#0A0F25" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">c4-person</text></g><mask id="d2-108552620" maskUnits="userSpaceOnUse" x="11" y="-13" width="182" height="120">
<rect x="11" y="-13" width="182" height="120" fill="white"></rect>
<rect x="66.500000" y="72.800000" width="71" height="21" fill="rgba(0,0,0,0.75)"></rect>
.d2-1736778707 .fill-N1{fill:#0A0F25;}
.d2-1736778707 .fill-N2{fill:#676C7E;}
.d2-1736778707 .fill-N3{fill:#9499AB;}
.d2-1736778707 .fill-N4{fill:#CFD2DD;}
.d2-1736778707 .fill-N5{fill:#DEE1EB;}
.d2-1736778707 .fill-N6{fill:#EEF1F8;}
.d2-1736778707 .fill-N7{fill:#FFFFFF;}
.d2-1736778707 .fill-B1{fill:#0D32B2;}
.d2-1736778707 .fill-B2{fill:#0D32B2;}
.d2-1736778707 .fill-B3{fill:#E3E9FD;}
.d2-1736778707 .fill-B4{fill:#E3E9FD;}
.d2-1736778707 .fill-B5{fill:#EDF0FD;}
.d2-1736778707 .fill-B6{fill:#F7F8FE;}
.d2-1736778707 .fill-AA2{fill:#4A6FF3;}
.d2-1736778707 .fill-AA4{fill:#EDF0FD;}
.d2-1736778707 .fill-AA5{fill:#F7F8FE;}
.d2-1736778707 .fill-AB4{fill:#EDF0FD;}
.d2-1736778707 .fill-AB5{fill:#F7F8FE;}
.d2-1736778707 .stroke-N1{stroke:#0A0F25;}
.d2-1736778707 .stroke-N2{stroke:#676C7E;}
.d2-1736778707 .stroke-N3{stroke:#9499AB;}
.d2-1736778707 .stroke-N4{stroke:#CFD2DD;}
.d2-1736778707 .stroke-N5{stroke:#DEE1EB;}
.d2-1736778707 .stroke-N6{stroke:#EEF1F8;}
.d2-1736778707 .stroke-N7{stroke:#FFFFFF;}
.d2-1736778707 .stroke-B1{stroke:#0D32B2;}
.d2-1736778707 .stroke-B2{stroke:#0D32B2;}
.d2-1736778707 .stroke-B3{stroke:#E3E9FD;}
.d2-1736778707 .stroke-B4{stroke:#E3E9FD;}
.d2-1736778707 .stroke-B5{stroke:#EDF0FD;}
.d2-1736778707 .stroke-B6{stroke:#F7F8FE;}
.d2-1736778707 .stroke-AA2{stroke:#4A6FF3;}
.d2-1736778707 .stroke-AA4{stroke:#EDF0FD;}
.d2-1736778707 .stroke-AA5{stroke:#F7F8FE;}
.d2-1736778707 .stroke-AB4{stroke:#EDF0FD;}
.d2-1736778707 .stroke-AB5{stroke:#F7F8FE;}
.d2-1736778707 .background-color-N1{background-color:#0A0F25;}
.d2-1736778707 .background-color-N2{background-color:#676C7E;}
.d2-1736778707 .background-color-N3{background-color:#9499AB;}
.d2-1736778707 .background-color-N4{background-color:#CFD2DD;}
.d2-1736778707 .background-color-N5{background-color:#DEE1EB;}
.d2-1736778707 .background-color-N6{background-color:#EEF1F8;}
.d2-1736778707 .background-color-N7{background-color:#FFFFFF;}
.d2-1736778707 .background-color-B1{background-color:#0D32B2;}
.d2-1736778707 .background-color-B2{background-color:#0D32B2;}
.d2-1736778707 .background-color-B3{background-color:#E3E9FD;}
.d2-1736778707 .background-color-B4{background-color:#E3E9FD;}
.d2-1736778707 .background-color-B5{background-color:#EDF0FD;}
.d2-1736778707 .background-color-B6{background-color:#F7F8FE;}
.d2-1736778707 .background-color-AA2{background-color:#4A6FF3;}
.d2-1736778707 .background-color-AA4{background-color:#EDF0FD;}
.d2-1736778707 .background-color-AA5{background-color:#F7F8FE;}
.d2-1736778707 .background-color-AB4{background-color:#EDF0FD;}
.d2-1736778707 .background-color-AB5{background-color:#F7F8FE;}
.d2-1736778707 .color-N1{color:#0A0F25;}
.d2-1736778707 .color-N2{color:#676C7E;}
.d2-1736778707 .color-N3{color:#9499AB;}
.d2-1736778707 .color-N4{color:#CFD2DD;}
.d2-1736778707 .color-N5{color:#DEE1EB;}
.d2-1736778707 .color-N6{color:#EEF1F8;}
.d2-1736778707 .color-N7{color:#FFFFFF;}
.d2-1736778707 .color-B1{color:#0D32B2;}
.d2-1736778707 .color-B2{color:#0D32B2;}
.d2-1736778707 .color-B3{color:#E3E9FD;}
.d2-1736778707 .color-B4{color:#E3E9FD;}
.d2-1736778707 .color-B5{color:#EDF0FD;}
.d2-1736778707 .color-B6{color:#F7F8FE;}
.d2-1736778707 .color-AA2{color:#4A6FF3;}
.d2-1736778707 .color-AA4{color:#EDF0FD;}
.d2-1736778707 .color-AA5{color:#F7F8FE;}
.d2-1736778707 .color-AB4{color:#EDF0FD;}
.d2-1736778707 .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-1736778707);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-1736778707);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-1736778707);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-1736778707);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-1736778707);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-1736778707);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-1736778707);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-1736778707);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-1736778707);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-1736778707);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-1736778707);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-1736778707);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-1736778707);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-1736778707);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-1736778707);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-1736778707);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-1736778707);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-1736778707);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]></style><g class="YQ=="><g class="shape" ><path d="M 12 90 C 12 86 16 84 18 84 H 185 C 189 84 191 88 191 90 V 103 C 191 107 187 109 185 109 H 18 C 14 109 12 105 12 103 Z" stroke="#0D32B2" fill="#E3E9FD" class=" stroke-B1 fill-B3" style="stroke-width:2;" /><path d="M 102 12 C 124 12 142 30 142 52 C 142 73 124 91 102 91 C 80 91 62 73 62 52 C 62 30 80 12 102 12" stroke="#0D32B2" fill="#E3E9FD" class=" stroke-B1 fill-B3" style="stroke-width:2;" /></g><text x="102.000000" y="101.640000" fill="#0A0F25" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">c4-person</text></g><mask id="d2-1736778707" maskUnits="userSpaceOnUse" x="11" y="-12" width="182" height="122">
<rect x="11" y="-12" width="182" height="122" fill="white"></rect>
<rect x="66.500000" y="85.640000" width="71" height="21" fill="rgba(0,0,0,0.75)"></rect>
</mask></svg></svg>

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB

View file

@ -1027,106 +1027,6 @@ c4person -> styling.c4styled -> styling.c4sized
style.stroke-width: 1
}
-- c4-theme --
vars: {
d2-config: {
theme-id: 303
}
}
customer: |md
## Personal Banking Customer
[person]
A customer of the bank, with personal bank accounts.
| {
shape: c4-person
}
internet_banking_system: |md
## Internet Banking System
[Software System]
| {
shape: rectangle
label.near: bottom-left
}
internet_banking_system.web_app: |md
## Web Application
[Container: Java and Spring MVC]
Delivers the static content and the Internet banking single page application.
| {
shape: rectangle
}
internet_banking_system.spa: |md
## Single-Page Application
[Container: JavaScript and Angular]
Provides all of the Internet banking functionality to customers via their web browser.
| {
shape: rectangle
}
internet_banking_system.mobile_app: |md
## Mobile App
[Container: Xamarin]
Provides a limited subset of the Internet banking functionality to customers via their mobile device.
| {
shape: rectangle
}
internet_banking_system.api_app: |md
## API Application
[Container: Java and Spring MVC]
Provides Internet banking functionality via a JSON/HTTPS API.
| {
shape: rectangle
}
internet_banking_system.database: |md
## Database
[Container: Oracle Database Schema]
Stores user registration information, hashed authentication credentials, access logs, etc.
| {
shape: rectangle
}
email_system: |md
## E-mail System
[Software System]
The internal Microsoft Exchange e-mail system.
| {
shape: rectangle
}
mainframe: |md
## Mainframe Banking System
[Software System]
Stores all of the core banking information about customers, accounts, transactions, etc.
| {
shape: rectangle
}
# Connections
customer -> internet_banking_system.web_app: "Visits bigbank.com/ib using\n[HTTPS]"
internet_banking_system.web_app -> internet_banking_system.spa: "Delivers to the customer's web browser"
customer -> internet_banking_system.spa: "Views account balances, and makes payments using"
customer -> internet_banking_system.mobile_app: "Views account balances, and makes payments using"
internet_banking_system.spa -> internet_banking_system.api_app: "Makes API calls to\n[JSON/HTTPS]"
internet_banking_system.mobile_app -> internet_banking_system.api_app: "Makes API calls to\n[JSON/HTTPS]"
internet_banking_system.api_app -> mainframe: "Makes API calls to\n[XML/HTTPS]"
customer -> email_system: "Sends e-mails to"
internet_banking_system.api_app -> email_system: "Sends e-mail using"
internet_banking_system.database <-> internet_banking_system.api_app: "Reads from and writes to\n[SQL/TCP]"
-- legend --
vars: {
d2-legend: {
@ -1221,3 +1121,43 @@ A customer of the bank, with personal bank accounts
shape: c4-person
label.near: bottom-center
}
customer1: |md
## Personal Banking Customer
[person]
A customer of the bank, with pekkrsonal bank ccountskks.
| {
shape: c4-person
}
customer2: |md
## Personal Banking Customerk
[person]
A customer of the bank, with pekkrsonal bank accountskks.
A customer of the bank, with pekkrsonal bank accountskks.
A customer of the bank, with pekkrsonal bank accountskks.
| {
shape: c4-person
}
customer3: |md
## Personal Banking Customer
[person]
A customer of the bank, with pekkrsonal bank accountskks.
| {
shape: c4-person
}
customer4: |md
## Personal Banking Customer
[person]
A customer of the bank, with pekkrsonal bank accountskks.
| {
shape: c4-person
}

View file

@ -8,8 +8,13 @@ import (
"oss.terrastruct.com/util-go/go2"
)
// Optimal value for circular arc approximation with cubic bezier curves
const kCircleApprox = 0.5522847498307936 // 4*(math.Sqrt(2)-1)/3
// Constants to match frontend implementation
const (
C4_PERSON_AR_LIMIT = 1.5
HEAD_RADIUS_FACTOR = 0.22
BODY_TOP_FACTOR = 0.8
CORNER_RADIUS_FACTOR = 0.175
)
type shapeC4Person struct {
*baseShape
@ -26,32 +31,25 @@ func NewC4Person(box *geo.Box) Shape {
return shape
}
const (
C4_PERSON_AR_LIMIT = 1.5
)
func (s shapeC4Person) GetInnerBox() *geo.Box {
width := s.Box.Width
height := s.Box.Height
headRadius := width * 0.22
headCenterY := height * 0.18
bodyTop := headCenterY + headRadius*0.8
headRadius := width * HEAD_RADIUS_FACTOR
headCenterY := headRadius
bodyTop := headCenterY + headRadius*BODY_TOP_FACTOR
// Use a small fixed percentage instead of the full corner radius
horizontalPadding := width * 0.05 // 5% padding
// Horizontal padding = 5% of width
horizontalPadding := width * 0.05
// Vertical padding = 3% of height
verticalPadding := height * 0.03
tl := s.Box.TopLeft.Copy()
tl.X += horizontalPadding
tl.Y += bodyTop + verticalPadding
// Add vertical padding
tl.Y += bodyTop + height*0.03
// Width minus padding on both sides
innerWidth := width - (horizontalPadding * 2)
// Add bottom padding
innerHeight := height - (tl.Y - s.Box.TopLeft.Y) - (height * 0.03)
innerHeight := height - bodyTop - (verticalPadding * 2)
return geo.NewBox(tl, innerWidth, innerHeight)
}
@ -62,25 +60,25 @@ func bodyPath(box *geo.Box) *svg.SvgPathContext {
pc := svg.NewSVGPathContext(box.TopLeft, 1, 1)
headRadius := width * 0.22
headCenterY := height * 0.18
bodyTop := headCenterY + headRadius*0.8
headRadius := width * HEAD_RADIUS_FACTOR
headCenterY := headRadius
bodyTop := headCenterY + headRadius*BODY_TOP_FACTOR
bodyWidth := width
bodyHeight := height - bodyTop
bodyLeft := 0
// Ensure cornerRadius is constrained to a portion of the shortest dimension
// This prevents distorted corners when width is large compared to height
cornerRadius := math.Min(width*0.175, bodyHeight*0.25)
// Use the same corner radius calculation as frontend
cornerRadius := math.Min(width*CORNER_RADIUS_FACTOR, bodyHeight*0.25)
pc.StartAt(pc.Absolute(float64(bodyLeft), bodyTop+cornerRadius))
pc.C(true, 0, -kCircleApprox*cornerRadius, kCircleApprox*cornerRadius, -cornerRadius, cornerRadius, -cornerRadius)
pc.C(true, 0, -4*(math.Sqrt(2)-1)/3*cornerRadius, 4*(math.Sqrt(2)-1)/3*cornerRadius, -cornerRadius, cornerRadius, -cornerRadius)
pc.H(true, bodyWidth-2*cornerRadius)
pc.C(true, kCircleApprox*cornerRadius, 0, cornerRadius, kCircleApprox*cornerRadius, cornerRadius, cornerRadius)
pc.C(true, 4*(math.Sqrt(2)-1)/3*cornerRadius, 0, cornerRadius, 4*(math.Sqrt(2)-1)/3*cornerRadius, cornerRadius, cornerRadius)
pc.V(true, bodyHeight-2*cornerRadius)
pc.C(true, 0, kCircleApprox*cornerRadius, -kCircleApprox*cornerRadius, cornerRadius, -cornerRadius, cornerRadius)
pc.C(true, 0, 4*(math.Sqrt(2)-1)/3*cornerRadius, -4*(math.Sqrt(2)-1)/3*cornerRadius, cornerRadius, -cornerRadius, cornerRadius)
pc.H(true, -(bodyWidth - 2*cornerRadius))
pc.C(true, -kCircleApprox*cornerRadius, 0, -cornerRadius, -kCircleApprox*cornerRadius, -cornerRadius, -cornerRadius)
pc.C(true, -4*(math.Sqrt(2)-1)/3*cornerRadius, 0, -cornerRadius, -4*(math.Sqrt(2)-1)/3*cornerRadius, -cornerRadius, -cornerRadius)
pc.Z()
return pc
@ -88,34 +86,33 @@ func bodyPath(box *geo.Box) *svg.SvgPathContext {
func headPath(box *geo.Box) *svg.SvgPathContext {
width := box.Width
height := box.Height
pc := svg.NewSVGPathContext(box.TopLeft, 1, 1)
headRadius := width * 0.22
headRadius := width * HEAD_RADIUS_FACTOR
headCenterX := width / 2
headCenterY := height * 0.18
headCenterY := headRadius
pc.StartAt(pc.Absolute(headCenterX, headCenterY-headRadius))
pc.C(false,
headCenterX+headRadius*kCircleApprox, headCenterY-headRadius,
headCenterX+headRadius, headCenterY-headRadius*kCircleApprox,
headCenterX+headRadius*4*(math.Sqrt(2)-1)/3, headCenterY-headRadius,
headCenterX+headRadius, headCenterY-headRadius*4*(math.Sqrt(2)-1)/3,
headCenterX+headRadius, headCenterY)
pc.C(false,
headCenterX+headRadius, headCenterY+headRadius*kCircleApprox,
headCenterX+headRadius*kCircleApprox, headCenterY+headRadius,
headCenterX+headRadius, headCenterY+headRadius*4*(math.Sqrt(2)-1)/3,
headCenterX+headRadius*4*(math.Sqrt(2)-1)/3, headCenterY+headRadius,
headCenterX, headCenterY+headRadius)
pc.C(false,
headCenterX-headRadius*kCircleApprox, headCenterY+headRadius,
headCenterX-headRadius, headCenterY+headRadius*kCircleApprox,
headCenterX-headRadius*4*(math.Sqrt(2)-1)/3, headCenterY+headRadius,
headCenterX-headRadius, headCenterY+headRadius*4*(math.Sqrt(2)-1)/3,
headCenterX-headRadius, headCenterY)
pc.C(false,
headCenterX-headRadius, headCenterY-headRadius*kCircleApprox,
headCenterX-headRadius*kCircleApprox, headCenterY-headRadius,
headCenterX-headRadius, headCenterY-headRadius*4*(math.Sqrt(2)-1)/3,
headCenterX-headRadius*4*(math.Sqrt(2)-1)/3, headCenterY-headRadius,
headCenterX, headCenterY-headRadius)
return pc
@ -123,13 +120,12 @@ func headPath(box *geo.Box) *svg.SvgPathContext {
func (s shapeC4Person) Perimeter() []geo.Intersectable {
width := s.Box.Width
height := s.Box.Height
bodyPerimeter := bodyPath(s.Box).Path
headRadius := width * 0.22
headRadius := width * HEAD_RADIUS_FACTOR
headCenterX := s.Box.TopLeft.X + width/2
headCenterY := s.Box.TopLeft.Y + height*0.18
headCenterY := s.Box.TopLeft.Y + headRadius
headCenter := geo.NewPoint(headCenterX, headCenterY)
headEllipse := geo.NewEllipse(headCenter, headRadius, headRadius)
@ -150,18 +146,18 @@ func (s shapeC4Person) GetDimensionsToFit(width, height, paddingX, paddingY floa
// Account for 10% total horizontal padding (5% on each side)
totalWidth := contentWidth / 0.9
headRadius := totalWidth * 0.22
headCenterY := totalWidth * 0.18
bodyTop := headCenterY + headRadius*0.8
headRadius := totalWidth * HEAD_RADIUS_FACTOR
// Include vertical padding from GetInnerBox
// Use positioning matching frontend
headCenterY := headRadius
bodyTop := headCenterY + headRadius*BODY_TOP_FACTOR
// Include vertical padding
verticalPadding := totalWidth * 0.06 // 3% top + 3% bottom
totalHeight := contentHeight + bodyTop + verticalPadding
// Calculate minimum height based on actual proportions
// Head height: 2 * headRadius = 0.44 * width
// Body should be at least half the width
minHeight := totalWidth * 0.95 // Reduced from 1.2
// Calculate minimum height
minHeight := totalWidth * 0.95
if totalHeight < minHeight {
totalHeight = minHeight
}