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