...

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

View as plain text