...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestReconnectEdge/layers-basic.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/layers-basic.d2,0:0:0-9:0:49",
     7      "nodes": [
     8        {
     9          "map_key": {
    10            "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,0:0:0-0:1:1",
    11            "key": {
    12              "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,0:0:0-0:1:1",
    13              "path": [
    14                {
    15                  "unquoted_string": {
    16                    "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,0:0:0-0:1:1",
    17                    "value": [
    18                      {
    19                        "string": "a",
    20                        "raw_string": "a"
    21                      }
    22                    ]
    23                  }
    24                }
    25              ]
    26            },
    27            "primary": {},
    28            "value": {}
    29          }
    30        },
    31        {
    32          "map_key": {
    33            "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,2:0:3-8:1:48",
    34            "key": {
    35              "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,2:0:3-2:6:9",
    36              "path": [
    37                {
    38                  "unquoted_string": {
    39                    "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,2:0:3-2:6:9",
    40                    "value": [
    41                      {
    42                        "string": "layers",
    43                        "raw_string": "layers"
    44                      }
    45                    ]
    46                  }
    47                }
    48              ]
    49            },
    50            "primary": {},
    51            "value": {
    52              "map": {
    53                "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,2:8:11-8:1:48",
    54                "nodes": [
    55                  {
    56                    "map_key": {
    57                      "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,3:2:15-7:3:46",
    58                      "key": {
    59                        "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,3:2:15-3:3:16",
    60                        "path": [
    61                          {
    62                            "unquoted_string": {
    63                              "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,3:2:15-3:3:16",
    64                              "value": [
    65                                {
    66                                  "string": "x",
    67                                  "raw_string": "x"
    68                                }
    69                              ]
    70                            }
    71                          }
    72                        ]
    73                      },
    74                      "primary": {},
    75                      "value": {
    76                        "map": {
    77                          "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,3:5:18-7:3:46",
    78                          "nodes": [
    79                            {
    80                              "map_key": {
    81                                "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,4:4:24-4:5:25",
    82                                "key": {
    83                                  "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,4:4:24-4:5:25",
    84                                  "path": [
    85                                    {
    86                                      "unquoted_string": {
    87                                        "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,4:4:24-4:5:25",
    88                                        "value": [
    89                                          {
    90                                            "string": "b",
    91                                            "raw_string": "b"
    92                                          }
    93                                        ]
    94                                      }
    95                                    }
    96                                  ]
    97                                },
    98                                "primary": {},
    99                                "value": {}
   100                              }
   101                            },
   102                            {
   103                              "map_key": {
   104                                "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,5:4:30-5:5:31",
   105                                "key": {
   106                                  "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,5:4:30-5:5:31",
   107                                  "path": [
   108                                    {
   109                                      "unquoted_string": {
   110                                        "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,5:4:30-5:5:31",
   111                                        "value": [
   112                                          {
   113                                            "string": "c",
   114                                            "raw_string": "c"
   115                                          }
   116                                        ]
   117                                      }
   118                                    }
   119                                  ]
   120                                },
   121                                "primary": {},
   122                                "value": {}
   123                              }
   124                            },
   125                            {
   126                              "map_key": {
   127                                "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,6:4:36-6:10:42",
   128                                "edges": [
   129                                  {
   130                                    "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,6:4:36-6:10:42",
   131                                    "src": {
   132                                      "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,6:4:36-6:5:37",
   133                                      "path": [
   134                                        {
   135                                          "unquoted_string": {
   136                                            "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,6:4:36-6:5:37",
   137                                            "value": [
   138                                              {
   139                                                "string": "a",
   140                                                "raw_string": "a"
   141                                              }
   142                                            ]
   143                                          }
   144                                        }
   145                                      ]
   146                                    },
   147                                    "src_arrow": "",
   148                                    "dst": {
   149                                      "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,6:9:41-6:10:42",
   150                                      "path": [
   151                                        {
   152                                          "unquoted_string": {
   153                                            "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,6:9:41-6:10:42",
   154                                            "value": [
   155                                              {
   156                                                "string": "c",
   157                                                "raw_string": "c"
   158                                              }
   159                                            ]
   160                                          }
   161                                        }
   162                                      ]
   163                                    },
   164                                    "dst_arrow": ">"
   165                                  }
   166                                ],
   167                                "primary": {},
   168                                "value": {}
   169                              }
   170                            }
   171                          ]
   172                        }
   173                      }
   174                    }
   175                  }
   176                ]
   177              }
   178            }
   179          }
   180        }
   181      ]
   182    },
   183    "root": {
   184      "id": "",
   185      "id_val": "",
   186      "attributes": {
   187        "label": {
   188          "value": ""
   189        },
   190        "labelDimensions": {
   191          "width": 0,
   192          "height": 0
   193        },
   194        "style": {},
   195        "near_key": null,
   196        "shape": {
   197          "value": ""
   198        },
   199        "direction": {
   200          "value": ""
   201        },
   202        "constraint": null
   203      },
   204      "zIndex": 0
   205    },
   206    "edges": null,
   207    "objects": [
   208      {
   209        "id": "a",
   210        "id_val": "a",
   211        "references": [
   212          {
   213            "key": {
   214              "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,0:0:0-0:1:1",
   215              "path": [
   216                {
   217                  "unquoted_string": {
   218                    "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,0:0:0-0:1:1",
   219                    "value": [
   220                      {
   221                        "string": "a",
   222                        "raw_string": "a"
   223                      }
   224                    ]
   225                  }
   226                }
   227              ]
   228            },
   229            "key_path_index": 0,
   230            "map_key_edge_index": -1
   231          }
   232        ],
   233        "attributes": {
   234          "label": {
   235            "value": "a"
   236          },
   237          "labelDimensions": {
   238            "width": 0,
   239            "height": 0
   240          },
   241          "style": {},
   242          "near_key": null,
   243          "shape": {
   244            "value": "rectangle"
   245          },
   246          "direction": {
   247            "value": ""
   248          },
   249          "constraint": null
   250        },
   251        "zIndex": 0
   252      }
   253    ],
   254    "layers": [
   255      {
   256        "name": "x",
   257        "isFolderOnly": false,
   258        "ast": {
   259          "range": ",1:0:0-2:0:0",
   260          "nodes": [
   261            {
   262              "map_key": {
   263                "range": ",0:0:0-0:0:0",
   264                "key": {
   265                  "range": ",0:0:0-0:0:0",
   266                  "path": [
   267                    {
   268                      "unquoted_string": {
   269                        "range": ",0:0:0-0:0:0",
   270                        "value": [
   271                          {
   272                            "string": "b"
   273                          }
   274                        ]
   275                      }
   276                    }
   277                  ]
   278                },
   279                "primary": {},
   280                "value": {}
   281              }
   282            },
   283            {
   284              "map_key": {
   285                "range": ",0:0:0-0:0:0",
   286                "key": {
   287                  "range": ",0:0:0-0:0:0",
   288                  "path": [
   289                    {
   290                      "unquoted_string": {
   291                        "range": ",0:0:0-0:0:0",
   292                        "value": [
   293                          {
   294                            "string": "c"
   295                          }
   296                        ]
   297                      }
   298                    }
   299                  ]
   300                },
   301                "primary": {},
   302                "value": {}
   303              }
   304            },
   305            {
   306              "map_key": {
   307                "range": ",0:0:0-0:0:0",
   308                "key": {
   309                  "range": ",0:0:0-0:0:0",
   310                  "path": [
   311                    {
   312                      "unquoted_string": {
   313                        "range": ",0:0:0-0:0:0",
   314                        "value": [
   315                          {
   316                            "string": "a"
   317                          }
   318                        ]
   319                      }
   320                    }
   321                  ]
   322                },
   323                "primary": {},
   324                "value": {}
   325              }
   326            },
   327            {
   328              "map_key": {
   329                "range": ",0:0:0-0:0:0",
   330                "edges": [
   331                  {
   332                    "range": ",0:0:0-0:0:0",
   333                    "src": {
   334                      "range": ",0:0:0-0:0:0",
   335                      "path": [
   336                        {
   337                          "unquoted_string": {
   338                            "range": ",0:0:0-0:0:0",
   339                            "value": [
   340                              {
   341                                "string": "a"
   342                              }
   343                            ]
   344                          }
   345                        }
   346                      ]
   347                    },
   348                    "src_arrow": "",
   349                    "dst": {
   350                      "range": ",0:0:0-0:0:0",
   351                      "path": [
   352                        {
   353                          "unquoted_string": {
   354                            "range": ",0:0:0-0:0:0",
   355                            "value": [
   356                              {
   357                                "string": "c"
   358                              }
   359                            ]
   360                          }
   361                        }
   362                      ]
   363                    },
   364                    "dst_arrow": ">"
   365                  }
   366                ],
   367                "primary": {},
   368                "value": {}
   369              }
   370            }
   371          ]
   372        },
   373        "root": {
   374          "id": "",
   375          "id_val": "",
   376          "attributes": {
   377            "label": {
   378              "value": ""
   379            },
   380            "labelDimensions": {
   381              "width": 0,
   382              "height": 0
   383            },
   384            "style": {},
   385            "near_key": null,
   386            "shape": {
   387              "value": ""
   388            },
   389            "direction": {
   390              "value": ""
   391            },
   392            "constraint": null
   393          },
   394          "zIndex": 0
   395        },
   396        "edges": [
   397          {
   398            "index": 0,
   399            "isCurve": false,
   400            "src_arrow": false,
   401            "dst_arrow": true,
   402            "references": [
   403              {
   404                "map_key_edge_index": 0
   405              }
   406            ],
   407            "attributes": {
   408              "label": {
   409                "value": ""
   410              },
   411              "labelDimensions": {
   412                "width": 0,
   413                "height": 0
   414              },
   415              "style": {},
   416              "near_key": null,
   417              "shape": {
   418                "value": ""
   419              },
   420              "direction": {
   421                "value": ""
   422              },
   423              "constraint": null
   424            },
   425            "zIndex": 0
   426          }
   427        ],
   428        "objects": [
   429          {
   430            "id": "b",
   431            "id_val": "b",
   432            "references": [
   433              {
   434                "key": {
   435                  "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,4:4:24-4:5:25",
   436                  "path": [
   437                    {
   438                      "unquoted_string": {
   439                        "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,4:4:24-4:5:25",
   440                        "value": [
   441                          {
   442                            "string": "b",
   443                            "raw_string": "b"
   444                          }
   445                        ]
   446                      }
   447                    }
   448                  ]
   449                },
   450                "key_path_index": 0,
   451                "map_key_edge_index": -1
   452              }
   453            ],
   454            "attributes": {
   455              "label": {
   456                "value": "b"
   457              },
   458              "labelDimensions": {
   459                "width": 0,
   460                "height": 0
   461              },
   462              "style": {},
   463              "near_key": null,
   464              "shape": {
   465                "value": "rectangle"
   466              },
   467              "direction": {
   468                "value": ""
   469              },
   470              "constraint": null
   471            },
   472            "zIndex": 0
   473          },
   474          {
   475            "id": "c",
   476            "id_val": "c",
   477            "references": [
   478              {
   479                "key": {
   480                  "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,5:4:30-5:5:31",
   481                  "path": [
   482                    {
   483                      "unquoted_string": {
   484                        "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,5:4:30-5:5:31",
   485                        "value": [
   486                          {
   487                            "string": "c",
   488                            "raw_string": "c"
   489                          }
   490                        ]
   491                      }
   492                    }
   493                  ]
   494                },
   495                "key_path_index": 0,
   496                "map_key_edge_index": -1
   497              },
   498              {
   499                "key": {
   500                  "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,6:9:41-6:10:42",
   501                  "path": [
   502                    {
   503                      "unquoted_string": {
   504                        "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,6:9:41-6:10:42",
   505                        "value": [
   506                          {
   507                            "string": "c",
   508                            "raw_string": "c"
   509                          }
   510                        ]
   511                      }
   512                    }
   513                  ]
   514                },
   515                "key_path_index": 0,
   516                "map_key_edge_index": 0
   517              }
   518            ],
   519            "attributes": {
   520              "label": {
   521                "value": "c"
   522              },
   523              "labelDimensions": {
   524                "width": 0,
   525                "height": 0
   526              },
   527              "style": {},
   528              "near_key": null,
   529              "shape": {
   530                "value": "rectangle"
   531              },
   532              "direction": {
   533                "value": ""
   534              },
   535              "constraint": null
   536            },
   537            "zIndex": 0
   538          },
   539          {
   540            "id": "a",
   541            "id_val": "a",
   542            "references": [
   543              {
   544                "key": {
   545                  "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,6:4:36-6:5:37",
   546                  "path": [
   547                    {
   548                      "unquoted_string": {
   549                        "range": "d2/testdata/d2oracle/TestReconnectEdge/layers-basic.d2,6:4:36-6:5:37",
   550                        "value": [
   551                          {
   552                            "string": "a",
   553                            "raw_string": "a"
   554                          }
   555                        ]
   556                      }
   557                    }
   558                  ]
   559                },
   560                "key_path_index": 0,
   561                "map_key_edge_index": 0
   562              }
   563            ],
   564            "attributes": {
   565              "label": {
   566                "value": "a"
   567              },
   568              "labelDimensions": {
   569                "width": 0,
   570                "height": 0
   571              },
   572              "style": {},
   573              "near_key": null,
   574              "shape": {
   575                "value": "rectangle"
   576              },
   577              "direction": {
   578                "value": ""
   579              },
   580              "constraint": null
   581            },
   582            "zIndex": 0
   583          }
   584        ]
   585      }
   586    ]
   587  },
   588  "err": "<nil>"
   589}

View as plain text