xref: /trunk/test/odf-validate/fixtures/connector-viewbox/checks.json (revision 0e16a31d78a652c56c5c0fc79c752f48b9048df9)
1[
2 {
3  "name": "connectors",
4  "expr": "[[s.Name, s.StartPosition.X, s.StartPosition.Y, s.EndPosition.X, s.EndPosition.Y, s.EdgeKind.value, [[[p.X, p.Y] for p in seg] for seg in s.PolyPolygonBezier.Coordinates], [[f.value for f in seg] for seg in s.PolyPolygonBezier.Flags], (s.StartShape.Position.X if s.StartShape else None), (s.EndShape.Position.X if s.EndShape else None), s.StartGluePointIndex, s.EndGluePointIndex] for s in [doc.DrawPages.getByIndex(0).getByIndex(i) for i in range(doc.DrawPages.getByIndex(0).Count)] if s.ShapeType.endswith('ConnectorShape')]",
5  "expect": [
6   [
7    "std_free",
8    2000,
9    2000,
10    8000,
11    6000,
12    "STANDARD",
13    [
14     [
15      [
16       2000,
17       2000
18      ],
19      [
20       5000,
21       2000
22      ],
23      [
24       5000,
25       6000
26      ],
27      [
28       8000,
29       6000
30      ]
31     ]
32    ],
33    [
34     [
35      "NORMAL",
36      "NORMAL",
37      "NORMAL",
38      "NORMAL"
39     ]
40    ],
41    null,
42    null,
43    -1,
44    -1
45   ],
46   [
47    "curve_free",
48    10000,
49    2000,
50    16000,
51    6000,
52    "CURVE",
53    [
54     [
55      [
56       10000,
57       2000
58      ],
59      [
60       14500,
61       2000
62      ],
63      [
64       11500,
65       6000
66      ],
67      [
68       16000,
69       6000
70      ]
71     ]
72    ],
73    [
74     [
75      "NORMAL",
76      "CONTROL",
77      "CONTROL",
78      "NORMAL"
79     ]
80    ],
81    null,
82    null,
83    -1,
84    -1
85   ],
86   [
87    "line_h",
88    2000,
89    8000,
90    8000,
91    8000,
92    "LINE",
93    [
94     [
95      [
96       2000,
97       8000
98      ],
99      [
100       8000,
101       8000
102      ]
103     ]
104    ],
105    [
106     [
107      "NORMAL",
108      "NORMAL"
109     ]
110    ],
111    null,
112    null,
113    -1,
114    -1
115   ],
116   [
117    "line_v",
118    10000,
119    8000,
120    10000,
121    11000,
122    "LINE",
123    [
124     [
125      [
126       10000,
127       8000
128      ],
129      [
130       10000,
131       11000
132      ]
133     ]
134    ],
135    [
136     [
137      "NORMAL",
138      "NORMAL"
139     ]
140    ],
141    null,
142    null,
143    -1,
144    -1
145   ],
146   [
147    "line_rev",
148    18000,
149    9000,
150    14000,
151    5000,
152    "LINE",
153    [
154     [
155      [
156       18000,
157       9000
158      ],
159      [
160       14000,
161       5000
162      ]
163     ]
164    ],
165    [
166     [
167      "NORMAL",
168      "NORMAL"
169     ]
170    ],
171    null,
172    null,
173    -1,
174    -1
175   ],
176   [
177    "std_h",
178    2000,
179    28000,
180    8000,
181    28000,
182    "STANDARD",
183    [
184     [
185      [
186       2000,
187       28000
188      ],
189      [
190       8000,
191       28000
192      ]
193     ]
194    ],
195    [
196     [
197      "NORMAL",
198      "NORMAL"
199     ]
200    ],
201    null,
202    null,
203    -1,
204    -1
205   ],
206   [
207    "std_v",
208    16000,
209    28000,
210    16000,
211    32000,
212    "STANDARD",
213    [
214     [
215      [
216       16000,
217       28000
218      ],
219      [
220       16000,
221       32000
222      ]
223     ]
224    ],
225    [
226     [
227      "NORMAL",
228      "NORMAL"
229     ]
230    ],
231    null,
232    null,
233    -1,
234    -1
235   ],
236   [
237    "std_conn",
238    4000,
239    13000,
240    12000,
241    17000,
242    "STANDARD",
243    [
244     [
245      [
246       4000,
247       13000
248      ],
249      [
250       8000,
251       13000
252      ],
253      [
254       8000,
255       17000
256      ],
257      [
258       12000,
259       17000
260      ]
261     ]
262    ],
263    [
264     [
265      "NORMAL",
266      "NORMAL",
267      "NORMAL",
268      "NORMAL"
269     ]
270    ],
271    1000,
272    12000,
273    -1,
274    -1
275   ],
276   [
277    "curve_conn",
278    4000,
279    21000,
280    9000,
281    25000,
282    "CURVE",
283    [
284     [
285      [
286       4000,
287       21000
288      ],
289      [
290       7750,
291       21000
292      ],
293      [
294       5250,
295       25000
296      ],
297      [
298       9000,
299       25000
300      ]
301     ]
302    ],
303    [
304     [
305      "NORMAL",
306      "CONTROL",
307      "CONTROL",
308      "NORMAL"
309     ]
310    ],
311    1000,
312    9000,
313    -1,
314    -1
315   ],
316   [
317    "lines_free",
318    2000,
319    34000,
320    9000,
321    38000,
322    "LINES",
323    [
324     [
325      [
326       2000,
327       34000
328      ],
329      [
330       9000,
331       38000
332      ]
333     ]
334    ],
335    [
336     [
337      "NORMAL",
338      "NORMAL"
339     ]
340    ],
341    null,
342    null,
343    -1,
344    -1
345   ]
346  ]
347 }
348]