thinreports 0.8.2 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. checksums.yaml +4 -4
  2. data/.github/CONTRIBUTING.md +2 -0
  3. data/.travis.yml +3 -3
  4. data/CHANGELOG.md +98 -1
  5. data/README.md +0 -9
  6. data/Rakefile +1 -2
  7. data/examples/character_spacing/character_spacing.tlf +293 -1
  8. data/examples/dynamic_image/dynamic_image.tlf +661 -1
  9. data/examples/dynamic_style/dynamic_style.rb +4 -4
  10. data/examples/dynamic_style/dynamic_style.tlf +1835 -1
  11. data/examples/dynamic_style/dynamic_style_in_list.tlf +344 -1
  12. data/examples/eudc/eudc.tlf +180 -1
  13. data/examples/hidden_shapes/hidden_shapes.tlf +449 -1
  14. data/examples/list_events/list_events.rb +1 -28
  15. data/examples/list_events/list_events.tlf +361 -0
  16. data/examples/list_manual_generation/list_manual_generation.tlf +132 -1
  17. data/examples/list_page_number/list_page_number.tlf +254 -1
  18. data/examples/page_number/page_number.tlf +215 -1
  19. data/examples/palleted_png/palleted_png.rb +2 -0
  20. data/examples/palleted_png/palleted_png.tlf +47 -1
  21. data/examples/password_setting/password_setting.tlf +45 -1
  22. data/examples/report_callbacks/report_callbacks.rb +1 -18
  23. data/examples/report_callbacks/report_callbacks.tlf +147 -1
  24. data/examples/single_line_tblock/single_line_tblock.tlf +170 -1
  25. data/examples/tblock_overflow/tblock_overflow.tlf +538 -1
  26. data/examples/tblock_styles/font_size.tlf +383 -1
  27. data/examples/tblock_styles/tblock_styles.tlf +889 -1
  28. data/examples/text_align/text_align.tlf +241 -1
  29. data/examples/typeB_page_size/B4_ISO.tlf +45 -1
  30. data/examples/typeB_page_size/B4_JIS.tlf +45 -1
  31. data/examples/word_wrap/word_wrap.tlf +297 -1
  32. data/lib/thinreports.rb +0 -1
  33. data/lib/thinreports/config.rb +3 -0
  34. data/lib/thinreports/core/errors.rb +0 -3
  35. data/lib/thinreports/core/format/base.rb +4 -4
  36. data/lib/thinreports/core/shape.rb +1 -9
  37. data/lib/thinreports/core/shape/basic.rb +3 -3
  38. data/lib/thinreports/core/shape/basic/block_format.rb +1 -1
  39. data/lib/thinreports/core/shape/basic/format.rb +2 -14
  40. data/lib/thinreports/core/shape/basic/internal.rb +2 -2
  41. data/lib/thinreports/core/shape/image_block.rb +3 -3
  42. data/lib/thinreports/core/shape/image_block/format.rb +0 -2
  43. data/lib/thinreports/core/shape/image_block/internal.rb +1 -1
  44. data/lib/thinreports/core/shape/list.rb +3 -7
  45. data/lib/thinreports/core/shape/list/format.rb +37 -24
  46. data/lib/thinreports/core/shape/list/manager.rb +1 -36
  47. data/lib/thinreports/core/shape/list/page.rb +0 -15
  48. data/lib/thinreports/core/shape/list/page_state.rb +1 -1
  49. data/lib/thinreports/core/shape/list/section_format.rb +14 -12
  50. data/lib/thinreports/core/shape/list/section_internal.rb +4 -7
  51. data/lib/thinreports/core/shape/manager/format.rb +0 -2
  52. data/lib/thinreports/core/shape/manager/internal.rb +1 -1
  53. data/lib/thinreports/core/shape/page_number.rb +1 -1
  54. data/lib/thinreports/core/shape/page_number/format.rb +9 -6
  55. data/lib/thinreports/core/shape/page_number/interface.rb +1 -1
  56. data/lib/thinreports/core/shape/page_number/internal.rb +2 -6
  57. data/lib/thinreports/core/shape/style/base.rb +11 -13
  58. data/lib/thinreports/core/shape/style/basic.rb +4 -4
  59. data/lib/thinreports/core/shape/style/graphic.rb +4 -10
  60. data/lib/thinreports/core/shape/style/text.rb +36 -69
  61. data/lib/thinreports/core/shape/text.rb +3 -3
  62. data/lib/thinreports/core/shape/text/format.rb +3 -13
  63. data/lib/thinreports/core/shape/text/internal.rb +2 -2
  64. data/lib/thinreports/core/shape/text_block.rb +3 -3
  65. data/lib/thinreports/core/shape/text_block/format.rb +9 -6
  66. data/lib/thinreports/core/shape/text_block/interface.rb +7 -7
  67. data/lib/thinreports/core/shape/text_block/internal.rb +1 -1
  68. data/lib/thinreports/generator/pdf.rb +0 -1
  69. data/lib/thinreports/generator/pdf/document.rb +2 -2
  70. data/lib/thinreports/generator/pdf/document/draw_shape.rb +25 -51
  71. data/lib/thinreports/generator/pdf/document/draw_template_items.rb +66 -0
  72. data/lib/thinreports/generator/pdf/document/font.rb +3 -8
  73. data/lib/thinreports/generator/pdf/document/graphics/attributes.rb +97 -77
  74. data/lib/thinreports/generator/pdf/document/graphics/basic.rb +18 -13
  75. data/lib/thinreports/generator/pdf/document/graphics/image.rb +17 -12
  76. data/lib/thinreports/generator/pdf/document/page.rb +1 -1
  77. data/lib/thinreports/generator/pdf/drawer/list.rb +5 -1
  78. data/lib/thinreports/generator/pdf/drawer/list_section.rb +1 -4
  79. data/lib/thinreports/generator/pdf/drawer/page.rb +9 -9
  80. data/lib/thinreports/layout.rb +3 -3
  81. data/lib/thinreports/layout/base.rb +0 -16
  82. data/lib/thinreports/layout/format.rb +38 -57
  83. data/lib/thinreports/layout/legacy_schema.rb +354 -0
  84. data/lib/thinreports/layout/version.rb +1 -1
  85. data/lib/thinreports/report.rb +0 -1
  86. data/lib/thinreports/report/base.rb +3 -17
  87. data/lib/thinreports/report/internal.rb +13 -55
  88. data/lib/thinreports/report/page.rb +1 -1
  89. data/lib/thinreports/version.rb +1 -1
  90. data/test/data/legacy_layout/all-items.tlf +1 -0
  91. data/test/schema_helper.rb +121 -0
  92. data/test/test_helper.rb +13 -50
  93. data/test/unit/core/format/test_base.rb +35 -31
  94. data/test/unit/core/shape/base/test_internal.rb +1 -1
  95. data/test/unit/core/shape/basic/test_block_format.rb +23 -0
  96. data/test/unit/core/shape/basic/{test_basic_interface.rb → test_block_interface.rb} +1 -1
  97. data/test/unit/core/shape/basic/{test_basic_internal.rb → test_block_internal.rb} +4 -7
  98. data/test/unit/core/shape/basic/test_format.rb +25 -47
  99. data/test/unit/core/shape/basic/test_interface.rb +5 -5
  100. data/test/unit/core/shape/basic/test_internal.rb +6 -11
  101. data/test/unit/core/shape/image_block/test_interface.rb +5 -5
  102. data/test/unit/core/shape/image_block/test_internal.rb +2 -2
  103. data/test/unit/core/shape/list/test_format.rb +86 -44
  104. data/test/unit/core/shape/list/test_manager.rb +10 -65
  105. data/test/unit/core/shape/list/test_page.rb +10 -61
  106. data/test/unit/core/shape/list/test_page_state.rb +1 -1
  107. data/test/unit/core/shape/list/test_section_format.rb +19 -28
  108. data/test/unit/core/shape/list/test_section_interface.rb +14 -6
  109. data/test/unit/core/shape/list/test_section_internal.rb +17 -23
  110. data/test/unit/core/shape/manager/test_format.rb +1 -1
  111. data/test/unit/core/shape/manager/test_internal.rb +59 -98
  112. data/test/unit/core/shape/manager/test_target.rb +21 -30
  113. data/test/unit/core/shape/page_number/test_format.rb +34 -52
  114. data/test/unit/core/shape/page_number/test_interface.rb +1 -1
  115. data/test/unit/core/shape/page_number/test_internal.rb +2 -2
  116. data/test/unit/core/shape/styles/test_base.rb +16 -41
  117. data/test/unit/core/shape/styles/test_basic.rb +7 -7
  118. data/test/unit/core/shape/styles/test_graphic.rb +27 -32
  119. data/test/unit/core/shape/styles/test_text.rb +68 -311
  120. data/test/unit/core/shape/text/test_format.rb +30 -59
  121. data/test/unit/core/shape/text/test_internal.rb +5 -5
  122. data/test/unit/core/shape/text_block/formatter/test_datetime.rb +13 -13
  123. data/test/unit/core/shape/text_block/test_format.rb +145 -146
  124. data/test/unit/core/shape/text_block/test_interface.rb +9 -9
  125. data/test/unit/core/shape/text_block/test_internal.rb +9 -9
  126. data/test/unit/core/test_shape.rb +19 -31
  127. data/test/unit/generator/pdf/document/graphics/test_attributes.rb +112 -122
  128. data/test/unit/generator/pdf/document/graphics/test_basic.rb +45 -0
  129. data/test/unit/generator/pdf/document/graphics/test_image.rb +5 -5
  130. data/test/unit/generator/pdf/document/test_font.rb +4 -10
  131. data/test/unit/generator/pdf/document/test_page.rb +13 -11
  132. data/test/unit/generator/pdf/document/test_parse_color.rb +5 -5
  133. data/test/unit/generator/test_base.rb +5 -5
  134. data/test/unit/generator/test_configuration.rb +4 -8
  135. data/test/unit/generator/test_pdf.rb +3 -2
  136. data/test/unit/layout/test_base.rb +16 -22
  137. data/test/unit/layout/test_format.rb +66 -86
  138. data/test/unit/layout/test_legacy_schema.rb +587 -0
  139. data/test/unit/layout/test_version.rb +20 -20
  140. data/test/unit/report/test_base.rb +32 -45
  141. data/test/unit/report/test_internal.rb +43 -99
  142. data/test/unit/test_config.rb +4 -2
  143. data/test/unit/test_layout.rb +1 -1
  144. metadata +20 -48
  145. data/examples/list_events/list_events_0_7_7.tlf +0 -1
  146. data/examples/list_events/list_events_0_8.tlf +0 -1
  147. data/lib/thinreports/core/events.rb +0 -69
  148. data/lib/thinreports/core/format/builder.rb +0 -62
  149. data/lib/thinreports/core/shape/list/configuration.rb +0 -54
  150. data/lib/thinreports/core/shape/list/events.rb +0 -47
  151. data/lib/thinreports/core/shape/list/store.rb +0 -33
  152. data/lib/thinreports/generator/pdf/configuration.rb +0 -33
  153. data/lib/thinreports/generator/pdf/document/parse_svg.rb +0 -104
  154. data/lib/thinreports/layout/configuration.rb +0 -29
  155. data/test/data/layout_block.tlf +0 -1
  156. data/test/data/layout_list.tlf +0 -1
  157. data/test/data/layout_list_noheader.tlf +0 -1
  158. data/test/data/layout_text1.tlf +0 -1
  159. data/test/data/layout_text2.tlf +0 -1
  160. data/test/unit/core/format/test_builder.rb +0 -109
  161. data/test/unit/core/shape/basic/test_basic_format.rb +0 -30
  162. data/test/unit/core/shape/image_block/test_format.rb +0 -58
  163. data/test/unit/core/shape/list/test_configuration.rb +0 -69
  164. data/test/unit/core/shape/list/test_events.rb +0 -36
  165. data/test/unit/core/shape/list/test_store.rb +0 -41
  166. data/test/unit/core/test_events.rb +0 -93
  167. data/test/unit/generator/pdf/document/test_draw_shape.rb +0 -44
  168. data/test/unit/generator/pdf/test_configuration.rb +0 -31
  169. data/test/unit/layout/test_configuration.rb +0 -21
  170. data/test/unit/report/test_events.rb +0 -22
