...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestReconnectEdge/loop.exp.json

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

     1{
     2  "graph": {
     3    "name": "",
     4    "isFolderOnly": false,
     5    "ast": {
     6      "range": "d2/testdata/d2oracle/TestReconnectEdge/loop.d2,0:0:0-2:0:9",
     7      "nodes": [
     8        {
     9          "map_key": {
    10            "range": "d2/testdata/d2oracle/TestReconnectEdge/loop.d2,0:0:0-0:6:6",
    11            "edges": [
    12              {
    13                "range": "d2/testdata/d2oracle/TestReconnectEdge/loop.d2,0:0:0-0:6:6",
    14                "src": {
    15                  "range": "d2/testdata/d2oracle/TestReconnectEdge/loop.d2,0:0:0-0:1:1",
    16                  "path": [
    17                    {
    18                      "unquoted_string": {
    19                        "range": "d2/testdata/d2oracle/TestReconnectEdge/loop.d2,0:0:0-0:1:1",
    20                        "value": [
    21                          {
    22                            "string": "a",
    23                            "raw_string": "a"
    24                          }
    25                        ]
    26                      }
    27                    }
    28                  ]
    29                },
    30                "src_arrow": "",
    31                "dst": {
    32                  "range": "d2/testdata/d2oracle/TestReconnectEdge/loop.d2,0:5:5-0:6:6",
    33                  "path": [
    34                    {
    35                      "unquoted_string": {
    36                        "range": "d2/testdata/d2oracle/TestReconnectEdge/loop.d2,0:5:5-0:6:6",
    37                        "value": [
    38                          {
    39                            "string": "b",
    40                            "raw_string": "b"
    41                          }
    42                        ]
    43                      }
    44                    }
    45                  ]
    46                },
    47                "dst_arrow": ">"
    48              }
    49            ],
    50            "primary": {},
    51            "value": {}
    52          }
    53        },
    54        {
    55          "map_key": {
    56            "range": "d2/testdata/d2oracle/TestReconnectEdge/loop.d2,1:0:7-1:1:8",
    57            "key": {
    58              "range": "d2/testdata/d2oracle/TestReconnectEdge/loop.d2,1:0:7-1:1:8",
    59              "path": [
    60                {
    61                  "unquoted_string": {
    62                    "range": "d2/testdata/d2oracle/TestReconnectEdge/loop.d2,1:0:7-1:1:8",
    63                    "value": [
    64                      {
    65                        "string": "b",
    66                        "raw_string": "b"
    67                      }
    68                    ]
    69                  }
    70                }
    71              ]
    72            },
    73            "primary": {},
    74            "value": {}
    75          }
    76        }
    77      ]
    78    },
    79    "root": {
    80      "id": "",
    81      "id_val": "",
    82      "attributes": {
    83        "label": {
    84          "value": ""
    85        },
    86        "labelDimensions": {
    87          "width": 0,
    88          "height": 0
    89        },
    90        "style": {},
    91        "near_key": null,
    92        "shape": {
    93          "value": ""
    94        },
    95        "direction": {
    96          "value": ""
    97        },
    98        "constraint": null
    99      },
   100      "zIndex": 0
   101    },
   102    "edges": [
   103      {
   104        "index": 0,
   105        "isCurve": false,
   106        "src_arrow": false,
   107        "dst_arrow": true,
   108        "references": [
   109          {
   110            "map_key_edge_index": 0
   111          }
   112        ],
   113        "attributes": {
   114          "label": {
   115            "value": ""
   116          },
   117          "labelDimensions": {
   118            "width": 0,
   119            "height": 0
   120          },
   121          "style": {},
   122          "near_key": null,
   123          "shape": {
   124            "value": ""
   125          },
   126          "direction": {
   127            "value": ""
   128          },
   129          "constraint": null
   130        },
   131        "zIndex": 0
   132      }
   133    ],
   134    "objects": [
   135      {
   136        "id": "a",
   137        "id_val": "a",
   138        "references": [
   139          {
   140            "key": {
   141              "range": "d2/testdata/d2oracle/TestReconnectEdge/loop.d2,0:0:0-0:1:1",
   142              "path": [
   143                {
   144                  "unquoted_string": {
   145                    "range": "d2/testdata/d2oracle/TestReconnectEdge/loop.d2,0:0:0-0:1:1",
   146                    "value": [
   147                      {
   148                        "string": "a",
   149                        "raw_string": "a"
   150                      }
   151                    ]
   152                  }
   153                }
   154              ]
   155            },
   156            "key_path_index": 0,
   157            "map_key_edge_index": 0
   158          }
   159        ],
   160        "attributes": {
   161          "label": {
   162            "value": "a"
   163          },
   164          "labelDimensions": {
   165            "width": 0,
   166            "height": 0
   167          },
   168          "style": {},
   169          "near_key": null,
   170          "shape": {
   171            "value": "rectangle"
   172          },
   173          "direction": {
   174            "value": ""
   175          },
   176          "constraint": null
   177        },
   178        "zIndex": 0
   179      },
   180      {
   181        "id": "b",
   182        "id_val": "b",
   183        "references": [
   184          {
   185            "key": {
   186              "range": "d2/testdata/d2oracle/TestReconnectEdge/loop.d2,0:5:5-0:6:6",
   187              "path": [
   188                {
   189                  "unquoted_string": {
   190                    "range": "d2/testdata/d2oracle/TestReconnectEdge/loop.d2,0:5:5-0:6:6",
   191                    "value": [
   192                      {
   193                        "string": "b",
   194                        "raw_string": "b"
   195                      }
   196                    ]
   197                  }
   198                }
   199              ]
   200            },
   201            "key_path_index": 0,
   202            "map_key_edge_index": 0
   203          },
   204          {
   205            "key": {
   206              "range": "d2/testdata/d2oracle/TestReconnectEdge/loop.d2,1:0:7-1:1:8",
   207              "path": [
   208                {
   209                  "unquoted_string": {
   210                    "range": "d2/testdata/d2oracle/TestReconnectEdge/loop.d2,1:0:7-1:1:8",
   211                    "value": [
   212                      {
   213                        "string": "b",
   214                        "raw_string": "b"
   215                      }
   216                    ]
   217                  }
   218                }
   219              ]
   220            },
   221            "key_path_index": 0,
   222            "map_key_edge_index": -1
   223          }
   224        ],
   225        "attributes": {
   226          "label": {
   227            "value": "b"
   228          },
   229          "labelDimensions": {
   230            "width": 0,
   231            "height": 0
   232          },
   233          "style": {},
   234          "near_key": null,
   235          "shape": {
   236            "value": "rectangle"
   237          },
   238          "direction": {
   239            "value": ""
   240          },
   241          "constraint": null
   242        },
   243        "zIndex": 0
   244      }
   245    ]
   246  },
   247  "err": "<nil>"
   248}

View as plain text