...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestSet/label_replace.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/label_replace.d2,0:0:0-1:0:88",
     7      "nodes": [
     8        {
     9          "map_key": {
    10            "range": "d2/testdata/d2oracle/TestSet/label_replace.d2,0:0:0-0:87:87",
    11            "key": {
    12              "range": "d2/testdata/d2oracle/TestSet/label_replace.d2,0:0:0-0:6:6",
    13              "path": [
    14                {
    15                  "unquoted_string": {
    16                    "range": "d2/testdata/d2oracle/TestSet/label_replace.d2,0:0:0-0:6:6",
    17                    "value": [
    18                      {
    19                        "string": "square",
    20                        "raw_string": "square"
    21                      }
    22                    ]
    23                  }
    24                }
    25              ]
    26            },
    27            "primary": {},
    28            "value": {
    29              "double_quoted_string": {
    30                "range": "d2/testdata/d2oracle/TestSet/label_replace.d2,0:8:8-0:87:87",
    31                "value": [
    32                  {
    33                    "string": "Always try to do things in chronological order; it's less confusing that way.",
    34                    "raw_string": "Always try to do things in chronological order; it's less confusing that way."
    35                  }
    36                ]
    37              }
    38            }
    39          }
    40        }
    41      ]
    42    },
    43    "root": {
    44      "id": "",
    45      "id_val": "",
    46      "attributes": {
    47        "label": {
    48          "value": ""
    49        },
    50        "labelDimensions": {
    51          "width": 0,
    52          "height": 0
    53        },
    54        "style": {},
    55        "near_key": null,
    56        "shape": {
    57          "value": ""
    58        },
    59        "direction": {
    60          "value": ""
    61        },
    62        "constraint": null
    63      },
    64      "zIndex": 0
    65    },
    66    "edges": null,
    67    "objects": [
    68      {
    69        "id": "square",
    70        "id_val": "square",
    71        "references": [
    72          {
    73            "key": {
    74              "range": "d2/testdata/d2oracle/TestSet/label_replace.d2,0:0:0-0:6:6",
    75              "path": [
    76                {
    77                  "unquoted_string": {
    78                    "range": "d2/testdata/d2oracle/TestSet/label_replace.d2,0:0:0-0:6:6",
    79                    "value": [
    80                      {
    81                        "string": "square",
    82                        "raw_string": "square"
    83                      }
    84                    ]
    85                  }
    86                }
    87              ]
    88            },
    89            "key_path_index": 0,
    90            "map_key_edge_index": -1
    91          }
    92        ],
    93        "attributes": {
    94          "label": {
    95            "value": "Always try to do things in chronological order; it's less confusing that way."
    96          },
    97          "labelDimensions": {
    98            "width": 0,
    99            "height": 0
   100          },
   101          "style": {},
   102          "near_key": null,
   103          "shape": {
   104            "value": "rectangle"
   105          },
   106          "direction": {
   107            "value": ""
   108          },
   109          "constraint": null
   110        },
   111        "zIndex": 0
   112      }
   113    ]
   114  },
   115  "err": "<nil>"
   116}

View as plain text