...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestSet/block_string_multiline.exp.json

Documentation: oss.terrastruct.com/d2/testdata/d2oracle/TestSet

     1{
     2  "graph": {
     3    "name": "",
     4    "isFolderOnly": false,
     5    "ast": {
     6      "range": "d2/testdata/d2oracle/TestSet/block_string_multiline.d2,0:0:0-5:0:146",
     7      "nodes": [
     8        {
     9          "map_key": {
    10            "range": "d2/testdata/d2oracle/TestSet/block_string_multiline.d2,0:0:0-4:1:145",
    11            "key": {
    12              "range": "d2/testdata/d2oracle/TestSet/block_string_multiline.d2,0:0:0-0:1:1",
    13              "path": [
    14                {
    15                  "unquoted_string": {
    16                    "range": "d2/testdata/d2oracle/TestSet/block_string_multiline.d2,0:0:0-0:1:1",
    17                    "value": [
    18                      {
    19                        "string": "x",
    20                        "raw_string": "x"
    21                      }
    22                    ]
    23                  }
    24                }
    25              ]
    26            },
    27            "primary": {},
    28            "value": {
    29              "block_string": {
    30                "range": "d2/testdata/d2oracle/TestSet/block_string_multiline.d2,0:3:3-4:1:145",
    31                "quote": "",
    32                "tag": "md",
    33                "value": "# header\nHe has not acquired a fortune; the fortune has acquired him.\nHe has not acquired a fortune; the fortune has acquired him."
    34              }
    35            }
    36          }
    37        }
    38      ]
    39    },
    40    "root": {
    41      "id": "",
    42      "id_val": "",
    43      "attributes": {
    44        "label": {
    45          "value": ""
    46        },
    47        "labelDimensions": {
    48          "width": 0,
    49          "height": 0
    50        },
    51        "style": {},
    52        "near_key": null,
    53        "shape": {
    54          "value": ""
    55        },
    56        "direction": {
    57          "value": ""
    58        },
    59        "constraint": null
    60      },
    61      "zIndex": 0
    62    },
    63    "edges": null,
    64    "objects": [
    65      {
    66        "id": "x",
    67        "id_val": "x",
    68        "references": [
    69          {
    70            "key": {
    71              "range": "d2/testdata/d2oracle/TestSet/block_string_multiline.d2,0:0:0-0:1:1",
    72              "path": [
    73                {
    74                  "unquoted_string": {
    75                    "range": "d2/testdata/d2oracle/TestSet/block_string_multiline.d2,0:0:0-0:1:1",
    76                    "value": [
    77                      {
    78                        "string": "x",
    79                        "raw_string": "x"
    80                      }
    81                    ]
    82                  }
    83                }
    84              ]
    85            },
    86            "key_path_index": 0,
    87            "map_key_edge_index": -1
    88          }
    89        ],
    90        "attributes": {
    91          "label": {
    92            "value": "# header\nHe has not acquired a fortune; the fortune has acquired him.\nHe has not acquired a fortune; the fortune has acquired him."
    93          },
    94          "labelDimensions": {
    95            "width": 0,
    96            "height": 0
    97          },
    98          "style": {},
    99          "near_key": null,
   100          "language": "markdown",
   101          "shape": {
   102            "value": "text"
   103          },
   104          "direction": {
   105            "value": ""
   106          },
   107          "constraint": null
   108        },
   109        "zIndex": 0
   110      }
   111    ]
   112  },
   113  "err": "<nil>"
   114}

View as plain text