...

Text file src/oss.terrastruct.com/d2/e2etests/testdata/stable/sequence_diagram_simple/elk/board.exp.json

Documentation: oss.terrastruct.com/d2/e2etests/testdata/stable/sequence_diagram_simple/elk

     1{
     2  "name": "",
     3  "isFolderOnly": false,
     4  "fontFamily": "SourceSansPro",
     5  "shapes": [
     6    {
     7      "id": "alice",
     8      "type": "person",
     9      "pos": {
    10        "x": 12,
    11        "y": 32
    12      },
    13      "width": 100,
    14      "height": 144,
    15      "opacity": 1,
    16      "strokeDash": 0,
    17      "strokeWidth": 2,
    18      "borderRadius": 0,
    19      "fill": "B5",
    20      "stroke": "red",
    21      "shadow": false,
    22      "3d": false,
    23      "multiple": false,
    24      "double-border": false,
    25      "tooltip": "",
    26      "link": "",
    27      "icon": null,
    28      "iconPosition": "",
    29      "blend": false,
    30      "fields": null,
    31      "methods": null,
    32      "columns": null,
    33      "label": "Alice\nline\nbreaker",
    34      "fontSize": 16,
    35      "fontFamily": "DEFAULT",
    36      "language": "",
    37      "color": "N1",
    38      "italic": false,
    39      "bold": false,
    40      "underline": false,
    41      "labelWidth": 53,
    42      "labelHeight": 53,
    43      "labelPosition": "OUTSIDE_BOTTOM_CENTER",
    44      "zIndex": 0,
    45      "level": 1
    46    },
    47    {
    48      "id": "bob",
    49      "type": "person",
    50      "pos": {
    51        "x": 271,
    52        "y": 59
    53      },
    54      "width": 100,
    55      "height": 150,
    56      "opacity": 1,
    57      "strokeDash": 0,
    58      "strokeWidth": 5,
    59      "borderRadius": 0,
    60      "fill": "B5",
    61      "stroke": "B1",
    62      "shadow": false,
    63      "3d": false,
    64      "multiple": false,
    65      "double-border": false,
    66      "tooltip": "",
    67      "link": "",
    68      "icon": null,
    69      "iconPosition": "",
    70      "blend": false,
    71      "fields": null,
    72      "methods": null,
    73      "columns": null,
    74      "label": "Bob",
    75      "fontSize": 16,
    76      "fontFamily": "DEFAULT",
    77      "language": "",
    78      "color": "N1",
    79      "italic": false,
    80      "bold": false,
    81      "underline": false,
    82      "labelWidth": 27,
    83      "labelHeight": 21,
    84      "labelPosition": "OUTSIDE_BOTTOM_CENTER",
    85      "zIndex": 0,
    86      "level": 1
    87    },
    88    {
    89      "id": "db",
    90      "type": "cylinder",
    91      "pos": {
    92        "x": 578,
    93        "y": 112
    94      },
    95      "width": 100,
    96      "height": 118,
    97      "opacity": 1,
    98      "strokeDash": 0,
    99      "strokeWidth": 2,
   100      "borderRadius": 0,
   101      "fill": "B5",
   102      "stroke": "B1",
   103      "shadow": false,
   104      "3d": false,
   105      "multiple": false,
   106      "double-border": false,
   107      "tooltip": "",
   108      "link": "",
   109      "icon": null,
   110      "iconPosition": "",
   111      "blend": false,
   112      "fields": null,
   113      "methods": null,
   114      "columns": null,
   115      "label": "db",
   116      "fontSize": 16,
   117      "fontFamily": "DEFAULT",
   118      "language": "",
   119      "color": "N1",
   120      "italic": false,
   121      "bold": false,
   122      "underline": false,
   123      "labelWidth": 18,
   124      "labelHeight": 21,
   125      "labelPosition": "INSIDE_MIDDLE_CENTER",
   126      "zIndex": 0,
   127      "level": 1
   128    },
   129    {
   130      "id": "queue",
   131      "type": "queue",
   132      "pos": {
   133        "x": 865,
   134        "y": 164
   135      },
   136      "width": 140,
   137      "height": 66,
   138      "opacity": 1,
   139      "strokeDash": 0,
   140      "strokeWidth": 2,
   141      "borderRadius": 0,
   142      "fill": "B5",
   143      "stroke": "B1",
   144      "shadow": false,
   145      "3d": false,
   146      "multiple": false,
   147      "double-border": false,
   148      "tooltip": "",
   149      "link": "",
   150      "icon": null,
   151      "iconPosition": "",
   152      "blend": false,
   153      "fields": null,
   154      "methods": null,
   155      "columns": null,
   156      "label": "queue",
   157      "fontSize": 16,
   158      "fontFamily": "DEFAULT",
   159      "language": "",
   160      "color": "N1",
   161      "italic": false,
   162      "bold": false,
   163      "underline": false,
   164      "labelWidth": 43,
   165      "labelHeight": 21,
   166      "labelPosition": "INSIDE_MIDDLE_CENTER",
   167      "zIndex": 0,
   168      "level": 1
   169    },
   170    {
   171      "id": "service",
   172      "type": "rectangle",
   173      "pos": {
   174        "x": 1174,
   175        "y": 52
   176      },
   177      "width": 137,
   178      "height": 178,
   179      "opacity": 1,
   180      "strokeDash": 0,
   181      "strokeWidth": 2,
   182      "borderRadius": 0,
   183      "fill": "B5",
   184      "stroke": "B1",
   185      "shadow": false,
   186      "3d": false,
   187      "multiple": false,
   188      "double-border": false,
   189      "tooltip": "",
   190      "link": "",
   191      "icon": null,
   192      "iconPosition": "",
   193      "blend": false,
   194      "fields": null,
   195      "methods": null,
   196      "columns": null,
   197      "label": "an\nodd\nservice\nwith\na\nname\nin\nmultiple lines",
   198      "fontSize": 16,
   199      "fontFamily": "DEFAULT",
   200      "language": "",
   201      "color": "N1",
   202      "italic": false,
   203      "bold": false,
   204      "underline": false,
   205      "labelWidth": 92,
   206      "labelHeight": 133,
   207      "labelPosition": "INSIDE_MIDDLE_CENTER",
   208      "zIndex": 0,
   209      "level": 1
   210    }
   211  ],
   212  "connections": [
   213    {
   214      "id": "(alice -> bob)[0]",
   215      "src": "alice",
   216      "srcArrow": "none",
   217      "dst": "bob",
   218      "dstArrow": "triangle",
   219      "opacity": 1,
   220      "strokeDash": 0,
   221      "strokeWidth": 2,
   222      "stroke": "B1",
   223      "borderRadius": 10,
   224      "label": "Authentication Request",
   225      "fontSize": 16,
   226      "fontFamily": "DEFAULT",
   227      "language": "",
   228      "color": "N2",
   229      "italic": true,
   230      "bold": false,
   231      "underline": false,
   232      "labelWidth": 155,
   233      "labelHeight": 21,
   234      "labelPosition": "INSIDE_MIDDLE_CENTER",
   235      "labelPercentage": 0,
   236      "route": [
   237        {
   238          "x": 62,
   239          "y": 300
   240        },
   241        {
   242          "x": 321,
   243          "y": 300
   244        }
   245      ],
   246      "animated": false,
   247      "tooltip": "",
   248      "icon": null,
   249      "zIndex": 4
   250    },
   251    {
   252      "id": "(bob -> service)[0]",
   253      "src": "bob",
   254      "srcArrow": "none",
   255      "dst": "service",
   256      "dstArrow": "triangle",
   257      "opacity": 1,
   258      "strokeDash": 0,
   259      "strokeWidth": 2,
   260      "stroke": "B1",
   261      "borderRadius": 10,
   262      "label": "make request for something that is quite far away and requires a really long label to take all the space between the objects",
   263      "fontSize": 16,
   264      "fontFamily": "DEFAULT",
   265      "language": "",
   266      "color": "N2",
   267      "italic": true,
   268      "bold": false,
   269      "underline": false,
   270      "labelWidth": 801,
   271      "labelHeight": 21,
   272      "labelPosition": "INSIDE_MIDDLE_CENTER",
   273      "labelPercentage": 0,
   274      "route": [
   275        {
   276          "x": 321,
   277          "y": 370
   278        },
   279        {
   280          "x": 1242.5,
   281          "y": 370
   282        }
   283      ],
   284      "animated": false,
   285      "tooltip": "",
   286      "icon": null,
   287      "zIndex": 4
   288    },
   289    {
   290      "id": "(service -> db)[0]",
   291      "src": "service",
   292      "srcArrow": "none",
   293      "dst": "db",
   294      "dstArrow": "triangle",
   295      "opacity": 1,
   296      "strokeDash": 0,
   297      "strokeWidth": 2,
   298      "stroke": "B1",
   299      "borderRadius": 10,
   300      "label": "validate credentials",
   301      "fontSize": 16,
   302      "fontFamily": "DEFAULT",
   303      "language": "",
   304      "color": "N2",
   305      "italic": true,
   306      "bold": false,
   307      "underline": false,
   308      "labelWidth": 131,
   309      "labelHeight": 21,
   310      "labelPosition": "INSIDE_MIDDLE_CENTER",
   311      "labelPercentage": 0,
   312      "route": [
   313        {
   314          "x": 1242.5,
   315          "y": 440
   316        },
   317        {
   318          "x": 628,
   319          "y": 440
   320        }
   321      ],
   322      "animated": false,
   323      "tooltip": "",
   324      "icon": null,
   325      "zIndex": 4
   326    },
   327    {
   328      "id": "(db -> service)[0]",
   329      "src": "db",
   330      "srcArrow": "none",
   331      "dst": "service",
   332      "dstArrow": "triangle",
   333      "opacity": 1,
   334      "strokeDash": 4,
   335      "strokeWidth": 2,
   336      "stroke": "B2",
   337      "borderRadius": 10,
   338      "label": "",
   339      "fontSize": 16,
   340      "fontFamily": "DEFAULT",
   341      "language": "",
   342      "color": "N2",
   343      "italic": true,
   344      "bold": false,
   345      "underline": false,
   346      "labelWidth": 0,
   347      "labelHeight": 0,
   348      "labelPosition": "",
   349      "labelPercentage": 0,
   350      "route": [
   351        {
   352          "x": 628,
   353          "y": 510
   354        },
   355        {
   356          "x": 1242.5,
   357          "y": 510
   358        }
   359      ],
   360      "animated": false,
   361      "tooltip": "",
   362      "icon": null,
   363      "zIndex": 4
   364    },
   365    {
   366      "id": "(service -> bob)[0]",
   367      "src": "service",
   368      "srcArrow": "none",
   369      "dst": "bob",
   370      "dstArrow": "triangle",
   371      "opacity": 1,
   372      "strokeDash": 4,
   373      "strokeWidth": 2,
   374      "stroke": "B2",
   375      "borderRadius": 10,
   376      "label": "",
   377      "fontSize": 16,
   378      "fontFamily": "DEFAULT",
   379      "language": "",
   380      "color": "N2",
   381      "italic": true,
   382      "bold": false,
   383      "underline": false,
   384      "labelWidth": 0,
   385      "labelHeight": 0,
   386      "labelPosition": "",
   387      "labelPercentage": 0,
   388      "route": [
   389        {
   390          "x": 1242.5,
   391          "y": 580
   392        },
   393        {
   394          "x": 321,
   395          "y": 580
   396        }
   397      ],
   398      "animated": false,
   399      "tooltip": "",
   400      "icon": null,
   401      "zIndex": 4
   402    },
   403    {
   404      "id": "(bob -> alice)[0]",
   405      "src": "bob",
   406      "srcArrow": "none",
   407      "dst": "alice",
   408      "dstArrow": "triangle",
   409      "opacity": 1,
   410      "strokeDash": 0,
   411      "strokeWidth": 2,
   412      "stroke": "B1",
   413      "borderRadius": 10,
   414      "label": "Authentication Response",
   415      "fontSize": 16,
   416      "fontFamily": "DEFAULT",
   417      "language": "",
   418      "color": "N2",
   419      "italic": true,
   420      "bold": false,
   421      "underline": false,
   422      "labelWidth": 164,
   423      "labelHeight": 21,
   424      "labelPosition": "INSIDE_MIDDLE_CENTER",
   425      "labelPercentage": 0,
   426      "route": [
   427        {
   428          "x": 321,
   429          "y": 650
   430        },
   431        {
   432          "x": 62,
   433          "y": 650
   434        }
   435      ],
   436      "animated": false,
   437      "tooltip": "",
   438      "icon": null,
   439      "zIndex": 4
   440    },
   441    {
   442      "id": "(alice -> bob)[1]",
   443      "src": "alice",
   444      "srcArrow": "none",
   445      "dst": "bob",
   446      "dstArrow": "triangle",
   447      "opacity": 1,
   448      "strokeDash": 0,
   449      "strokeWidth": 2,
   450      "stroke": "B1",
   451      "borderRadius": 10,
   452      "label": "Another authentication Request",
   453      "fontSize": 16,
   454      "fontFamily": "DEFAULT",
   455      "language": "",
   456      "color": "N2",
   457      "italic": true,
   458      "bold": false,
   459      "underline": false,
   460      "labelWidth": 210,
   461      "labelHeight": 21,
   462      "labelPosition": "INSIDE_MIDDLE_CENTER",
   463      "labelPercentage": 0,
   464      "route": [
   465        {
   466          "x": 62,
   467          "y": 720
   468        },
   469        {
   470          "x": 321,
   471          "y": 720
   472        }
   473      ],
   474      "animated": false,
   475      "tooltip": "",
   476      "icon": null,
   477      "zIndex": 4
   478    },
   479    {
   480      "id": "(bob -> queue)[0]",
   481      "src": "bob",
   482      "srcArrow": "none",
   483      "dst": "queue",
   484      "dstArrow": "triangle",
   485      "opacity": 1,
   486      "strokeDash": 0,
   487      "strokeWidth": 2,
   488      "stroke": "B1",
   489      "borderRadius": 10,
   490      "label": "do it later",
   491      "fontSize": 16,
   492      "fontFamily": "DEFAULT",
   493      "language": "",
   494      "color": "N2",
   495      "italic": true,
   496      "bold": false,
   497      "underline": false,
   498      "labelWidth": 65,
   499      "labelHeight": 21,
   500      "labelPosition": "INSIDE_MIDDLE_CENTER",
   501      "labelPercentage": 0,
   502      "route": [
   503        {
   504          "x": 321,
   505          "y": 790
   506        },
   507        {
   508          "x": 935,
   509          "y": 790
   510        }
   511      ],
   512      "animated": false,
   513      "tooltip": "",
   514      "icon": null,
   515      "zIndex": 4
   516    },
   517    {
   518      "id": "(queue -> bob)[0]",
   519      "src": "queue",
   520      "srcArrow": "none",
   521      "dst": "bob",
   522      "dstArrow": "triangle",
   523      "opacity": 1,
   524      "strokeDash": 3,
   525      "strokeWidth": 5,
   526      "stroke": "green",
   527      "borderRadius": 10,
   528      "label": "stored",
   529      "fontSize": 16,
   530      "fontFamily": "DEFAULT",
   531      "language": "",
   532      "color": "N2",
   533      "italic": true,
   534      "bold": false,
   535      "underline": false,
   536      "labelWidth": 44,
   537      "labelHeight": 21,
   538      "labelPosition": "INSIDE_MIDDLE_CENTER",
   539      "labelPercentage": 0,
   540      "route": [
   541        {
   542          "x": 935,
   543          "y": 860
   544        },
   545        {
   546          "x": 321,
   547          "y": 860
   548        }
   549      ],
   550      "animated": false,
   551      "tooltip": "",
   552      "icon": null,
   553      "zIndex": 4
   554    },
   555    {
   556      "id": "(bob -> alice)[1]",
   557      "src": "bob",
   558      "srcArrow": "none",
   559      "dst": "alice",
   560      "dstArrow": "triangle",
   561      "opacity": 1,
   562      "strokeDash": 0,
   563      "strokeWidth": 2,
   564      "stroke": "B1",
   565      "borderRadius": 10,
   566      "label": "Another authentication Response",
   567      "fontSize": 16,
   568      "fontFamily": "DEFAULT",
   569      "language": "",
   570      "color": "N2",
   571      "italic": true,
   572      "bold": false,
   573      "underline": false,
   574      "labelWidth": 219,
   575      "labelHeight": 21,
   576      "labelPosition": "INSIDE_MIDDLE_CENTER",
   577      "labelPercentage": 0,
   578      "route": [
   579        {
   580          "x": 321,
   581          "y": 930
   582        },
   583        {
   584          "x": 62,
   585          "y": 930
   586        }
   587      ],
   588      "animated": false,
   589      "tooltip": "",
   590      "icon": null,
   591      "zIndex": 4
   592    },
   593    {
   594      "id": "(alice -- )[0]",
   595      "src": "alice",
   596      "srcArrow": "none",
   597      "dst": "alice-lifeline-end-3851299086",
   598      "dstArrow": "none",
   599      "opacity": 1,
   600      "strokeDash": 6,
   601      "strokeWidth": 2,
   602      "stroke": "red",
   603      "borderRadius": 10,
   604      "label": "",
   605      "fontSize": 16,
   606      "fontFamily": "DEFAULT",
   607      "language": "",
   608      "color": "N2",
   609      "italic": true,
   610      "bold": false,
   611      "underline": false,
   612      "labelWidth": 0,
   613      "labelHeight": 0,
   614      "labelPosition": "",
   615      "labelPercentage": 0,
   616      "route": [
   617        {
   618          "x": 62,
   619          "y": 235
   620        },
   621        {
   622          "x": 62,
   623          "y": 1000
   624        }
   625      ],
   626      "animated": false,
   627      "tooltip": "",
   628      "icon": null,
   629      "zIndex": 1
   630    },
   631    {
   632      "id": "(bob -- )[0]",
   633      "src": "bob",
   634      "srcArrow": "none",
   635      "dst": "bob-lifeline-end-3036726343",
   636      "dstArrow": "none",
   637      "opacity": 1,
   638      "strokeDash": 6,
   639      "strokeWidth": 2,
   640      "stroke": "B2",
   641      "borderRadius": 10,
   642      "label": "",
   643      "fontSize": 16,
   644      "fontFamily": "DEFAULT",
   645      "language": "",
   646      "color": "N2",
   647      "italic": true,
   648      "bold": false,
   649      "underline": false,
   650      "labelWidth": 0,
   651      "labelHeight": 0,
   652      "labelPosition": "",
   653      "labelPercentage": 0,
   654      "route": [
   655        {
   656          "x": 321,
   657          "y": 235
   658        },
   659        {
   660          "x": 321,
   661          "y": 1000
   662        }
   663      ],
   664      "animated": false,
   665      "tooltip": "",
   666      "icon": null,
   667      "zIndex": 1
   668    },
   669    {
   670      "id": "(db -- )[0]",
   671      "src": "db",
   672      "srcArrow": "none",
   673      "dst": "db-lifeline-end-2675250554",
   674      "dstArrow": "none",
   675      "opacity": 1,
   676      "strokeDash": 6,
   677      "strokeWidth": 2,
   678      "stroke": "B2",
   679      "borderRadius": 10,
   680      "label": "",
   681      "fontSize": 16,
   682      "fontFamily": "DEFAULT",
   683      "language": "",
   684      "color": "N2",
   685      "italic": true,
   686      "bold": false,
   687      "underline": false,
   688      "labelWidth": 0,
   689      "labelHeight": 0,
   690      "labelPosition": "",
   691      "labelPercentage": 0,
   692      "route": [
   693        {
   694          "x": 628,
   695          "y": 230
   696        },
   697        {
   698          "x": 628,
   699          "y": 1000
   700        }
   701      ],
   702      "animated": false,
   703      "tooltip": "",
   704      "icon": null,
   705      "zIndex": 1
   706    },
   707    {
   708      "id": "(queue -- )[0]",
   709      "src": "queue",
   710      "srcArrow": "none",
   711      "dst": "queue-lifeline-end-1097346683",
   712      "dstArrow": "none",
   713      "opacity": 1,
   714      "strokeDash": 6,
   715      "strokeWidth": 2,
   716      "stroke": "B2",
   717      "borderRadius": 10,
   718      "label": "",
   719      "fontSize": 16,
   720      "fontFamily": "DEFAULT",
   721      "language": "",
   722      "color": "N2",
   723      "italic": true,
   724      "bold": false,
   725      "underline": false,
   726      "labelWidth": 0,
   727      "labelHeight": 0,
   728      "labelPosition": "",
   729      "labelPercentage": 0,
   730      "route": [
   731        {
   732          "x": 935,
   733          "y": 230
   734        },
   735        {
   736          "x": 935,
   737          "y": 1000
   738        }
   739      ],
   740      "animated": false,
   741      "tooltip": "",
   742      "icon": null,
   743      "zIndex": 1
   744    },
   745    {
   746      "id": "(service -- )[0]",
   747      "src": "service",
   748      "srcArrow": "none",
   749      "dst": "service-lifeline-end-22863415",
   750      "dstArrow": "none",
   751      "opacity": 1,
   752      "strokeDash": 6,
   753      "strokeWidth": 2,
   754      "stroke": "B2",
   755      "borderRadius": 10,
   756      "label": "",
   757      "fontSize": 16,
   758      "fontFamily": "DEFAULT",
   759      "language": "",
   760      "color": "N2",
   761      "italic": true,
   762      "bold": false,
   763      "underline": false,
   764      "labelWidth": 0,
   765      "labelHeight": 0,
   766      "labelPosition": "",
   767      "labelPercentage": 0,
   768      "route": [
   769        {
   770          "x": 1242.5,
   771          "y": 230
   772        },
   773        {
   774          "x": 1242.5,
   775          "y": 1000
   776        }
   777      ],
   778      "animated": false,
   779      "tooltip": "",
   780      "icon": null,
   781      "zIndex": 1
   782    }
   783  ],
   784  "root": {
   785    "id": "",
   786    "type": "",
   787    "pos": {
   788      "x": 0,
   789      "y": 0
   790    },
   791    "width": 0,
   792    "height": 0,
   793    "opacity": 0,
   794    "strokeDash": 0,
   795    "strokeWidth": 0,
   796    "borderRadius": 0,
   797    "fill": "N7",
   798    "stroke": "",
   799    "shadow": false,
   800    "3d": false,
   801    "multiple": false,
   802    "double-border": false,
   803    "tooltip": "",
   804    "link": "",
   805    "icon": null,
   806    "iconPosition": "",
   807    "blend": false,
   808    "fields": null,
   809    "methods": null,
   810    "columns": null,
   811    "label": "",
   812    "fontSize": 0,
   813    "fontFamily": "",
   814    "language": "",
   815    "color": "",
   816    "italic": false,
   817    "bold": false,
   818    "underline": false,
   819    "labelWidth": 0,
   820    "labelHeight": 0,
   821    "zIndex": 0,
   822    "level": 0
   823  }
   824}

View as plain text