...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestRename/arrows_complex.exp.json

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

     1{
     2  "graph": {
     3    "name": "",
     4    "isFolderOnly": false,
     5    "ast": {
     6      "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:0:0-1:0:29",
     7      "nodes": [
     8        {
     9          "map_key": {
    10            "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:0:0-0:28:28",
    11            "key": {
    12              "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:0:0-0:3:3",
    13              "path": [
    14                {
    15                  "unquoted_string": {
    16                    "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:0:0-0:1:1",
    17                    "value": [
    18                      {
    19                        "string": "a",
    20                        "raw_string": "a"
    21                      }
    22                    ]
    23                  }
    24                },
    25                {
    26                  "unquoted_string": {
    27                    "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:2:2-0:3:3",
    28                    "value": [
    29                      {
    30                        "string": "b",
    31                        "raw_string": "b"
    32                      }
    33                    ]
    34                  }
    35                }
    36              ]
    37            },
    38            "edges": [
    39              {
    40                "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:5:5-0:12:12",
    41                "src": {
    42                  "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:5:5-0:6:6",
    43                  "path": [
    44                    {
    45                      "unquoted_string": {
    46                        "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:5:5-0:6:6",
    47                        "value": [
    48                          {
    49                            "string": "x",
    50                            "raw_string": "x"
    51                          }
    52                        ]
    53                      }
    54                    }
    55                  ]
    56                },
    57                "src_arrow": "<",
    58                "dst": {
    59                  "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:11:11-0:12:12",
    60                  "path": [
    61                    {
    62                      "unquoted_string": {
    63                        "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:11:11-0:12:12",
    64                        "value": [
    65                          {
    66                            "string": "y",
    67                            "raw_string": "y"
    68                          }
    69                        ]
    70                      }
    71                    }
    72                  ]
    73                },
    74                "dst_arrow": ">"
    75              }
    76            ],
    77            "edge_key": {
    78              "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:14:14-0:28:28",
    79              "path": [
    80                {
    81                  "unquoted_string": {
    82                    "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:14:14-0:19:19",
    83                    "value": [
    84                      {
    85                        "string": "style",
    86                        "raw_string": "style"
    87                      }
    88                    ]
    89                  }
    90                },
    91                {
    92                  "unquoted_string": {
    93                    "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:20:20-0:28:28",
    94                    "value": [
    95                      {
    96                        "string": "animated",
    97                        "raw_string": "animated"
    98                      }
    99                    ]
   100                  }
   101                }
   102              ]
   103            },
   104            "primary": {},
   105            "value": {}
   106          }
   107        }
   108      ]
   109    },
   110    "root": {
   111      "id": "",
   112      "id_val": "",
   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    "edges": [
   134      {
   135        "index": 0,
   136        "isCurve": false,
   137        "src_arrow": true,
   138        "dst_arrow": true,
   139        "references": [
   140          {
   141            "map_key_edge_index": 0
   142          }
   143        ],
   144        "attributes": {
   145          "label": {
   146            "value": ""
   147          },
   148          "labelDimensions": {
   149            "width": 0,
   150            "height": 0
   151          },
   152          "style": {},
   153          "near_key": null,
   154          "shape": {
   155            "value": ""
   156          },
   157          "direction": {
   158            "value": ""
   159          },
   160          "constraint": null
   161        },
   162        "zIndex": 0
   163      }
   164    ],
   165    "objects": [
   166      {
   167        "id": "a",
   168        "id_val": "a",
   169        "references": [
   170          {
   171            "key": {
   172              "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:0:0-0:3:3",
   173              "path": [
   174                {
   175                  "unquoted_string": {
   176                    "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:0:0-0:1:1",
   177                    "value": [
   178                      {
   179                        "string": "a",
   180                        "raw_string": "a"
   181                      }
   182                    ]
   183                  }
   184                },
   185                {
   186                  "unquoted_string": {
   187                    "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:2:2-0:3:3",
   188                    "value": [
   189                      {
   190                        "string": "b",
   191                        "raw_string": "b"
   192                      }
   193                    ]
   194                  }
   195                }
   196              ]
   197            },
   198            "key_path_index": 0,
   199            "map_key_edge_index": -1
   200          }
   201        ],
   202        "attributes": {
   203          "label": {
   204            "value": "a"
   205          },
   206          "labelDimensions": {
   207            "width": 0,
   208            "height": 0
   209          },
   210          "style": {},
   211          "near_key": null,
   212          "shape": {
   213            "value": "rectangle"
   214          },
   215          "direction": {
   216            "value": ""
   217          },
   218          "constraint": null
   219        },
   220        "zIndex": 0
   221      },
   222      {
   223        "id": "b",
   224        "id_val": "b",
   225        "references": [
   226          {
   227            "key": {
   228              "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:0:0-0:3:3",
   229              "path": [
   230                {
   231                  "unquoted_string": {
   232                    "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:0:0-0:1:1",
   233                    "value": [
   234                      {
   235                        "string": "a",
   236                        "raw_string": "a"
   237                      }
   238                    ]
   239                  }
   240                },
   241                {
   242                  "unquoted_string": {
   243                    "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:2:2-0:3:3",
   244                    "value": [
   245                      {
   246                        "string": "b",
   247                        "raw_string": "b"
   248                      }
   249                    ]
   250                  }
   251                }
   252              ]
   253            },
   254            "key_path_index": 1,
   255            "map_key_edge_index": -1
   256          }
   257        ],
   258        "attributes": {
   259          "label": {
   260            "value": "b"
   261          },
   262          "labelDimensions": {
   263            "width": 0,
   264            "height": 0
   265          },
   266          "style": {},
   267          "near_key": null,
   268          "shape": {
   269            "value": "rectangle"
   270          },
   271          "direction": {
   272            "value": ""
   273          },
   274          "constraint": null
   275        },
   276        "zIndex": 0
   277      },
   278      {
   279        "id": "x",
   280        "id_val": "x",
   281        "references": [
   282          {
   283            "key": {
   284              "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:5:5-0:6:6",
   285              "path": [
   286                {
   287                  "unquoted_string": {
   288                    "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:5:5-0:6:6",
   289                    "value": [
   290                      {
   291                        "string": "x",
   292                        "raw_string": "x"
   293                      }
   294                    ]
   295                  }
   296                }
   297              ]
   298            },
   299            "key_path_index": 0,
   300            "map_key_edge_index": 0
   301          }
   302        ],
   303        "attributes": {
   304          "label": {
   305            "value": "x"
   306          },
   307          "labelDimensions": {
   308            "width": 0,
   309            "height": 0
   310          },
   311          "style": {},
   312          "near_key": null,
   313          "shape": {
   314            "value": "rectangle"
   315          },
   316          "direction": {
   317            "value": ""
   318          },
   319          "constraint": null
   320        },
   321        "zIndex": 0
   322      },
   323      {
   324        "id": "y",
   325        "id_val": "y",
   326        "references": [
   327          {
   328            "key": {
   329              "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:11:11-0:12:12",
   330              "path": [
   331                {
   332                  "unquoted_string": {
   333                    "range": "d2/testdata/d2oracle/TestRename/arrows_complex.d2,0:11:11-0:12:12",
   334                    "value": [
   335                      {
   336                        "string": "y",
   337                        "raw_string": "y"
   338                      }
   339                    ]
   340                  }
   341                }
   342              ]
   343            },
   344            "key_path_index": 0,
   345            "map_key_edge_index": 0
   346          }
   347        ],
   348        "attributes": {
   349          "label": {
   350            "value": "y"
   351          },
   352          "labelDimensions": {
   353            "width": 0,
   354            "height": 0
   355          },
   356          "style": {},
   357          "near_key": null,
   358          "shape": {
   359            "value": "rectangle"
   360          },
   361          "direction": {
   362            "value": ""
   363          },
   364          "constraint": null
   365        },
   366        "zIndex": 0
   367      }
   368    ]
   369  },
   370  "err": "<nil>"
   371}

View as plain text