1{
2 "graph": {
3 "name": "",
4 "isFolderOnly": false,
5 "ast": {
6 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,0:0:0-4:0:17",
7 "nodes": [
8 {
9 "map_key": {
10 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,1:0:1-1:6:7",
11 "edges": [
12 {
13 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,1:0:1-1:6:7",
14 "src": {
15 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,1:0:1-1:1:2",
16 "path": [
17 {
18 "unquoted_string": {
19 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,1:0:1-1:1:2",
20 "value": [
21 {
22 "string": "b",
23 "raw_string": "b"
24 }
25 ]
26 }
27 }
28 ]
29 },
30 "src_arrow": "",
31 "dst": {
32 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,1:5:6-1:6:7",
33 "path": [
34 {
35 "unquoted_string": {
36 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,1:5:6-1:6:7",
37 "value": [
38 {
39 "string": "c",
40 "raw_string": "c"
41 }
42 ]
43 }
44 }
45 ]
46 },
47 "dst_arrow": ">"
48 }
49 ],
50 "primary": {},
51 "value": {}
52 }
53 },
54 {
55 "map_key": {
56 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,2:0:8-2:6:14",
57 "edges": [
58 {
59 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,2:0:8-2:6:14",
60 "src": {
61 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,2:0:8-2:1:9",
62 "path": [
63 {
64 "unquoted_string": {
65 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,2:0:8-2:1:9",
66 "value": [
67 {
68 "string": "a",
69 "raw_string": "a"
70 }
71 ]
72 }
73 }
74 ]
75 },
76 "src_arrow": "",
77 "dst": {
78 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,2:5:13-2:6:14",
79 "path": [
80 {
81 "unquoted_string": {
82 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,2:5:13-2:6:14",
83 "value": [
84 {
85 "string": "x",
86 "raw_string": "x"
87 }
88 ]
89 }
90 }
91 ]
92 },
93 "dst_arrow": ">"
94 }
95 ],
96 "primary": {},
97 "value": {}
98 }
99 },
100 {
101 "map_key": {
102 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,3:0:15-3:1:16",
103 "key": {
104 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,3:0:15-3:1:16",
105 "path": [
106 {
107 "unquoted_string": {
108 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,3:0:15-3:1:16",
109 "value": [
110 {
111 "string": "x",
112 "raw_string": "x"
113 }
114 ]
115 }
116 }
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 "index": 0,
181 "isCurve": false,
182 "src_arrow": false,
183 "dst_arrow": true,
184 "references": [
185 {
186 "map_key_edge_index": 0
187 }
188 ],
189 "attributes": {
190 "label": {
191 "value": ""
192 },
193 "labelDimensions": {
194 "width": 0,
195 "height": 0
196 },
197 "style": {},
198 "near_key": null,
199 "shape": {
200 "value": ""
201 },
202 "direction": {
203 "value": ""
204 },
205 "constraint": null
206 },
207 "zIndex": 0
208 }
209 ],
210 "objects": [
211 {
212 "id": "b",
213 "id_val": "b",
214 "references": [
215 {
216 "key": {
217 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,1:0:1-1:1:2",
218 "path": [
219 {
220 "unquoted_string": {
221 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,1:0:1-1:1:2",
222 "value": [
223 {
224 "string": "b",
225 "raw_string": "b"
226 }
227 ]
228 }
229 }
230 ]
231 },
232 "key_path_index": 0,
233 "map_key_edge_index": 0
234 }
235 ],
236 "attributes": {
237 "label": {
238 "value": "b"
239 },
240 "labelDimensions": {
241 "width": 0,
242 "height": 0
243 },
244 "style": {},
245 "near_key": null,
246 "shape": {
247 "value": "rectangle"
248 },
249 "direction": {
250 "value": ""
251 },
252 "constraint": null
253 },
254 "zIndex": 0
255 },
256 {
257 "id": "c",
258 "id_val": "c",
259 "references": [
260 {
261 "key": {
262 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,1:5:6-1:6:7",
263 "path": [
264 {
265 "unquoted_string": {
266 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,1:5:6-1:6:7",
267 "value": [
268 {
269 "string": "c",
270 "raw_string": "c"
271 }
272 ]
273 }
274 }
275 ]
276 },
277 "key_path_index": 0,
278 "map_key_edge_index": 0
279 }
280 ],
281 "attributes": {
282 "label": {
283 "value": "c"
284 },
285 "labelDimensions": {
286 "width": 0,
287 "height": 0
288 },
289 "style": {},
290 "near_key": null,
291 "shape": {
292 "value": "rectangle"
293 },
294 "direction": {
295 "value": ""
296 },
297 "constraint": null
298 },
299 "zIndex": 0
300 },
301 {
302 "id": "a",
303 "id_val": "a",
304 "references": [
305 {
306 "key": {
307 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,2:0:8-2:1:9",
308 "path": [
309 {
310 "unquoted_string": {
311 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,2:0:8-2:1:9",
312 "value": [
313 {
314 "string": "a",
315 "raw_string": "a"
316 }
317 ]
318 }
319 }
320 ]
321 },
322 "key_path_index": 0,
323 "map_key_edge_index": 0
324 }
325 ],
326 "attributes": {
327 "label": {
328 "value": "a"
329 },
330 "labelDimensions": {
331 "width": 0,
332 "height": 0
333 },
334 "style": {},
335 "near_key": null,
336 "shape": {
337 "value": "rectangle"
338 },
339 "direction": {
340 "value": ""
341 },
342 "constraint": null
343 },
344 "zIndex": 0
345 },
346 {
347 "id": "x",
348 "id_val": "x",
349 "references": [
350 {
351 "key": {
352 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,2:5:13-2:6:14",
353 "path": [
354 {
355 "unquoted_string": {
356 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,2:5:13-2:6:14",
357 "value": [
358 {
359 "string": "x",
360 "raw_string": "x"
361 }
362 ]
363 }
364 }
365 ]
366 },
367 "key_path_index": 0,
368 "map_key_edge_index": 0
369 },
370 {
371 "key": {
372 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,3:0:15-3:1:16",
373 "path": [
374 {
375 "unquoted_string": {
376 "range": "d2/testdata/d2oracle/TestReconnectEdge/middle_chain.d2,3:0:15-3:1:16",
377 "value": [
378 {
379 "string": "x",
380 "raw_string": "x"
381 }
382 ]
383 }
384 }
385 ]
386 },
387 "key_path_index": 0,
388 "map_key_edge_index": -1
389 }
390 ],
391 "attributes": {
392 "label": {
393 "value": "x"
394 },
395 "labelDimensions": {
396 "width": 0,
397 "height": 0
398 },
399 "style": {},
400 "near_key": null,
401 "shape": {
402 "value": "rectangle"
403 },
404 "direction": {
405 "value": ""
406 },
407 "constraint": null
408 },
409 "zIndex": 0
410 }
411 ]
412 },
413 "err": "<nil>"
414}
View as plain text