...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestMove/into_container_with_flat_style.exp.json

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

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

View as plain text