...

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

View as plain text