@@ -0,0 +1,361 @@
1
+ {
2
+ "version": "0.9.0",
3
+ "items": [
4
+ {
5
+ "id": "default",
6
+ "type": "list",
7
+ "display": true,
8
+ "description": "",
9
+ "x": 20,
10
+ "y": 103,
11
+ "width": 555.2,
12
+ "height": 300,
13
+ "header": {
14
+ "enabled": true,
15
+ "height": 50,
16
+ "translate": {
17
+ "x": 0,
18
+ "y": -61.1
19
+ },
20
+ "items": [
21
+ {
22
+ "id": "",
23
+ "type": "line",
24
+ "display": true,
25
+ "description": "",
26
+ "style": {
27
+ "border-color": "#000000",
28
+ "border-width": 1,
29
+ "border-style": "solid"
30
+ },
31
+ "x1": 20,
32
+ "y1": 214.1,
33
+ "x2": 575.2,
34
+ "y2": 214.1
35
+ },
36
+ {
37
+ "id": "title",
38
+ "type": "text-block",
39
+ "display": true,
40
+ "description": "",
41
+ "x": 169.2,
42
+ "y": 180.1,
43
+ "width": 249,
44
+ "height": 18,
45
+ "style": {
46
+ "font-family": [
47
+ "Helvetica"
48
+ ],
49
+ "font-size": 18,
50
+ "color": "#000000",
51
+ "text-align": "center",
52
+ "vertical-align": "top",
53
+ "line-height": "",
54
+ "line-height-ratio": "",
55
+ "letter-spacing": "",
56
+ "font-style": [],
57
+ "overflow": "truncate",
58
+ "word-wrap": "break-word"
59
+ },
60
+ "reference-id": "",
61
+ "value": "",
62
+ "multiple-line": false,
63
+ "format": {
64
+ "base": "",
65
+ "type": ""
66
+ }
67
+ }
68
+ ]
69
+ },
70
+ "detail": {
71
+ "height": 50,
72
+ "translate": {
73
+ "x": 0,
74
+ "y": -86.5
75
+ },
76
+ "items": [
77
+ {
78
+ "id": "price",
79
+ "type": "text-block",
80
+ "display": true,
81
+ "description": "",
82
+ "x": 169.2,
83
+ "y": 255.5,
84
+ "width": 249,
85
+ "height": 18,
86
+ "style": {
87
+ "font-family": [
88
+ "Helvetica"
89
+ ],
90
+ "font-size": 18,
91
+ "color": "#000000",
92
+ "text-align": "right",
93
+ "vertical-align": "top",
94
+ "line-height": "",
95
+ "line-height-ratio": "",
96
+ "letter-spacing": "",
97
+ "font-style": [],
98
+ "overflow": "truncate",
99
+ "word-wrap": "break-word"
100
+ },
101
+ "reference-id": "",
102
+ "value": "",
103
+ "multiple-line": false,
104
+ "format": {
105
+ "base": "",
106
+ "type": "number",
107
+ "number": {
108
+ "delimiter": ",",
109
+ "precision": 0
110
+ }
111
+ }
112
+ },
113
+ {
114
+ "id": "",
115
+ "type": "line",
116
+ "display": true,
117
+ "description": "",
118
+ "style": {
119
+ "border-color": "#000000",
120
+ "border-width": 1,
121
+ "border-style": "solid"
122
+ },
123
+ "x1": 20,
124
+ "y1": 289.5,
125
+ "x2": 575.2,
126
+ "y2": 289.5
127
+ }
128
+ ]
129
+ },
130
+ "page-footer": {
131
+ "enabled": true,
132
+ "height": 50,
133
+ "translate": {
134
+ "x": 0,
135
+ "y": -111.9
136
+ },
137
+ "items": [
138
+ {
139
+ "id": "price",
140
+ "type": "text-block",
141
+ "display": true,
142
+ "description": "",
143
+ "x": 169.2,
144
+ "y": 330.9,
145
+ "width": 249,
146
+ "height": 18,
147
+ "style": {
148
+ "font-family": [
149
+ "Helvetica"
150
+ ],
151
+ "font-size": 18,
152
+ "color": "#000000",
153
+ "text-align": "right",
154
+ "vertical-align": "top",
155
+ "line-height": "",
156
+ "line-height-ratio": "",
157
+ "letter-spacing": "",
158
+ "font-style": [],
159
+ "overflow": "truncate",
160
+ "word-wrap": "break-word"
161
+ },
162
+ "reference-id": "",
163
+ "value": "",
164
+ "multiple-line": false,
165
+ "format": {
166
+ "base": "",
167
+ "type": "number",
168
+ "number": {
169
+ "delimiter": ",",
170
+ "precision": 0
171
+ }
172
+ }
173
+ },
174
+ {
175
+ "id": "",
176
+ "type": "line",
177
+ "display": true,
178
+ "description": "",
179
+ "style": {
180
+ "border-color": "#000000",
181
+ "border-width": 1,
182
+ "border-style": "solid"
183
+ },
184
+ "x1": 20,
185
+ "y1": 364.9,
186
+ "x2": 575.2,
187
+ "y2": 364.9
188
+ },
189
+ {
190
+ "id": "",
191
+ "type": "text",
192
+ "display": true,
193
+ "description": "",
194
+ "x": 74.1,
195
+ "y": 332.9,
196
+ "width": 77.4,
197
+ "height": 18.5,
198
+ "style": {
199
+ "font-family": [
200
+ "Helvetica"
201
+ ],
202
+ "font-size": 16,
203
+ "color": "#000000",
204
+ "text-align": "right",
205
+ "vertical-align": "top",
206
+ "line-height": "",
207
+ "line-height-ratio": "",
208
+ "letter-spacing": "",
209
+ "font-style": []
210
+ },
211
+ "texts": [
212
+ "Page Total"
213
+ ]
214
+ }
215
+ ]
216
+ },
217
+ "footer": {
218
+ "enabled": true,
219
+ "height": 50,
220
+ "translate": {
221
+ "x": 0,
222
+ "y": -118.5
223
+ },
224
+ "items": [
225
+ {
226
+ "id": "",
227
+ "type": "line",
228
+ "display": true,
229
+ "description": "",
230
+ "style": {
231
+ "border-color": "#000000",
232
+ "border-width": 1,
233
+ "border-style": "solid"
234
+ },
235
+ "x1": 20,
236
+ "y1": 421.5,
237
+ "x2": 575.2,
238
+ "y2": 421.5
239
+ },
240
+ {
241
+ "id": "price",
242
+ "type": "text-block",
243
+ "display": true,
244
+ "description": "",
245
+ "x": 169.2,
246
+ "y": 387.5,
247
+ "width": 249,
248
+ "height": 18,
249
+ "style": {
250
+ "font-family": [
251
+ "Helvetica"
252
+ ],
253
+ "font-size": 18,
254
+ "color": "#000000",
255
+ "text-align": "right",
256
+ "vertical-align": "top",
257
+ "line-height": "",
258
+ "line-height-ratio": "",
259
+ "letter-spacing": "",
260
+ "font-style": [],
261
+ "overflow": "truncate",
262
+ "word-wrap": "break-word"
263
+ },
264
+ "reference-id": "",
265
+ "value": "",
266
+ "multiple-line": false,
267
+ "format": {
268
+ "base": "",
269
+ "type": "number",
270
+ "number": {
271
+ "delimiter": ",",
272
+ "precision": 0
273
+ }
274
+ }
275
+ },
276
+ {
277
+ "id": "",
278
+ "type": "text",
279
+ "display": true,
280
+ "description": "",
281
+ "x": 74.1,
282
+ "y": 389.5,
283
+ "width": 77.4,
284
+ "height": 18.5,
285
+ "style": {
286
+ "font-family": [
287
+ "Helvetica"
288
+ ],
289
+ "font-size": 16,
290
+ "color": "#000000",
291
+ "text-align": "right",
292
+ "vertical-align": "top",
293
+ "line-height": "",
294
+ "line-height-ratio": "",
295
+ "letter-spacing": "",
296
+ "font-style": []
297
+ },
298
+ "texts": [
299
+ "Total"
300
+ ]
301
+ }
302
+ ]
303
+ },
304
+ "content-height": 250,
305
+ "auto-page-break": true
306
+ },
307
+ {
308
+ "id": "",
309
+ "type": "text",
310
+ "display": true,
311
+ "description": "",
312
+ "x": 140.1,
313
+ "y": 31,
314
+ "width": 315.1,
315
+ "height": 48,
316
+ "style": {
317
+ "font-family": [
318
+ "Times New Roman"
319
+ ],
320
+ "font-size": 26,
321
+ "color": "#000000",
322
+ "text-align": "center",
323
+ "vertical-align": "middle",
324
+ "line-height": "",
325
+ "line-height-ratio": "",
326
+ "letter-spacing": "",
327
+ "font-style": []
328
+ },
329
+ "texts": [
330
+ "List Events for 0.8 or higher"
331
+ ]
332
+ }
333
+ ],
334
+ "state": {
335
+ "layout-guides": [
336
+ {
337
+ "type": "x",
338
+ "position": 418.2
339
+ },
340
+ {
341
+ "type": "x",
342
+ "position": 169.2
343
+ },
344
+ {
345
+ "type": "y",
346
+ "position": 84
347
+ }
348
+ ]
349
+ },
350
+ "title": "List Events",
351
+ "report": {
352
+ "paper-type": "A4",
353
+ "orientation": "portrait",
354
+ "margin": [
355
+ 20,
356
+ 20,
357
+ 20,
358
+ 20
359
+ ]
360
+ }
361
+ }
@@ -1 +1,132 @@
1
- {"version":"0.7.7.1","finger-print":914687887,"config":{"title":"List Manual Generation","option":{},"page":{"paper-type":"A4","orientation":"portrait","margin-top":"20","margin-bottom":"20","margin-left":"20","margin-right":"20"}},"svg":"<svg width=\"595.2\" height=\"841.8\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"none\" viewBox=\"0 0 595.2 841.8\"><g class=\"canvas\"><!--SHAPE{\"type\":\"s-list\",\"id\":\"default\",\"display\":\"true\",\"desc\":null,\"footer\":{},\"footer-enabled\":\"false\",\"page-footer\":{},\"page-footer-enabled\":\"false\",\"detail\":{\"height\":57.7,\"svg\":{\"tag\":\"g\",\"content\":\"<!---SHAPE{\\\"type\\\":\\\"s-tblock\\\",\\\"id\\\":\\\"detail\\\",\\\"display\\\":\\\"true\\\",\\\"desc\\\":null,\\\"multiple\\\":\\\"false\\\",\\\"valign\\\":\\\"\\\",\\\"line-height\\\":\\\"\\\",\\\"box\\\":{\\\"x\\\":211.4,\\\"y\\\":124.5,\\\"width\\\":172.5,\\\"height\\\":36},\\\"format\\\":{\\\"base\\\":\\\"Detail#{value}\\\",\\\"type\\\":\\\"\\\"},\\\"value\\\":\\\"\\\",\\\"ref-id\\\":\\\"\\\",\\\"overflow\\\":\\\"\\\",\\\"word-wrap\\\":\\\"none\\\",\\\"svg\\\":{\\\"tag\\\":\\\"text\\\",\\\"attrs\\\":{\\\"x\\\":297.7,\\\"y\\\":150.3,\\\"xml:space\\\":\\\"preserve\\\",\\\"kerning\\\":\\\"auto\\\",\\\"fill\\\":\\\"#000000\\\",\\\"fill-opacity\\\":\\\"1\\\",\\\"font-size\\\":\\\"36\\\",\\\"font-family\\\":\\\"Helvetica\\\",\\\"font-weight\\\":\\\"normal\\\",\\\"font-style\\\":\\\"normal\\\",\\\"text-anchor\\\":\\\"middle\\\",\\\"text-decoration\\\":\\\"none\\\",\\\"id\\\":\\\"goog_2086231649\\\"}}}SHAPE--->\"},\"translate\":{\"x\":0,\"y\":-45.3}},\"header\":{\"height\":46.3,\"svg\":{\"tag\":\"g\",\"content\":\"<!---SHAPE{\\\"type\\\":\\\"s-tblock\\\",\\\"id\\\":\\\"header\\\",\\\"display\\\":\\\"true\\\",\\\"desc\\\":null,\\\"multiple\\\":\\\"false\\\",\\\"valign\\\":\\\"\\\",\\\"line-height\\\":\\\"\\\",\\\"box\\\":{\\\"x\\\":160.6,\\\"y\\\":62.2,\\\"width\\\":274.1,\\\"height\\\":36},\\\"format\\\":{\\\"base\\\":\\\"Header#{value}\\\",\\\"type\\\":\\\"\\\"},\\\"value\\\":\\\"\\\",\\\"ref-id\\\":\\\"\\\",\\\"overflow\\\":\\\"\\\",\\\"word-wrap\\\":\\\"none\\\",\\\"svg\\\":{\\\"tag\\\":\\\"text\\\",\\\"attrs\\\":{\\\"x\\\":297.7,\\\"y\\\":88,\\\"xml:space\\\":\\\"preserve\\\",\\\"kerning\\\":\\\"auto\\\",\\\"fill\\\":\\\"#000000\\\",\\\"fill-opacity\\\":\\\"1\\\",\\\"font-size\\\":\\\"36\\\",\\\"font-family\\\":\\\"Helvetica\\\",\\\"font-weight\\\":\\\"normal\\\",\\\"font-style\\\":\\\"normal\\\",\\\"text-decoration\\\":\\\"none\\\",\\\"text-anchor\\\":\\\"middle\\\",\\\"id\\\":\\\"goog_2086231648\\\"}}}SHAPE--->\"},\"translate\":{\"x\":0,\"y\":-35}},\"header-enabled\":\"true\",\"svg\":{\"tag\":\"g\",\"attrs\":{}},\"content-height\":273.8,\"page-break\":\"false\"}SHAPE--><!--LAYOUT<g xmlns=\"http://www.w3.org/2000/svg\" class=\"s-list\" x-id=\"default\" x-header-enabled=\"true\" x-page-footer-enabled=\"false\" x-footer-enabled=\"false\" x-changing-page=\"false\" x-display=\"true\" width=\"555.2\" height=\"320.1\" x=\"20\" y=\"22\" id=\"goog_2086231650\"><g class=\"s-list-header\" transform=\"translate(0,-35) rotate(0 0 0)\" x-top=\"22\" x-height=\"46.3\"><g class=\"s-tblock\" x-format-type=\"\" x-value=\"\" x-format-base=\"Header#{value}\" x-ref-id=\"\" kerning=\"auto\" x-display=\"true\" x-multiple=\"false\" x-id=\"header\" x-width=\"274.1\" x-height=\"36\" x-left=\"160.6\" x-top=\"62.2\" fill=\"#000000\" fill-opacity=\"1\" font-size=\"36\" font-family=\"Helvetica\" font-weight=\"normal\" font-style=\"normal\" text-decoration=\"none\" text-anchor=\"middle\" id=\"goog_2086231648\"><rect class=\"s-tblock-box\" stroke=\"#7C4007\" fill=\"#f4e2c4\" stroke-width=\"0.28\" fill-opacity=\"0.8\" width=\"274.1\" height=\"36\" x=\"160.6\" y=\"62.2\"/><text class=\"s-tblock-id\" font-size=\"11\" font-family=\"Helvetica\" font-weight=\"normal\" font-style=\"normal\" text-decoration=\"none\" text-anchor=\"start\" kerning=\"auto\" stroke=\"none\" fill=\"#7C4007\" fill-opacity=\"1\" x=\"162.6\" y=\"73.2\">header</text></g></g><g class=\"s-list-detail\" transform=\"translate(0,-45.3) rotate(0 0 0)\" x-top=\"68.3\" x-height=\"57.7\"><g class=\"s-tblock\" x-format-type=\"\" x-value=\"\" x-format-base=\"Detail#{value}\" x-ref-id=\"\" kerning=\"auto\" x-display=\"true\" x-multiple=\"false\" x-id=\"detail\" fill=\"#000000\" fill-opacity=\"1\" font-size=\"36\" font-family=\"Helvetica\" font-weight=\"normal\" font-style=\"normal\" text-anchor=\"middle\" text-decoration=\"none\" x-width=\"172.5\" x-height=\"36\" x-left=\"211.4\" x-top=\"124.5\" id=\"goog_2086231649\"><rect class=\"s-tblock-box\" stroke=\"#7C4007\" fill=\"#f4e2c4\" stroke-width=\"0.28\" fill-opacity=\"0.8\" width=\"172.5\" height=\"36\" x=\"211.4\" y=\"124.5\"/><text class=\"s-tblock-id\" font-size=\"11\" font-family=\"Helvetica\" font-weight=\"normal\" font-style=\"normal\" text-decoration=\"none\" text-anchor=\"start\" kerning=\"auto\" stroke=\"none\" fill=\"#7C4007\" fill-opacity=\"1\" x=\"213.4\" y=\"135.5\">detail</text></g></g><g class=\"s-list-page-footer\" transform=\"translate(0,-44.2) rotate(0 0 0)\" x-top=\"126\" x-height=\"0\" display=\"none\"/><g class=\"s-list-footer\" transform=\"translate(0,-86.7) rotate(0 0 0)\" x-top=\"126\" x-height=\"0\" display=\"none\"/><text class=\"s-list-id\" font-size=\"11\" font-family=\"Helvetica\" font-weight=\"normal\" font-style=\"normal\" text-anchor=\"start\" stroke=\"none\" fill=\"#7C4007\" fill-opacity=\"1\" x=\"22\" y=\"32.8\">default</text><rect stroke-dasharray=\"5\" stroke=\"#BBBBBB\" stroke-width=\"1\" fill=\"#FFFFFF\" fill-opacity=\"0\" class=\"s-list-face\" width=\"555.2\" height=\"320.1\" x=\"20\" y=\"22\"/></g>LAYOUT--></g></svg>","state":{"layout-guide":[]}}
1
+ {
2
+ "version": "0.9.0",
3
+ "items": [
4
+ {
5
+ "id": "default",
6
+ "type": "list",
7
+ "display": true,
8
+ "description": "",
9
+ "x": 20,
10
+ "y": 22,
11
+ "width": 555.2,
12
+ "height": 320.1,
13
+ "header": {
14
+ "enabled": true,
15
+ "height": 46.3,
16
+ "translate": {
17
+ "x": 0,
18
+ "y": -35
19
+ },
20
+ "items": [
21
+ {
22
+ "id": "header",
23
+ "type": "text-block",
24
+ "display": true,
25
+ "description": "",
26
+ "x": 160.6,
27
+ "y": 62,
28
+ "width": 274.1,
29
+ "height": 36,
30
+ "style": {
31
+ "font-family": [
32
+ "Helvetica"
33
+ ],
34
+ "font-size": 36,
35
+ "color": "#000000",
36
+ "text-align": "center",
37
+ "vertical-align": "top",
38
+ "line-height": "",
39
+ "line-height-ratio": "",
40
+ "letter-spacing": "",
41
+ "font-style": [],
42
+ "overflow": "truncate",
43
+ "word-wrap": "break-word"
44
+ },
45
+ "reference-id": "",
46
+ "value": "",
47
+ "multiple-line": false,
48
+ "format": {
49
+ "base": "Header#{value}",
50
+ "type": ""
51
+ }
52
+ }
53
+ ]
54
+ },
55
+ "detail": {
56
+ "height": 57.7,
57
+ "translate": {
58
+ "x": 0,
59
+ "y": -45.3
60
+ },
61
+ "items": [
62
+ {
63
+ "id": "detail",
64
+ "type": "text-block",
65
+ "display": true,
66
+ "description": "",
67
+ "x": 211.4,
68
+ "y": 124.5,
69
+ "width": 172.5,
70
+ "height": 36,
71
+ "style": {
72
+ "font-family": [
73
+ "Helvetica"
74
+ ],
75
+ "font-size": 36,
76
+ "color": "#000000",
77
+ "text-align": "center",
78
+ "vertical-align": "top",
79
+ "line-height": "",
80
+ "line-height-ratio": "",
81
+ "letter-spacing": "",
82
+ "font-style": [],
83
+ "overflow": "truncate",
84
+ "word-wrap": "break-word"
85
+ },
86
+ "reference-id": "",
87
+ "value": "",
88
+ "multiple-line": false,
89
+ "format": {
90
+ "base": "Detail#{value}",
91
+ "type": ""
92
+ }
93
+ }
94
+ ]
95
+ },
96
+ "page-footer": {
97
+ "enabled": false,
98
+ "height": 0,
99
+ "translate": {
100
+ "x": 0,
101
+ "y": -44.2
102
+ },
103
+ "items": []
104
+ },
105
+ "footer": {
106
+ "enabled": false,
107
+ "height": 0,
108
+ "translate": {
109
+ "x": 0,
110
+ "y": -86.7
111
+ },
112
+ "items": []
113
+ },
114
+ "content-height": 273.8,
115
+ "auto-page-break": false
116
+ }
117
+ ],
118
+ "state": {
119
+ "layout-guides": []
120
+ },
121
+ "title": "List Manual Generation",
122
+ "report": {
123
+ "paper-type": "A4",
124
+ "orientation": "portrait",
125
+ "margin": [
126
+ 20,
127
+ 20,
128
+ 20,
129
+ 20
130
+ ]
131
+ }
132
+ }