...

Text file src/oss.terrastruct.com/d2/e2etests/testdata/regression/code_leading_trailing_newlines/elk/board.exp.json

Documentation: oss.terrastruct.com/d2/e2etests/testdata/regression/code_leading_trailing_newlines/elk

     1{
     2  "name": "",
     3  "isFolderOnly": false,
     4  "fontFamily": "SourceSansPro",
     5  "shapes": [
     6    {
     7      "id": "hello world",
     8      "type": "code",
     9      "pos": {
    10        "x": 12,
    11        "y": 12
    12      },
    13      "width": 238,
    14      "height": 183,
    15      "opacity": 1,
    16      "strokeDash": 0,
    17      "strokeWidth": 2,
    18      "borderRadius": 0,
    19      "fill": "N7",
    20      "stroke": "N1",
    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": "\n\n# 2 leading, 2 trailing\ndef hello():\n\n  print \"world\"\n\n",
    34      "fontSize": 16,
    35      "fontFamily": "DEFAULT",
    36      "language": "python",
    37      "color": "N1",
    38      "italic": false,
    39      "bold": true,
    40      "underline": false,
    41      "labelWidth": 222,
    42      "labelHeight": 167,
    43      "zIndex": 0,
    44      "level": 1
    45    },
    46    {
    47      "id": "no trailing",
    48      "type": "code",
    49      "pos": {
    50        "x": 270,
    51        "y": 33
    52      },
    53      "width": 160,
    54      "height": 141,
    55      "opacity": 1,
    56      "strokeDash": 0,
    57      "strokeWidth": 2,
    58      "borderRadius": 0,
    59      "fill": "N7",
    60      "stroke": "N1",
    61      "shadow": false,
    62      "3d": false,
    63      "multiple": false,
    64      "double-border": false,
    65      "tooltip": "",
    66      "link": "",
    67      "icon": null,
    68      "iconPosition": "",
    69      "blend": false,
    70      "fields": null,
    71      "methods": null,
    72      "columns": null,
    73      "label": "\n\n# 2 leading\ndef hello():\n\n  print \"world\"",
    74      "fontSize": 16,
    75      "fontFamily": "DEFAULT",
    76      "language": "python",
    77      "color": "N1",
    78      "italic": false,
    79      "bold": true,
    80      "underline": false,
    81      "labelWidth": 144,
    82      "labelHeight": 125,
    83      "zIndex": 0,
    84      "level": 1
    85    },
    86    {
    87      "id": "no leading",
    88      "type": "code",
    89      "pos": {
    90        "x": 450,
    91        "y": 33
    92      },
    93      "width": 160,
    94      "height": 141,
    95      "opacity": 1,
    96      "strokeDash": 0,
    97      "strokeWidth": 2,
    98      "borderRadius": 0,
    99      "fill": "N7",
   100      "stroke": "N1",
   101      "shadow": false,
   102      "3d": false,
   103      "multiple": false,
   104      "double-border": false,
   105      "tooltip": "",
   106      "link": "",
   107      "icon": null,
   108      "iconPosition": "",
   109      "blend": false,
   110      "fields": null,
   111      "methods": null,
   112      "columns": null,
   113      "label": "# 2 trailing\ndef hello():\n\n  print \"world\"\n\n",
   114      "fontSize": 16,
   115      "fontFamily": "DEFAULT",
   116      "language": "python",
   117      "color": "N1",
   118      "italic": false,
   119      "bold": true,
   120      "underline": false,
   121      "labelWidth": 144,
   122      "labelHeight": 125,
   123      "zIndex": 0,
   124      "level": 1
   125    }
   126  ],
   127  "connections": [],
   128  "root": {
   129    "id": "",
   130    "type": "",
   131    "pos": {
   132      "x": 0,
   133      "y": 0
   134    },
   135    "width": 0,
   136    "height": 0,
   137    "opacity": 0,
   138    "strokeDash": 0,
   139    "strokeWidth": 0,
   140    "borderRadius": 0,
   141    "fill": "N7",
   142    "stroke": "",
   143    "shadow": false,
   144    "3d": false,
   145    "multiple": false,
   146    "double-border": false,
   147    "tooltip": "",
   148    "link": "",
   149    "icon": null,
   150    "iconPosition": "",
   151    "blend": false,
   152    "fields": null,
   153    "methods": null,
   154    "columns": null,
   155    "label": "",
   156    "fontSize": 0,
   157    "fontFamily": "",
   158    "language": "",
   159    "color": "",
   160    "italic": false,
   161    "bold": false,
   162    "underline": false,
   163    "labelWidth": 0,
   164    "labelHeight": 0,
   165    "zIndex": 0,
   166    "level": 0
   167  }
   168}

View as plain text