...

Text file src/oss.terrastruct.com/d2/e2etests/testdata/stable/legend_with_near_key/dagre/board.exp.json

Documentation: oss.terrastruct.com/d2/e2etests/testdata/stable/legend_with_near_key/dagre

     1{
     2  "name": "",
     3  "isFolderOnly": false,
     4  "fontFamily": "SourceSansPro",
     5  "shapes": [
     6    {
     7      "id": "x",
     8      "type": "rectangle",
     9      "pos": {
    10        "x": 0,
    11        "y": 0
    12      },
    13      "width": 53,
    14      "height": 66,
    15      "opacity": 1,
    16      "strokeDash": 0,
    17      "strokeWidth": 2,
    18      "borderRadius": 0,
    19      "fill": "B6",
    20      "stroke": "B1",
    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": "x",
    34      "fontSize": 16,
    35      "fontFamily": "DEFAULT",
    36      "language": "",
    37      "color": "N1",
    38      "italic": false,
    39      "bold": true,
    40      "underline": false,
    41      "labelWidth": 8,
    42      "labelHeight": 21,
    43      "labelPosition": "INSIDE_MIDDLE_CENTER",
    44      "zIndex": 0,
    45      "level": 1
    46    },
    47    {
    48      "id": "y",
    49      "type": "rectangle",
    50      "pos": {
    51        "x": 153,
    52        "y": 0
    53      },
    54      "width": 54,
    55      "height": 66,
    56      "opacity": 1,
    57      "strokeDash": 0,
    58      "strokeWidth": 2,
    59      "borderRadius": 0,
    60      "fill": "B6",
    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": "y",
    75      "fontSize": 16,
    76      "fontFamily": "DEFAULT",
    77      "language": "",
    78      "color": "N1",
    79      "italic": false,
    80      "bold": true,
    81      "underline": false,
    82      "labelWidth": 9,
    83      "labelHeight": 21,
    84      "labelPosition": "INSIDE_MIDDLE_CENTER",
    85      "zIndex": 0,
    86      "level": 1
    87    },
    88    {
    89      "id": "z",
    90      "type": "rectangle",
    91      "pos": {
    92        "x": 307,
    93        "y": 0
    94      },
    95      "width": 52,
    96      "height": 66,
    97      "opacity": 1,
    98      "strokeDash": 0,
    99      "strokeWidth": 2,
   100      "borderRadius": 0,
   101      "fill": "B6",
   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": "z",
   116      "fontSize": 16,
   117      "fontFamily": "DEFAULT",
   118      "language": "",
   119      "color": "N1",
   120      "italic": false,
   121      "bold": true,
   122      "underline": false,
   123      "labelWidth": 7,
   124      "labelHeight": 21,
   125      "labelPosition": "INSIDE_MIDDLE_CENTER",
   126      "zIndex": 0,
   127      "level": 1
   128    },
   129    {
   130      "id": "legend",
   131      "type": "rectangle",
   132      "pos": {
   133        "x": 97,
   134        "y": 122
   135      },
   136      "width": 164,
   137      "height": 81,
   138      "opacity": 1,
   139      "strokeDash": 0,
   140      "strokeWidth": 2,
   141      "borderRadius": 0,
   142      "fill": "B4",
   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": "legend",
   157      "fontSize": 28,
   158      "fontFamily": "DEFAULT",
   159      "language": "",
   160      "color": "N1",
   161      "italic": false,
   162      "bold": false,
   163      "underline": false,
   164      "labelWidth": 77,
   165      "labelHeight": 36,
   166      "labelPosition": "OUTSIDE_TOP_CENTER",
   167      "zIndex": 0,
   168      "level": 1
   169    },
   170    {
   171      "id": "legend.color1",
   172      "type": "text",
   173      "pos": {
   174        "x": 127,
   175        "y": 152
   176      },
   177      "width": 22,
   178      "height": 21,
   179      "opacity": 1,
   180      "strokeDash": 0,
   181      "strokeWidth": 2,
   182      "borderRadius": 0,
   183      "fill": "transparent",
   184      "stroke": "N1",
   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": "foo",
   198      "fontSize": 16,
   199      "fontFamily": "DEFAULT",
   200      "language": "",
   201      "color": "green",
   202      "italic": false,
   203      "bold": false,
   204      "underline": false,
   205      "labelWidth": 22,
   206      "labelHeight": 21,
   207      "zIndex": 0,
   208      "level": 2
   209    },
   210    {
   211      "id": "legend.color2",
   212      "type": "text",
   213      "pos": {
   214        "x": 209,
   215        "y": 152
   216      },
   217      "width": 22,
   218      "height": 21,
   219      "opacity": 1,
   220      "strokeDash": 0,
   221      "strokeWidth": 2,
   222      "borderRadius": 0,
   223      "fill": "transparent",
   224      "stroke": "N1",
   225      "shadow": false,
   226      "3d": false,
   227      "multiple": false,
   228      "double-border": false,
   229      "tooltip": "",
   230      "link": "",
   231      "icon": null,
   232      "iconPosition": "",
   233      "blend": false,
   234      "fields": null,
   235      "methods": null,
   236      "columns": null,
   237      "label": "bar",
   238      "fontSize": 16,
   239      "fontFamily": "DEFAULT",
   240      "language": "",
   241      "color": "red",
   242      "italic": false,
   243      "bold": false,
   244      "underline": false,
   245      "labelWidth": 22,
   246      "labelHeight": 21,
   247      "zIndex": 0,
   248      "level": 2
   249    }
   250  ],
   251  "connections": [
   252    {
   253      "id": "(x -> y)[0]",
   254      "src": "x",
   255      "srcArrow": "none",
   256      "dst": "y",
   257      "dstArrow": "triangle",
   258      "opacity": 1,
   259      "strokeDash": 0,
   260      "strokeWidth": 2,
   261      "stroke": "green",
   262      "borderRadius": 10,
   263      "label": "",
   264      "fontSize": 16,
   265      "fontFamily": "DEFAULT",
   266      "language": "",
   267      "color": "N2",
   268      "italic": true,
   269      "bold": false,
   270      "underline": false,
   271      "labelWidth": 0,
   272      "labelHeight": 0,
   273      "labelPosition": "",
   274      "labelPercentage": 0,
   275      "route": [
   276        {
   277          "x": 53,
   278          "y": 33
   279        },
   280        {
   281          "x": 93,
   282          "y": 33
   283        },
   284        {
   285          "x": 113,
   286          "y": 33
   287        },
   288        {
   289          "x": 153,
   290          "y": 33
   291        }
   292      ],
   293      "isCurve": true,
   294      "animated": false,
   295      "tooltip": "",
   296      "icon": null,
   297      "zIndex": 0
   298    },
   299    {
   300      "id": "(y -> z)[0]",
   301      "src": "y",
   302      "srcArrow": "none",
   303      "dst": "z",
   304      "dstArrow": "triangle",
   305      "opacity": 1,
   306      "strokeDash": 0,
   307      "strokeWidth": 2,
   308      "stroke": "red",
   309      "borderRadius": 10,
   310      "label": "",
   311      "fontSize": 16,
   312      "fontFamily": "DEFAULT",
   313      "language": "",
   314      "color": "N2",
   315      "italic": true,
   316      "bold": false,
   317      "underline": false,
   318      "labelWidth": 0,
   319      "labelHeight": 0,
   320      "labelPosition": "",
   321      "labelPercentage": 0,
   322      "route": [
   323        {
   324          "x": 207,
   325          "y": 33
   326        },
   327        {
   328          "x": 247,
   329          "y": 33
   330        },
   331        {
   332          "x": 267,
   333          "y": 33
   334        },
   335        {
   336          "x": 307,
   337          "y": 33
   338        }
   339      ],
   340      "isCurve": true,
   341      "animated": false,
   342      "tooltip": "",
   343      "icon": null,
   344      "zIndex": 0
   345    }
   346  ],
   347  "root": {
   348    "id": "",
   349    "type": "",
   350    "pos": {
   351      "x": 0,
   352      "y": 0
   353    },
   354    "width": 0,
   355    "height": 0,
   356    "opacity": 0,
   357    "strokeDash": 0,
   358    "strokeWidth": 0,
   359    "borderRadius": 0,
   360    "fill": "N7",
   361    "stroke": "",
   362    "shadow": false,
   363    "3d": false,
   364    "multiple": false,
   365    "double-border": false,
   366    "tooltip": "",
   367    "link": "",
   368    "icon": null,
   369    "iconPosition": "",
   370    "blend": false,
   371    "fields": null,
   372    "methods": null,
   373    "columns": null,
   374    "label": "",
   375    "fontSize": 0,
   376    "fontFamily": "",
   377    "language": "",
   378    "color": "",
   379    "italic": false,
   380    "bold": false,
   381    "underline": false,
   382    "labelWidth": 0,
   383    "labelHeight": 0,
   384    "zIndex": 0,
   385    "level": 0
   386  }
   387}

View as plain text