...

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

View as plain text