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
@@ -24,8 +24,10 @@ class Thinreports::TestConfig < Minitest::Test
24
24
  config = Thinreports::Configuration.new
25
25
  assert_equal false, config.convert_palleted_transparency_png
26
26
 
27
- config.convert_palleted_transparency_png = true
28
- assert_equal true, config.convert_palleted_transparency_png
27
+ assert_deprecated do
28
+ config.convert_palleted_transparency_png = true
29
+ assert_equal true, config.convert_palleted_transparency_png
30
+ end
29
31
  end
30
32
 
31
33
  def test_fallback_fonts
@@ -7,6 +7,6 @@ class Thinreports::TestLayout < Minitest::Test
7
7
 
8
8
  def test_new
9
9
  assert_instance_of Thinreports::Layout::Base,
10
- Thinreports::Layout.new(data_file('layout_text1.tlf'))
10
+ Thinreports::Layout.new(layout_file.path)
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thinreports
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matsukei Co.,Ltd.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-07 00:00:00.000000000 Z
11
+ date: 2016-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: prawn
@@ -115,6 +115,7 @@ extensions: []
115
115
  extra_rdoc_files:
116
116
  - README.md
117
117
  files:
118
+ - ".github/CONTRIBUTING.md"
118
119
  - ".gitignore"
119
120
  - ".travis.yml"
120
121
  - CHANGELOG.md
@@ -139,8 +140,7 @@ files:
139
140
  - examples/hidden_shapes/hidden_shapes.rb
140
141
  - examples/hidden_shapes/hidden_shapes.tlf
141
142
  - examples/list_events/list_events.rb
142
- - examples/list_events/list_events_0_7_7.tlf
143
- - examples/list_events/list_events_0_8.tlf
143
+ - examples/list_events/list_events.tlf
144
144
  - examples/list_manual_generation/list_manual_generation.rb
145
145
  - examples/list_manual_generation/list_manual_generation.tlf
146
146
  - examples/list_page_number/list_page_number.rb
@@ -176,9 +176,7 @@ files:
176
176
  - lib/thinreports.rb
177
177
  - lib/thinreports/config.rb
178
178
  - lib/thinreports/core/errors.rb
179
- - lib/thinreports/core/events.rb
180
179
  - lib/thinreports/core/format/base.rb
181
- - lib/thinreports/core/format/builder.rb
182
180
  - lib/thinreports/core/shape.rb
183
181
  - lib/thinreports/core/shape/base.rb
184
182
  - lib/thinreports/core/shape/base/interface.rb
@@ -195,8 +193,6 @@ files:
195
193
  - lib/thinreports/core/shape/image_block/interface.rb
196
194
  - lib/thinreports/core/shape/image_block/internal.rb
197
195
  - lib/thinreports/core/shape/list.rb
198
- - lib/thinreports/core/shape/list/configuration.rb
199
- - lib/thinreports/core/shape/list/events.rb
200
196
  - lib/thinreports/core/shape/list/format.rb
201
197
  - lib/thinreports/core/shape/list/manager.rb
202
198
  - lib/thinreports/core/shape/list/page.rb
@@ -204,7 +200,6 @@ files:
204
200
  - lib/thinreports/core/shape/list/section_format.rb
205
201
  - lib/thinreports/core/shape/list/section_interface.rb
206
202
  - lib/thinreports/core/shape/list/section_internal.rb
207
- - lib/thinreports/core/shape/list/store.rb
208
203
  - lib/thinreports/core/shape/manager.rb
209
204
  - lib/thinreports/core/shape/manager/format.rb
210
205
  - lib/thinreports/core/shape/manager/internal.rb
@@ -236,9 +231,9 @@ files:
236
231
  - lib/thinreports/generator/base.rb
237
232
  - lib/thinreports/generator/configuration.rb
238
233
  - lib/thinreports/generator/pdf.rb
239
- - lib/thinreports/generator/pdf/configuration.rb
240
234
  - lib/thinreports/generator/pdf/document.rb
241
235
  - lib/thinreports/generator/pdf/document/draw_shape.rb
236
+ - lib/thinreports/generator/pdf/document/draw_template_items.rb
242
237
  - lib/thinreports/generator/pdf/document/font.rb
243
238
  - lib/thinreports/generator/pdf/document/graphics.rb
244
239
  - lib/thinreports/generator/pdf/document/graphics/attributes.rb
@@ -247,7 +242,6 @@ files:
247
242
  - lib/thinreports/generator/pdf/document/graphics/text.rb
248
243
  - lib/thinreports/generator/pdf/document/page.rb
249
244
  - lib/thinreports/generator/pdf/document/parse_color.rb
250
- - lib/thinreports/generator/pdf/document/parse_svg.rb
251
245
  - lib/thinreports/generator/pdf/drawer/base.rb
252
246
  - lib/thinreports/generator/pdf/drawer/list.rb
253
247
  - lib/thinreports/generator/pdf/drawer/list_section.rb
@@ -255,8 +249,8 @@ files:
255
249
  - lib/thinreports/generator/pdf/prawn_ext.rb
256
250
  - lib/thinreports/layout.rb
257
251
  - lib/thinreports/layout/base.rb
258
- - lib/thinreports/layout/configuration.rb
259
252
  - lib/thinreports/layout/format.rb
253
+ - lib/thinreports/layout/legacy_schema.rb
260
254
  - lib/thinreports/layout/version.rb
261
255
  - lib/thinreports/report.rb
262
256
  - lib/thinreports/report/base.rb
@@ -270,27 +264,20 @@ files:
270
264
  - test/data/image_normal_jpg_noext
271
265
  - test/data/image_normal_png_noext
272
266
  - test/data/image_pallete_based.png
273
- - test/data/layout_block.tlf
274
- - test/data/layout_list.tlf
275
- - test/data/layout_list_noheader.tlf
276
- - test/data/layout_text1.tlf
277
- - test/data/layout_text2.tlf
267
+ - test/data/legacy_layout/all-items.tlf
268
+ - test/schema_helper.rb
278
269
  - test/test_helper.rb
279
270
  - test/tmp/.gitkeep
280
271
  - test/unit/core/format/test_base.rb
281
- - test/unit/core/format/test_builder.rb
282
272
  - test/unit/core/shape/base/test_internal.rb
283
- - test/unit/core/shape/basic/test_basic_format.rb
284
- - test/unit/core/shape/basic/test_basic_interface.rb
285
- - test/unit/core/shape/basic/test_basic_internal.rb
273
+ - test/unit/core/shape/basic/test_block_format.rb
274
+ - test/unit/core/shape/basic/test_block_interface.rb
275
+ - test/unit/core/shape/basic/test_block_internal.rb
286
276
  - test/unit/core/shape/basic/test_format.rb
287
277
  - test/unit/core/shape/basic/test_interface.rb
288
278
  - test/unit/core/shape/basic/test_internal.rb
289
- - test/unit/core/shape/image_block/test_format.rb
290
279
  - test/unit/core/shape/image_block/test_interface.rb
291
280
  - test/unit/core/shape/image_block/test_internal.rb
292
- - test/unit/core/shape/list/test_configuration.rb
293
- - test/unit/core/shape/list/test_events.rb
294
281
  - test/unit/core/shape/list/test_format.rb
295
282
  - test/unit/core/shape/list/test_manager.rb
296
283
  - test/unit/core/shape/list/test_page.rb
@@ -298,7 +285,6 @@ files:
298
285
  - test/unit/core/shape/list/test_section_format.rb
299
286
  - test/unit/core/shape/list/test_section_interface.rb
300
287
  - test/unit/core/shape/list/test_section_internal.rb
301
- - test/unit/core/shape/list/test_store.rb
302
288
  - test/unit/core/shape/manager/test_format.rb
303
289
  - test/unit/core/shape/manager/test_internal.rb
304
290
  - test/unit/core/shape/manager/test_target.rb
@@ -319,28 +305,25 @@ files:
319
305
  - test/unit/core/shape/text_block/test_formatter.rb
320
306
  - test/unit/core/shape/text_block/test_interface.rb
321
307
  - test/unit/core/shape/text_block/test_internal.rb
322
- - test/unit/core/test_events.rb
323
308
  - test/unit/core/test_shape.rb
324
309
  - test/unit/core/test_utils.rb
325
310
  - test/unit/generator/pdf/document/graphics/test_attributes.rb
311
+ - test/unit/generator/pdf/document/graphics/test_basic.rb
326
312
  - test/unit/generator/pdf/document/graphics/test_image.rb
327
313
  - test/unit/generator/pdf/document/graphics/test_text.rb
328
- - test/unit/generator/pdf/document/test_draw_shape.rb
329
314
  - test/unit/generator/pdf/document/test_font.rb
330
315
  - test/unit/generator/pdf/document/test_graphics.rb
331
316
  - test/unit/generator/pdf/document/test_page.rb
332
317
  - test/unit/generator/pdf/document/test_parse_color.rb
333
- - test/unit/generator/pdf/test_configuration.rb
334
318
  - test/unit/generator/pdf/test_document.rb
335
319
  - test/unit/generator/test_base.rb
336
320
  - test/unit/generator/test_configuration.rb
337
321
  - test/unit/generator/test_pdf.rb
338
322
  - test/unit/layout/test_base.rb
339
- - test/unit/layout/test_configuration.rb
340
323
  - test/unit/layout/test_format.rb
324
+ - test/unit/layout/test_legacy_schema.rb
341
325
  - test/unit/layout/test_version.rb
342
326
  - test/unit/report/test_base.rb
343
- - test/unit/report/test_events.rb
344
327
  - test/unit/report/test_internal.rb
345
328
  - test/unit/test_config.rb
346
329
  - test/unit/test_layout.rb
@@ -379,27 +362,20 @@ test_files:
379
362
  - test/data/image_normal_jpg_noext
380
363
  - test/data/image_normal_png_noext
381
364
  - test/data/image_pallete_based.png
382
- - test/data/layout_block.tlf
383
- - test/data/layout_list.tlf
384
- - test/data/layout_list_noheader.tlf
385
- - test/data/layout_text1.tlf
386
- - test/data/layout_text2.tlf
365
+ - test/data/legacy_layout/all-items.tlf
366
+ - test/schema_helper.rb
387
367
  - test/test_helper.rb
388
368
  - test/tmp/.gitkeep
389
369
  - test/unit/core/format/test_base.rb
390
- - test/unit/core/format/test_builder.rb
391
370
  - test/unit/core/shape/base/test_internal.rb
392
- - test/unit/core/shape/basic/test_basic_format.rb
393
- - test/unit/core/shape/basic/test_basic_interface.rb
394
- - test/unit/core/shape/basic/test_basic_internal.rb
371
+ - test/unit/core/shape/basic/test_block_format.rb
372
+ - test/unit/core/shape/basic/test_block_interface.rb
373
+ - test/unit/core/shape/basic/test_block_internal.rb
395
374
  - test/unit/core/shape/basic/test_format.rb
396
375
  - test/unit/core/shape/basic/test_interface.rb
397
376
  - test/unit/core/shape/basic/test_internal.rb
398
- - test/unit/core/shape/image_block/test_format.rb
399
377
  - test/unit/core/shape/image_block/test_interface.rb
400
378
  - test/unit/core/shape/image_block/test_internal.rb
401
- - test/unit/core/shape/list/test_configuration.rb
402
- - test/unit/core/shape/list/test_events.rb
403
379
  - test/unit/core/shape/list/test_format.rb
404
380
  - test/unit/core/shape/list/test_manager.rb
405
381
  - test/unit/core/shape/list/test_page.rb
@@ -407,7 +383,6 @@ test_files:
407
383
  - test/unit/core/shape/list/test_section_format.rb
408
384
  - test/unit/core/shape/list/test_section_interface.rb
409
385
  - test/unit/core/shape/list/test_section_internal.rb
410
- - test/unit/core/shape/list/test_store.rb
411
386
  - test/unit/core/shape/manager/test_format.rb
412
387
  - test/unit/core/shape/manager/test_internal.rb
413
388
  - test/unit/core/shape/manager/test_target.rb
@@ -428,28 +403,25 @@ test_files:
428
403
  - test/unit/core/shape/text_block/test_formatter.rb
429
404
  - test/unit/core/shape/text_block/test_interface.rb
430
405
  - test/unit/core/shape/text_block/test_internal.rb
431
- - test/unit/core/test_events.rb
432
406
  - test/unit/core/test_shape.rb
433
407
  - test/unit/core/test_utils.rb
434
408
  - test/unit/generator/pdf/document/graphics/test_attributes.rb
409
+ - test/unit/generator/pdf/document/graphics/test_basic.rb
435
410
  - test/unit/generator/pdf/document/graphics/test_image.rb
436
411
  - test/unit/generator/pdf/document/graphics/test_text.rb
437
- - test/unit/generator/pdf/document/test_draw_shape.rb
438
412
  - test/unit/generator/pdf/document/test_font.rb
439
413
  - test/unit/generator/pdf/document/test_graphics.rb
440
414
  - test/unit/generator/pdf/document/test_page.rb
441
415
  - test/unit/generator/pdf/document/test_parse_color.rb
442
- - test/unit/generator/pdf/test_configuration.rb
443
416
  - test/unit/generator/pdf/test_document.rb
444
417
  - test/unit/generator/test_base.rb
445
418
  - test/unit/generator/test_configuration.rb
446
419
  - test/unit/generator/test_pdf.rb
447
420
  - test/unit/layout/test_base.rb
448
- - test/unit/layout/test_configuration.rb
449
421
  - test/unit/layout/test_format.rb
422
+ - test/unit/layout/test_legacy_schema.rb
450
423
  - test/unit/layout/test_version.rb
451
424
  - test/unit/report/test_base.rb
452
- - test/unit/report/test_events.rb
453
425
  - test/unit/report/test_internal.rb
454
426
  - test/unit/test_config.rb
455
427
  - test/unit/test_layout.rb
@@ -1 +0,0 @@
1
- {"version":"0.7.7.2","finger-print":-723035831,"config":{"title":"List Events","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\":{\"height\":50,\"svg\":{\"tag\":\"g\",\"content\":\"<line xmlns=\\\"http://www.w3.org/2000/svg\\\" stroke=\\\"#000000\\\" stroke-width=\\\"1\\\" fill=\\\"none\\\" class=\\\"s-line\\\" x-display=\\\"true\\\" x-stroke-type=\\\"solid\\\" stroke-dasharray=\\\"none\\\" x-id=\\\"\\\" x2=\\\"575.2\\\" y1=\\\"421.5\\\" y2=\\\"421.5\\\" x1=\\\"20\\\" id=\\\"goog_2086231640\\\"/><!---SHAPE{\\\"type\\\":\\\"s-tblock\\\",\\\"id\\\":\\\"event_name\\\",\\\"display\\\":\\\"true\\\",\\\"desc\\\":null,\\\"multiple\\\":\\\"false\\\",\\\"valign\\\":\\\"\\\",\\\"line-height\\\":\\\"\\\",\\\"box\\\":{\\\"x\\\":181.1,\\\"y\\\":387.5,\\\"width\\\":251.3,\\\"height\\\":18},\\\"inline-format\\\":\\\"false\\\",\\\"format\\\":{\\\"base\\\":\\\"{value} event.\\\",\\\"type\\\":\\\"\\\"},\\\"value\\\":\\\"\\\",\\\"ref-id\\\":\\\"\\\",\\\"overflow\\\":\\\"\\\",\\\"word-wrap\\\":\\\"none\\\",\\\"svg\\\":{\\\"tag\\\":\\\"text\\\",\\\"attrs\\\":{\\\"x\\\":181.1,\\\"y\\\":401.5,\\\"xml:space\\\":\\\"preserve\\\",\\\"kerning\\\":\\\"auto\\\",\\\"fill\\\":\\\"#000000\\\",\\\"fill-opacity\\\":\\\"1\\\",\\\"font-size\\\":\\\"18\\\",\\\"font-family\\\":\\\"Helvetica\\\",\\\"font-weight\\\":\\\"normal\\\",\\\"font-style\\\":\\\"normal\\\",\\\"text-decoration\\\":\\\"none\\\",\\\"text-anchor\\\":\\\"start\\\",\\\"id\\\":\\\"goog_2086231641\\\"}}}SHAPE---><g xmlns=\\\"http://www.w3.org/2000/svg\\\" class=\\\"s-text\\\" stroke-width=\\\"0\\\" fill=\\\"#000000\\\" fill-opacity=\\\"1\\\" kerning=\\\"auto\\\" x-display=\\\"true\\\" x-id=\\\"\\\" stroke=\\\"none\\\" font-weight=\\\"normal\\\" font-style=\\\"normal\\\" font-family=\\\"Helvetica\\\" font-size=\\\"18\\\" text-anchor=\\\"middle\\\" text-decoration=\\\"none\\\" x-width=\\\"27.5\\\" x-height=\\\"20\\\" x-left=\\\"153.6\\\" x-top=\\\"386.5\\\" id=\\\"goog_2086231642\\\" x-inline-format=\\\"false\\\"><rect class=\\\"s-text-box\\\" stroke=\\\"none\\\" fill=\\\"#000000\\\" fill-opacity=\\\"0.001\\\" width=\\\"27.5\\\" height=\\\"20\\\" x=\\\"153.6\\\" y=\\\"386.5\\\"/><text class=\\\"s-text-l0\\\" xml:space=\\\"preserve\\\" stroke=\\\"none\\\" fill=\\\"inherit\\\" fill-opacity=\\\"1\\\" text-decoration=\\\"none\\\" x=\\\"167.4\\\" y=\\\"399.5\\\">By </text></g>\"},\"translate\":{\"x\":0,\"y\":-218.5}},\"footer-enabled\":\"true\",\"page-footer\":{\"height\":50,\"svg\":{\"tag\":\"g\",\"content\":\"<!---SHAPE{\\\"type\\\":\\\"s-tblock\\\",\\\"id\\\":\\\"event_name\\\",\\\"display\\\":\\\"true\\\",\\\"desc\\\":null,\\\"multiple\\\":\\\"false\\\",\\\"valign\\\":\\\"\\\",\\\"line-height\\\":\\\"\\\",\\\"box\\\":{\\\"x\\\":181.1,\\\"y\\\":330.9,\\\"width\\\":251.3,\\\"height\\\":18},\\\"inline-format\\\":\\\"false\\\",\\\"format\\\":{\\\"base\\\":\\\"{value} event.\\\",\\\"type\\\":\\\"\\\"},\\\"value\\\":\\\"\\\",\\\"ref-id\\\":\\\"\\\",\\\"overflow\\\":\\\"\\\",\\\"word-wrap\\\":\\\"none\\\",\\\"svg\\\":{\\\"tag\\\":\\\"text\\\",\\\"attrs\\\":{\\\"x\\\":181.1,\\\"y\\\":344.9,\\\"xml:space\\\":\\\"preserve\\\",\\\"kerning\\\":\\\"auto\\\",\\\"fill\\\":\\\"#000000\\\",\\\"fill-opacity\\\":\\\"1\\\",\\\"font-size\\\":\\\"18\\\",\\\"font-family\\\":\\\"Helvetica\\\",\\\"font-weight\\\":\\\"normal\\\",\\\"font-style\\\":\\\"normal\\\",\\\"text-anchor\\\":\\\"start\\\",\\\"text-decoration\\\":\\\"none\\\",\\\"id\\\":\\\"goog_2086231637\\\"}}}SHAPE---><line xmlns=\\\"http://www.w3.org/2000/svg\\\" stroke=\\\"#000000\\\" stroke-width=\\\"1\\\" fill=\\\"none\\\" class=\\\"s-line\\\" x-display=\\\"true\\\" x-stroke-type=\\\"solid\\\" stroke-dasharray=\\\"none\\\" x-id=\\\"\\\" x2=\\\"575.2\\\" y1=\\\"364.9\\\" y2=\\\"364.9\\\" x1=\\\"20\\\" id=\\\"goog_2086231638\\\"/><g xmlns=\\\"http://www.w3.org/2000/svg\\\" class=\\\"s-text\\\" stroke-width=\\\"0\\\" fill=\\\"#000000\\\" fill-opacity=\\\"1\\\" kerning=\\\"auto\\\" x-display=\\\"true\\\" x-id=\\\"\\\" font-size=\\\"18\\\" font-family=\\\"Helvetica\\\" font-weight=\\\"normal\\\" font-style=\\\"normal\\\" text-anchor=\\\"middle\\\" text-decoration=\\\"none\\\" x-width=\\\"27.5\\\" x-height=\\\"20\\\" x-left=\\\"153.6\\\" x-top=\\\"329.9\\\" id=\\\"goog_2086231639\\\" x-inline-format=\\\"false\\\"><rect class=\\\"s-text-box\\\" stroke=\\\"none\\\" fill=\\\"#000000\\\" fill-opacity=\\\"0.001\\\" width=\\\"27.5\\\" height=\\\"20\\\" x=\\\"153.6\\\" y=\\\"329.9\\\"/><text class=\\\"s-text-l0\\\" xml:space=\\\"preserve\\\" stroke=\\\"none\\\" fill=\\\"inherit\\\" fill-opacity=\\\"1\\\" text-decoration=\\\"none\\\" x=\\\"167.4\\\" y=\\\"342.9\\\">By </text></g>\"},\"translate\":{\"x\":0,\"y\":-161.9}},\"page-footer-enabled\":\"true\",\"detail\":{\"height\":50,\"svg\":{\"tag\":\"g\",\"content\":\"<!---SHAPE{\\\"type\\\":\\\"s-tblock\\\",\\\"id\\\":\\\"row_name\\\",\\\"display\\\":\\\"true\\\",\\\"desc\\\":null,\\\"multiple\\\":\\\"false\\\",\\\"valign\\\":\\\"\\\",\\\"line-height\\\":\\\"\\\",\\\"box\\\":{\\\"x\\\":37,\\\"y\\\":255.5,\\\"width\\\":521.2,\\\"height\\\":18},\\\"inline-format\\\":\\\"false\\\",\\\"format\\\":{\\\"base\\\":\\\"List Detail #{value}\\\",\\\"type\\\":\\\"\\\"},\\\"value\\\":\\\"\\\",\\\"ref-id\\\":\\\"\\\",\\\"overflow\\\":\\\"\\\",\\\"word-wrap\\\":\\\"none\\\",\\\"svg\\\":{\\\"tag\\\":\\\"text\\\",\\\"attrs\\\":{\\\"x\\\":297.6,\\\"y\\\":269.5,\\\"xml:space\\\":\\\"preserve\\\",\\\"kerning\\\":\\\"auto\\\",\\\"fill\\\":\\\"#000000\\\",\\\"fill-opacity\\\":\\\"1\\\",\\\"font-size\\\":\\\"18\\\",\\\"font-family\\\":\\\"Helvetica\\\",\\\"font-weight\\\":\\\"normal\\\",\\\"font-style\\\":\\\"normal\\\",\\\"text-decoration\\\":\\\"none\\\",\\\"text-anchor\\\":\\\"middle\\\",\\\"id\\\":\\\"goog_2086231635\\\"}}}SHAPE---><line xmlns=\\\"http://www.w3.org/2000/svg\\\" stroke=\\\"#000000\\\" stroke-width=\\\"1\\\" fill=\\\"none\\\" class=\\\"s-line\\\" x-display=\\\"true\\\" x-stroke-type=\\\"solid\\\" stroke-dasharray=\\\"none\\\" x-id=\\\"\\\" x2=\\\"575.2\\\" y1=\\\"289.5\\\" y2=\\\"289.5\\\" x1=\\\"20\\\" id=\\\"goog_2086231636\\\"/>\"},\"translate\":{\"x\":0,\"y\":-86.5}},\"header\":{\"height\":50,\"svg\":{\"tag\":\"g\",\"content\":\"<line xmlns=\\\"http://www.w3.org/2000/svg\\\" stroke=\\\"#000000\\\" stroke-width=\\\"1\\\" fill=\\\"none\\\" class=\\\"s-line\\\" x-display=\\\"true\\\" x-stroke-type=\\\"solid\\\" stroke-dasharray=\\\"none\\\" x-id=\\\"\\\" x1=\\\"20\\\" x2=\\\"575.2\\\" y1=\\\"214.1\\\" y2=\\\"214.1\\\" id=\\\"goog_2086231632\\\"/><!---SHAPE{\\\"type\\\":\\\"s-tblock\\\",\\\"id\\\":\\\"event_name\\\",\\\"display\\\":\\\"true\\\",\\\"desc\\\":null,\\\"multiple\\\":\\\"false\\\",\\\"valign\\\":\\\"\\\",\\\"line-height\\\":\\\"\\\",\\\"box\\\":{\\\"x\\\":172,\\\"y\\\":180.1,\\\"width\\\":251.3,\\\"height\\\":18},\\\"inline-format\\\":\\\"false\\\",\\\"format\\\":{\\\"base\\\":\\\"{value} event.\\\",\\\"type\\\":\\\"\\\"},\\\"value\\\":\\\"\\\",\\\"ref-id\\\":\\\"\\\",\\\"overflow\\\":\\\"\\\",\\\"word-wrap\\\":\\\"none\\\",\\\"svg\\\":{\\\"tag\\\":\\\"text\\\",\\\"attrs\\\":{\\\"x\\\":297.7,\\\"y\\\":194.1,\\\"xml:space\\\":\\\"preserve\\\",\\\"kerning\\\":\\\"auto\\\",\\\"fill\\\":\\\"#000000\\\",\\\"fill-opacity\\\":\\\"1\\\",\\\"font-size\\\":\\\"18\\\",\\\"font-family\\\":\\\"Helvetica\\\",\\\"font-weight\\\":\\\"normal\\\",\\\"font-style\\\":\\\"normal\\\",\\\"text-decoration\\\":\\\"none\\\",\\\"text-anchor\\\":\\\"middle\\\",\\\"id\\\":\\\"goog_2086231633\\\"}}}SHAPE--->\"},\"translate\":{\"x\":0,\"y\":-61.1}},\"header-enabled\":\"true\",\"svg\":{\"tag\":\"g\",\"attrs\":{}},\"content-height\":250,\"page-break\":\"true\"}SHAPE--><!--LAYOUT<g xmlns=\"http://www.w3.org/2000/svg\" class=\"s-list\" x-id=\"default\" x-header-enabled=\"true\" x-page-footer-enabled=\"true\" x-footer-enabled=\"true\" x-changing-page=\"true\" x-display=\"true\" width=\"555.2\" height=\"300\" x=\"20\" y=\"103\" id=\"goog_2086231643\"><g class=\"s-list-header\" transform=\"translate(0,-61.1) rotate(0 0 0)\" x-top=\"103\" x-height=\"50\"><line stroke=\"#000000\" stroke-width=\"1\" fill=\"none\" class=\"s-line\" x-display=\"true\" x-stroke-type=\"solid\" stroke-dasharray=\"none\" x-id=\"\" x1=\"20\" x2=\"575.2\" y1=\"214.1\" y2=\"214.1\" id=\"goog_2086231632\"/><g class=\"s-tblock\" x-format-type=\"\" x-value=\"\" x-format-base=\"{value} event.\" x-ref-id=\"\" kerning=\"auto\" x-display=\"true\" x-multiple=\"false\" x-id=\"event_name\" x-width=\"251.3\" x-height=\"18\" x-left=\"172\" x-top=\"180.1\" fill=\"#000000\" fill-opacity=\"1\" font-size=\"18\" font-family=\"Helvetica\" font-weight=\"normal\" font-style=\"normal\" text-decoration=\"none\" text-anchor=\"middle\" id=\"goog_2086231633\" x-inline-format=\"false\"><rect class=\"s-tblock-box\" stroke=\"#7C4007\" fill=\"#f4e2c4\" stroke-width=\"0.28\" fill-opacity=\"0.8\" width=\"251.3\" height=\"18\" x=\"172\" y=\"180.1\"/><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=\"174\" y=\"191.1\">event_name</text></g></g><g class=\"s-list-detail\" transform=\"translate(0,-86.5) rotate(0 0 0)\" x-top=\"153\" x-height=\"50\"><g class=\"s-tblock\" x-format-type=\"\" x-value=\"\" x-format-base=\"List Detail #{value}\" x-ref-id=\"\" kerning=\"auto\" x-display=\"true\" x-multiple=\"false\" x-id=\"row_name\" x-width=\"521.2\" x-height=\"18\" x-left=\"37\" x-top=\"255.5\" fill=\"#000000\" fill-opacity=\"1\" font-size=\"18\" font-family=\"Helvetica\" font-weight=\"normal\" font-style=\"normal\" text-decoration=\"none\" text-anchor=\"middle\" id=\"goog_2086231635\" x-inline-format=\"false\"><rect class=\"s-tblock-box\" stroke=\"#7C4007\" fill=\"#f4e2c4\" stroke-width=\"0.28\" fill-opacity=\"0.8\" width=\"521.2\" height=\"18\" x=\"37\" y=\"255.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=\"39\" y=\"266.5\">row_name</text></g><line stroke=\"#000000\" stroke-width=\"1\" fill=\"none\" class=\"s-line\" x-display=\"true\" x-stroke-type=\"solid\" stroke-dasharray=\"none\" x-id=\"\" x2=\"575.2\" y1=\"289.5\" y2=\"289.5\" x1=\"20\" id=\"goog_2086231636\"/></g><g class=\"s-list-page-footer\" transform=\"translate(0,-111.9) rotate(0 0 0)\" x-top=\"203\" x-height=\"50\"><g class=\"s-tblock\" x-format-type=\"\" x-value=\"\" x-format-base=\"{value} event.\" x-ref-id=\"\" kerning=\"auto\" x-display=\"true\" x-multiple=\"false\" x-id=\"event_name\" fill=\"#000000\" fill-opacity=\"1\" font-size=\"18\" font-family=\"Helvetica\" font-weight=\"normal\" font-style=\"normal\" text-anchor=\"start\" text-decoration=\"none\" x-width=\"251.3\" x-height=\"18\" x-left=\"181.1\" x-top=\"330.9\" id=\"goog_2086231637\" x-inline-format=\"false\"><rect class=\"s-tblock-box\" stroke=\"#7C4007\" fill=\"#f4e2c4\" stroke-width=\"0.28\" fill-opacity=\"0.8\" width=\"251.3\" height=\"18\" x=\"181.1\" y=\"330.9\"/><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=\"183.1\" y=\"341.9\">event_name</text></g><line stroke=\"#000000\" stroke-width=\"1\" fill=\"none\" class=\"s-line\" x-display=\"true\" x-stroke-type=\"solid\" stroke-dasharray=\"none\" x-id=\"\" x2=\"575.2\" y1=\"364.9\" y2=\"364.9\" x1=\"20\" id=\"goog_2086231638\"/><g class=\"s-text\" stroke-width=\"0\" fill=\"#000000\" fill-opacity=\"1\" kerning=\"auto\" x-display=\"true\" x-id=\"\" font-size=\"18\" font-family=\"Helvetica\" font-weight=\"normal\" font-style=\"normal\" text-anchor=\"middle\" text-decoration=\"none\" x-width=\"27.5\" x-height=\"20\" x-left=\"153.6\" x-top=\"329.9\" id=\"goog_2086231639\" x-inline-format=\"false\"><rect class=\"s-text-box\" stroke=\"none\" fill=\"#000000\" fill-opacity=\"0.001\" width=\"27.5\" height=\"20\" x=\"153.6\" y=\"329.9\"/><text class=\"s-text-l0\" xml:space=\"preserve\" stroke=\"none\" fill=\"inherit\" fill-opacity=\"1\" text-decoration=\"none\" x=\"167.4\" y=\"342.9\">By </text></g></g><g class=\"s-list-footer\" transform=\"translate(0,-118.5) rotate(0 0 0)\" x-top=\"253\" x-height=\"50\"><line stroke=\"#000000\" stroke-width=\"1\" fill=\"none\" class=\"s-line\" x-display=\"true\" x-stroke-type=\"solid\" stroke-dasharray=\"none\" x-id=\"\" x2=\"575.2\" y1=\"421.5\" y2=\"421.5\" x1=\"20\" id=\"goog_2086231640\"/><g class=\"s-tblock\" x-format-type=\"\" x-value=\"\" x-format-base=\"{value} event.\" x-ref-id=\"\" kerning=\"auto\" x-display=\"true\" x-multiple=\"false\" x-id=\"event_name\" x-width=\"251.3\" x-height=\"18\" x-left=\"181.1\" x-top=\"387.5\" fill=\"#000000\" fill-opacity=\"1\" font-size=\"18\" font-family=\"Helvetica\" font-weight=\"normal\" font-style=\"normal\" text-decoration=\"none\" text-anchor=\"start\" id=\"goog_2086231641\" x-inline-format=\"false\"><rect class=\"s-tblock-box\" stroke=\"#7C4007\" fill=\"#f4e2c4\" stroke-width=\"0.28\" fill-opacity=\"0.8\" width=\"251.3\" height=\"18\" x=\"181.1\" y=\"387.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=\"183.1\" y=\"398.5\">event_name</text></g><g class=\"s-text\" stroke-width=\"0\" fill=\"#000000\" fill-opacity=\"1\" kerning=\"auto\" x-display=\"true\" x-id=\"\" stroke=\"none\" font-weight=\"normal\" font-style=\"normal\" font-family=\"Helvetica\" font-size=\"18\" text-anchor=\"middle\" text-decoration=\"none\" x-width=\"27.5\" x-height=\"20\" x-left=\"153.6\" x-top=\"386.5\" id=\"goog_2086231642\" x-inline-format=\"false\"><rect class=\"s-text-box\" stroke=\"none\" fill=\"#000000\" fill-opacity=\"0.001\" width=\"27.5\" height=\"20\" x=\"153.6\" y=\"386.5\"/><text class=\"s-text-l0\" xml:space=\"preserve\" stroke=\"none\" fill=\"inherit\" fill-opacity=\"1\" text-decoration=\"none\" x=\"167.4\" y=\"399.5\">By </text></g></g><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=\"113.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=\"300\" x=\"20\" y=\"103\"/></g>LAYOUT--><rect stroke=\"#000000\" stroke-width=\"1\" fill=\"none\" fill-opacity=\"1\" class=\"s-rect\" x-display=\"true\" x-stroke-type=\"solid\" stroke-dasharray=\"none\" x-id=\"\" rx=\"0\" ry=\"0\" width=\"518.2\" height=\"75\" x=\"38.5\" y=\"427.2\" id=\"goog_2086231644\"/><g class=\"s-text\" stroke-width=\"0\" fill=\"#000000\" fill-opacity=\"1\" kerning=\"auto\" x-display=\"true\" x-id=\"\" font-size=\"26\" font-family=\"Times New Roman\" font-weight=\"normal\" font-style=\"normal\" text-anchor=\"middle\" text-decoration=\"none\" x-width=\"315.1\" x-height=\"48\" x-left=\"140.1\" x-top=\"31\" x-valign=\"center\" id=\"goog_2086231645\" x-inline-format=\"false\"><rect class=\"s-text-box\" stroke=\"none\" fill=\"#000000\" fill-opacity=\"0.001\" width=\"315.1\" height=\"48\" x=\"140.1\" y=\"31\"/><text class=\"s-text-l0\" xml:space=\"preserve\" stroke=\"none\" fill=\"inherit\" fill-opacity=\"1\" text-decoration=\"none\" x=\"297.7\" y=\"63.5\">List Events for 0.7.7 or lower</text></g><!--SHAPE{\"type\":\"s-tblock\",\"id\":\"event_name\",\"display\":\"true\",\"desc\":null,\"multiple\":\"false\",\"valign\":\"\",\"line-height\":\"\",\"box\":{\"x\":184.5,\"y\":456.2,\"width\":251.3,\"height\":18},\"inline-format\":\"false\",\"format\":{\"base\":\"{value} event.\",\"type\":\"\"},\"value\":\"\",\"ref-id\":\"\",\"overflow\":\"\",\"word-wrap\":\"none\",\"svg\":{\"tag\":\"text\",\"attrs\":{\"x\":184.5,\"y\":470.2,\"xml:space\":\"preserve\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"kerning\":\"auto\",\"fill\":\"#000000\",\"fill-opacity\":\"1\",\"font-size\":\"18\",\"font-family\":\"Helvetica\",\"font-weight\":\"normal\",\"font-style\":\"normal\",\"text-decoration\":\"none\",\"text-anchor\":\"start\",\"id\":\"goog_2086231646\"}}}SHAPE--><!--LAYOUT<g xmlns=\"http://www.w3.org/2000/svg\" class=\"s-tblock\" x-format-type=\"\" x-value=\"\" x-format-base=\"{value} event.\" x-ref-id=\"\" kerning=\"auto\" x-display=\"true\" x-multiple=\"false\" x-id=\"event_name\" x-width=\"251.3\" x-height=\"18\" x-left=\"184.5\" x-top=\"456.2\" fill=\"#000000\" fill-opacity=\"1\" font-size=\"18\" font-family=\"Helvetica\" font-weight=\"normal\" font-style=\"normal\" text-decoration=\"none\" text-anchor=\"start\" id=\"goog_2086231646\" x-inline-format=\"false\"><rect class=\"s-tblock-box\" stroke=\"#7C4007\" fill=\"#f4e2c4\" stroke-width=\"0.28\" fill-opacity=\"0.8\" width=\"251.3\" height=\"18\" x=\"184.5\" y=\"456.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=\"186.5\" y=\"467.2\">event_name</text></g>LAYOUT--><g class=\"s-text\" stroke-width=\"0\" fill=\"#000000\" fill-opacity=\"1\" kerning=\"auto\" x-display=\"true\" x-id=\"\" stroke=\"none\" font-weight=\"normal\" font-style=\"normal\" font-family=\"Helvetica\" font-size=\"18\" text-anchor=\"middle\" text-decoration=\"none\" x-width=\"27.5\" x-height=\"20\" x-left=\"157\" x-top=\"455.2\" id=\"goog_2086231647\" x-inline-format=\"false\"><rect class=\"s-text-box\" stroke=\"none\" fill=\"#000000\" fill-opacity=\"0.001\" width=\"27.5\" height=\"20\" x=\"157\" y=\"455.2\"/><text class=\"s-text-l0\" xml:space=\"preserve\" stroke=\"none\" fill=\"inherit\" fill-opacity=\"1\" text-decoration=\"none\" x=\"170.8\" y=\"468.2\">By </text></g></g></svg>","state":{"layout-guide":[]}}
@@ -1 +0,0 @@
1
- {"version":"0.7.7.2","finger-print":1198106336,"config":{"title":"List Events","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\":{\"height\":50,\"svg\":{\"tag\":\"g\",\"content\":\"<line xmlns=\\\"http://www.w3.org/2000/svg\\\" stroke=\\\"#000000\\\" stroke-width=\\\"1\\\" fill=\\\"none\\\" class=\\\"s-line\\\" x-display=\\\"true\\\" x-stroke-type=\\\"solid\\\" stroke-dasharray=\\\"none\\\" x-id=\\\"\\\" x2=\\\"575.2\\\" y1=\\\"421.5\\\" y2=\\\"421.5\\\" x1=\\\"20\\\" id=\\\"goog_2086231640\\\"/><!---SHAPE{\\\"type\\\":\\\"s-tblock\\\",\\\"id\\\":\\\"price\\\",\\\"display\\\":\\\"true\\\",\\\"desc\\\":null,\\\"multiple\\\":\\\"false\\\",\\\"valign\\\":\\\"\\\",\\\"line-height\\\":\\\"\\\",\\\"box\\\":{\\\"x\\\":169.2,\\\"y\\\":387.5,\\\"width\\\":249,\\\"height\\\":18},\\\"inline-format\\\":\\\"false\\\",\\\"format\\\":{\\\"base\\\":\\\"\\\",\\\"type\\\":\\\"number\\\",\\\"number\\\":{\\\"delimiter\\\":\\\",\\\",\\\"precision\\\":0}},\\\"value\\\":\\\"\\\",\\\"ref-id\\\":\\\"\\\",\\\"overflow\\\":\\\"\\\",\\\"word-wrap\\\":\\\"none\\\",\\\"svg\\\":{\\\"tag\\\":\\\"text\\\",\\\"attrs\\\":{\\\"x\\\":418.2,\\\"y\\\":401.5,\\\"xml:space\\\":\\\"preserve\\\",\\\"kerning\\\":\\\"auto\\\",\\\"fill\\\":\\\"#000000\\\",\\\"fill-opacity\\\":\\\"1\\\",\\\"font-size\\\":\\\"18\\\",\\\"font-family\\\":\\\"Helvetica\\\",\\\"font-weight\\\":\\\"normal\\\",\\\"font-style\\\":\\\"normal\\\",\\\"text-decoration\\\":\\\"none\\\",\\\"text-anchor\\\":\\\"end\\\",\\\"id\\\":\\\"goog_2086231641\\\"}}}SHAPE---><g xmlns=\\\"http://www.w3.org/2000/svg\\\" class=\\\"s-text\\\" stroke-width=\\\"0\\\" fill=\\\"#000000\\\" fill-opacity=\\\"1\\\" kerning=\\\"auto\\\" x-display=\\\"true\\\" x-id=\\\"\\\" id=\\\"goog_64792551\\\" stroke=\\\"none\\\" font-weight=\\\"normal\\\" font-style=\\\"normal\\\" font-family=\\\"Helvetica\\\" font-size=\\\"16\\\" text-anchor=\\\"end\\\" text-decoration=\\\"none\\\" x-inline-format=\\\"false\\\" x-width=\\\"77.4\\\" x-height=\\\"16\\\" x-left=\\\"74.1\\\" x-top=\\\"389.6\\\"><rect class=\\\"s-text-box\\\" stroke=\\\"none\\\" fill=\\\"#000000\\\" fill-opacity=\\\"0.001\\\" width=\\\"77.4\\\" height=\\\"16\\\" x=\\\"74.1\\\" y=\\\"389.6\\\"/><text class=\\\"s-text-l0\\\" xml:space=\\\"preserve\\\" stroke=\\\"none\\\" fill=\\\"inherit\\\" fill-opacity=\\\"1\\\" text-decoration=\\\"none\\\" x=\\\"151.5\\\" y=\\\"401.6\\\">Total</text></g>\"},\"translate\":{\"x\":0,\"y\":-218.5}},\"footer-enabled\":\"true\",\"page-footer\":{\"height\":50,\"svg\":{\"tag\":\"g\",\"content\":\"<!---SHAPE{\\\"type\\\":\\\"s-tblock\\\",\\\"id\\\":\\\"price\\\",\\\"display\\\":\\\"true\\\",\\\"desc\\\":null,\\\"multiple\\\":\\\"false\\\",\\\"valign\\\":\\\"\\\",\\\"line-height\\\":\\\"\\\",\\\"box\\\":{\\\"x\\\":169.2,\\\"y\\\":330.9,\\\"width\\\":249,\\\"height\\\":18},\\\"inline-format\\\":\\\"false\\\",\\\"format\\\":{\\\"base\\\":\\\"\\\",\\\"type\\\":\\\"number\\\",\\\"number\\\":{\\\"delimiter\\\":\\\",\\\",\\\"precision\\\":0}},\\\"value\\\":\\\"\\\",\\\"ref-id\\\":\\\"\\\",\\\"overflow\\\":\\\"\\\",\\\"word-wrap\\\":\\\"none\\\",\\\"svg\\\":{\\\"tag\\\":\\\"text\\\",\\\"attrs\\\":{\\\"x\\\":418.2,\\\"y\\\":344.9,\\\"xml:space\\\":\\\"preserve\\\",\\\"kerning\\\":\\\"auto\\\",\\\"fill\\\":\\\"#000000\\\",\\\"fill-opacity\\\":\\\"1\\\",\\\"font-size\\\":\\\"18\\\",\\\"font-family\\\":\\\"Helvetica\\\",\\\"font-weight\\\":\\\"normal\\\",\\\"font-style\\\":\\\"normal\\\",\\\"text-anchor\\\":\\\"end\\\",\\\"text-decoration\\\":\\\"none\\\",\\\"id\\\":\\\"goog_2086231637\\\"}}}SHAPE---><line xmlns=\\\"http://www.w3.org/2000/svg\\\" stroke=\\\"#000000\\\" stroke-width=\\\"1\\\" fill=\\\"none\\\" class=\\\"s-line\\\" x-display=\\\"true\\\" x-stroke-type=\\\"solid\\\" stroke-dasharray=\\\"none\\\" x-id=\\\"\\\" x2=\\\"575.2\\\" y1=\\\"364.9\\\" y2=\\\"364.9\\\" x1=\\\"20\\\" id=\\\"goog_2086231638\\\"/><g xmlns=\\\"http://www.w3.org/2000/svg\\\" class=\\\"s-text\\\" stroke-width=\\\"0\\\" fill=\\\"#000000\\\" fill-opacity=\\\"1\\\" kerning=\\\"auto\\\" x-display=\\\"true\\\" x-id=\\\"\\\" id=\\\"goog_64792550\\\" font-size=\\\"16\\\" font-family=\\\"Helvetica\\\" font-weight=\\\"normal\\\" font-style=\\\"normal\\\" text-anchor=\\\"end\\\" text-decoration=\\\"none\\\" x-width=\\\"77.4\\\" x-height=\\\"16\\\" x-left=\\\"74.1\\\" x-top=\\\"333\\\"><rect class=\\\"s-text-box\\\" stroke=\\\"none\\\" fill=\\\"#000000\\\" fill-opacity=\\\"0.001\\\" width=\\\"77.4\\\" height=\\\"16\\\" x=\\\"74.1\\\" y=\\\"333\\\"/><text class=\\\"s-text-l0\\\" xml:space=\\\"preserve\\\" stroke=\\\"none\\\" fill=\\\"inherit\\\" fill-opacity=\\\"1\\\" text-decoration=\\\"none\\\" x=\\\"151.5\\\" y=\\\"345\\\">Page Total</text></g>\"},\"translate\":{\"x\":0,\"y\":-161.9}},\"page-footer-enabled\":\"true\",\"detail\":{\"height\":50,\"svg\":{\"tag\":\"g\",\"content\":\"<!---SHAPE{\\\"type\\\":\\\"s-tblock\\\",\\\"id\\\":\\\"price\\\",\\\"display\\\":\\\"true\\\",\\\"desc\\\":null,\\\"multiple\\\":\\\"false\\\",\\\"valign\\\":\\\"\\\",\\\"line-height\\\":\\\"\\\",\\\"box\\\":{\\\"x\\\":169.2,\\\"y\\\":255.5,\\\"width\\\":249,\\\"height\\\":18},\\\"inline-format\\\":\\\"false\\\",\\\"format\\\":{\\\"base\\\":\\\"\\\",\\\"type\\\":\\\"number\\\",\\\"number\\\":{\\\"delimiter\\\":\\\",\\\",\\\"precision\\\":0}},\\\"value\\\":\\\"\\\",\\\"ref-id\\\":\\\"\\\",\\\"overflow\\\":\\\"\\\",\\\"word-wrap\\\":\\\"none\\\",\\\"svg\\\":{\\\"tag\\\":\\\"text\\\",\\\"attrs\\\":{\\\"x\\\":418.2,\\\"y\\\":269.5,\\\"xml:space\\\":\\\"preserve\\\",\\\"kerning\\\":\\\"auto\\\",\\\"fill\\\":\\\"#000000\\\",\\\"fill-opacity\\\":\\\"1\\\",\\\"font-size\\\":\\\"18\\\",\\\"font-family\\\":\\\"Helvetica\\\",\\\"font-weight\\\":\\\"normal\\\",\\\"font-style\\\":\\\"normal\\\",\\\"text-decoration\\\":\\\"none\\\",\\\"text-anchor\\\":\\\"end\\\",\\\"id\\\":\\\"goog_2086231635\\\"}}}SHAPE---><line xmlns=\\\"http://www.w3.org/2000/svg\\\" stroke=\\\"#000000\\\" stroke-width=\\\"1\\\" fill=\\\"none\\\" class=\\\"s-line\\\" x-display=\\\"true\\\" x-stroke-type=\\\"solid\\\" stroke-dasharray=\\\"none\\\" x-id=\\\"\\\" x2=\\\"575.2\\\" y1=\\\"289.5\\\" y2=\\\"289.5\\\" x1=\\\"20\\\" id=\\\"goog_2086231636\\\"/>\"},\"translate\":{\"x\":0,\"y\":-86.5}},\"header\":{\"height\":50,\"svg\":{\"tag\":\"g\",\"content\":\"<line xmlns=\\\"http://www.w3.org/2000/svg\\\" stroke=\\\"#000000\\\" stroke-width=\\\"1\\\" fill=\\\"none\\\" class=\\\"s-line\\\" x-display=\\\"true\\\" x-stroke-type=\\\"solid\\\" stroke-dasharray=\\\"none\\\" x-id=\\\"\\\" x1=\\\"20\\\" x2=\\\"575.2\\\" y1=\\\"214.1\\\" y2=\\\"214.1\\\" id=\\\"goog_2086231632\\\"/><!---SHAPE{\\\"type\\\":\\\"s-tblock\\\",\\\"id\\\":\\\"title\\\",\\\"display\\\":\\\"true\\\",\\\"desc\\\":null,\\\"multiple\\\":\\\"false\\\",\\\"valign\\\":\\\"\\\",\\\"line-height\\\":\\\"\\\",\\\"box\\\":{\\\"x\\\":169.2,\\\"y\\\":180.1,\\\"width\\\":249,\\\"height\\\":18},\\\"inline-format\\\":\\\"false\\\",\\\"format\\\":{\\\"base\\\":\\\"\\\",\\\"type\\\":\\\"\\\"},\\\"value\\\":\\\"\\\",\\\"ref-id\\\":\\\"\\\",\\\"overflow\\\":\\\"\\\",\\\"word-wrap\\\":\\\"none\\\",\\\"svg\\\":{\\\"tag\\\":\\\"text\\\",\\\"attrs\\\":{\\\"x\\\":293.7,\\\"y\\\":194.1,\\\"xml:space\\\":\\\"preserve\\\",\\\"kerning\\\":\\\"auto\\\",\\\"fill\\\":\\\"#000000\\\",\\\"fill-opacity\\\":\\\"1\\\",\\\"font-size\\\":\\\"18\\\",\\\"font-family\\\":\\\"Helvetica\\\",\\\"font-weight\\\":\\\"normal\\\",\\\"font-style\\\":\\\"normal\\\",\\\"text-decoration\\\":\\\"none\\\",\\\"text-anchor\\\":\\\"middle\\\",\\\"id\\\":\\\"goog_2086231633\\\"}}}SHAPE--->\"},\"translate\":{\"x\":0,\"y\":-61.1}},\"header-enabled\":\"true\",\"svg\":{\"tag\":\"g\",\"attrs\":{}},\"content-height\":250,\"page-break\":\"true\"}SHAPE--><!--LAYOUT<g xmlns=\"http://www.w3.org/2000/svg\" class=\"s-list\" x-id=\"default\" x-header-enabled=\"true\" x-page-footer-enabled=\"true\" x-footer-enabled=\"true\" x-changing-page=\"true\" x-display=\"true\" width=\"555.2\" height=\"300\" x=\"20\" y=\"103\" id=\"goog_2086231643\"><g class=\"s-list-header\" transform=\"translate(0,-61.1) rotate(0 0 0)\" x-top=\"103\" x-height=\"50\"><line stroke=\"#000000\" stroke-width=\"1\" fill=\"none\" class=\"s-line\" x-display=\"true\" x-stroke-type=\"solid\" stroke-dasharray=\"none\" x-id=\"\" x1=\"20\" x2=\"575.2\" y1=\"214.1\" y2=\"214.1\" id=\"goog_2086231632\"/><g class=\"s-tblock\" x-format-type=\"\" x-value=\"\" x-format-base=\"\" x-ref-id=\"\" kerning=\"auto\" x-display=\"true\" x-multiple=\"false\" x-id=\"title\" x-width=\"249\" x-height=\"18\" x-left=\"169.2\" x-top=\"180.1\" fill=\"#000000\" fill-opacity=\"1\" font-size=\"18\" font-family=\"Helvetica\" font-weight=\"normal\" font-style=\"normal\" text-decoration=\"none\" text-anchor=\"middle\" id=\"goog_2086231633\" x-inline-format=\"false\"><rect class=\"s-tblock-box\" stroke=\"#7C4007\" fill=\"#f4e2c4\" stroke-width=\"0.28\" fill-opacity=\"0.8\" width=\"249\" height=\"18\" x=\"169.2\" y=\"180.1\"/><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=\"171.2\" y=\"191.1\">title</text></g></g><g class=\"s-list-detail\" transform=\"translate(0,-86.5) rotate(0 0 0)\" x-top=\"153\" x-height=\"50\"><g class=\"s-tblock\" x-format-type=\"number\" x-value=\"\" x-format-base=\"\" x-ref-id=\"\" kerning=\"auto\" x-display=\"true\" x-multiple=\"false\" x-id=\"price\" x-width=\"249\" x-height=\"18\" x-left=\"169.2\" x-top=\"255.5\" fill=\"#000000\" fill-opacity=\"1\" font-size=\"18\" font-family=\"Helvetica\" font-weight=\"normal\" font-style=\"normal\" text-decoration=\"none\" text-anchor=\"end\" id=\"goog_2086231635\" x-inline-format=\"false\" x-format-number-delimiter=\",\" x-format-number-precision=\"0\"><rect class=\"s-tblock-box\" stroke=\"#7C4007\" fill=\"#f4e2c4\" stroke-width=\"0.28\" fill-opacity=\"0.8\" width=\"249\" height=\"18\" x=\"169.2\" y=\"255.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=\"171.2\" y=\"266.5\">price</text></g><line stroke=\"#000000\" stroke-width=\"1\" fill=\"none\" class=\"s-line\" x-display=\"true\" x-stroke-type=\"solid\" stroke-dasharray=\"none\" x-id=\"\" x2=\"575.2\" y1=\"289.5\" y2=\"289.5\" x1=\"20\" id=\"goog_2086231636\"/></g><g class=\"s-list-page-footer\" transform=\"translate(0,-111.9) rotate(0 0 0)\" x-top=\"203\" x-height=\"50\"><g class=\"s-tblock\" x-format-type=\"number\" x-value=\"\" x-format-base=\"\" x-ref-id=\"\" kerning=\"auto\" x-display=\"true\" x-multiple=\"false\" x-id=\"price\" fill=\"#000000\" fill-opacity=\"1\" font-size=\"18\" font-family=\"Helvetica\" font-weight=\"normal\" font-style=\"normal\" text-anchor=\"end\" text-decoration=\"none\" x-width=\"249\" x-height=\"18\" x-left=\"169.2\" x-top=\"330.9\" id=\"goog_2086231637\" x-inline-format=\"false\" x-format-number-delimiter=\",\" x-format-number-precision=\"0\"><rect class=\"s-tblock-box\" stroke=\"#7C4007\" fill=\"#f4e2c4\" stroke-width=\"0.28\" fill-opacity=\"0.8\" width=\"249\" height=\"18\" x=\"169.2\" y=\"330.9\"/><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=\"171.2\" y=\"341.9\">price</text></g><line stroke=\"#000000\" stroke-width=\"1\" fill=\"none\" class=\"s-line\" x-display=\"true\" x-stroke-type=\"solid\" stroke-dasharray=\"none\" x-id=\"\" x2=\"575.2\" y1=\"364.9\" y2=\"364.9\" x1=\"20\" id=\"goog_2086231638\"/><g class=\"s-text\" stroke-width=\"0\" fill=\"#000000\" fill-opacity=\"1\" kerning=\"auto\" x-display=\"true\" x-id=\"\" id=\"goog_64792550\" font-size=\"16\" font-family=\"Helvetica\" font-weight=\"normal\" font-style=\"normal\" text-anchor=\"end\" text-decoration=\"none\" x-width=\"77.4\" x-height=\"16\" x-left=\"74.1\" x-top=\"333\"><rect class=\"s-text-box\" stroke=\"none\" fill=\"#000000\" fill-opacity=\"0.001\" width=\"77.4\" height=\"16\" x=\"74.1\" y=\"333\"/><text class=\"s-text-l0\" xml:space=\"preserve\" stroke=\"none\" fill=\"inherit\" fill-opacity=\"1\" text-decoration=\"none\" x=\"151.5\" y=\"345\">Page Total</text></g></g><g class=\"s-list-footer\" transform=\"translate(0,-118.5) rotate(0 0 0)\" x-top=\"253\" x-height=\"50\"><line stroke=\"#000000\" stroke-width=\"1\" fill=\"none\" class=\"s-line\" x-display=\"true\" x-stroke-type=\"solid\" stroke-dasharray=\"none\" x-id=\"\" x2=\"575.2\" y1=\"421.5\" y2=\"421.5\" x1=\"20\" id=\"goog_2086231640\"/><g class=\"s-tblock\" x-format-type=\"number\" x-value=\"\" x-format-base=\"\" x-ref-id=\"\" kerning=\"auto\" x-display=\"true\" x-multiple=\"false\" x-id=\"price\" x-width=\"249\" x-height=\"18\" x-left=\"169.2\" x-top=\"387.5\" fill=\"#000000\" fill-opacity=\"1\" font-size=\"18\" font-family=\"Helvetica\" font-weight=\"normal\" font-style=\"normal\" text-decoration=\"none\" text-anchor=\"end\" id=\"goog_2086231641\" x-inline-format=\"false\" x-format-number-delimiter=\",\" x-format-number-precision=\"0\"><rect class=\"s-tblock-box\" stroke=\"#7C4007\" fill=\"#f4e2c4\" stroke-width=\"0.28\" fill-opacity=\"0.8\" width=\"249\" height=\"18\" x=\"169.2\" y=\"387.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=\"171.2\" y=\"398.5\">price</text></g><g class=\"s-text\" stroke-width=\"0\" fill=\"#000000\" fill-opacity=\"1\" kerning=\"auto\" x-display=\"true\" x-id=\"\" id=\"goog_64792551\" stroke=\"none\" font-weight=\"normal\" font-style=\"normal\" font-family=\"Helvetica\" font-size=\"16\" text-anchor=\"end\" text-decoration=\"none\" x-inline-format=\"false\" x-width=\"77.4\" x-height=\"16\" x-left=\"74.1\" x-top=\"389.6\"><rect class=\"s-text-box\" stroke=\"none\" fill=\"#000000\" fill-opacity=\"0.001\" width=\"77.4\" height=\"16\" x=\"74.1\" y=\"389.6\"/><text class=\"s-text-l0\" xml:space=\"preserve\" stroke=\"none\" fill=\"inherit\" fill-opacity=\"1\" text-decoration=\"none\" x=\"151.5\" y=\"401.6\">Total</text></g></g><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=\"113.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=\"300\" x=\"20\" y=\"103\"/></g>LAYOUT--><g class=\"s-text\" stroke-width=\"0\" fill=\"#000000\" fill-opacity=\"1\" kerning=\"auto\" x-display=\"true\" x-id=\"\" font-size=\"26\" font-family=\"Times New Roman\" font-weight=\"normal\" font-style=\"normal\" text-anchor=\"middle\" text-decoration=\"none\" x-width=\"315.1\" x-height=\"48\" x-left=\"140.1\" x-top=\"31\" x-valign=\"center\" id=\"goog_2086231645\" x-inline-format=\"false\"><rect class=\"s-text-box\" stroke=\"none\" fill=\"#000000\" fill-opacity=\"0.001\" width=\"315.1\" height=\"48\" x=\"140.1\" y=\"31\"/><text class=\"s-text-l0\" xml:space=\"preserve\" stroke=\"none\" fill=\"inherit\" fill-opacity=\"1\" text-decoration=\"none\" x=\"297.7\" y=\"63.5\">List Events for 0.8 or higher</text></g></g></svg>","state":{"layout-guide":[{"type":"x","position":418.2},{"type":"x","position":169.2},{"type":"y","position":84}]}}
@@ -1,69 +0,0 @@
1
- # coding: utf-8
2
-
3
- module Thinreports
4
- module Core
5
-
6
- class Events
7
- include Utils
8
-
9
- Event = ::Struct.new(:type, :target)
10
-
11
- # @return [Hash<Symbol, Thinreports::Core::Events::Event>]
12
- attr_accessor :events
13
-
14
- # @param [Symbol] types
15
- def initialize(*types)
16
- @events = {}
17
- @types = types
18
- end
19
-
20
- # @param [Symbol] type
21
- # @yield [e]
22
- # @yieldparam [Thinreports::Core::Events::Event] e
23
- def listen(type, &block)
24
- verify_event_type(type)
25
-
26
- if block_given?
27
- events[type] = block
28
- else
29
- raise ArgumentError, '#listen requires a block'
30
- end
31
- end
32
- alias_method :on, :listen
33
-
34
- # @param [Symbol] type
35
- def unlisten(type)
36
- events.delete(type)
37
- end
38
- alias_method :un, :unlisten
39
-
40
- def dispatch(e)
41
- unless e.type
42
- raise ArgumentError, 'Event#type attribute is required'
43
- end
44
- verify_event_type(e.type)
45
-
46
- event = events[e.type]
47
- event.call(e) if event
48
- end
49
-
50
- def copy
51
- new_events = self.dup
52
- new_events.events = deep_copy(events)
53
- new_events
54
- end
55
-
56
- private
57
-
58
- # @param [Symbol] type
59
- def verify_event_type(type)
60
- return if @types.empty?
61
-
62
- unless @types.include?(type)
63
- raise Thinreports::Errors::UnknownEventType
64
- end
65
- end
66
- end
67
-
68
- end
69
- end
@@ -1,62 +0,0 @@
1
- # coding: utf-8
2
-
3
- require 'json'
4
-
5
- module Thinreports::Core
6
- module Format
7
-
8
- module Builder
9
- def build(*args)
10
- build_internal(*args)
11
- rescue Thinreports::Errors::Basic
12
- raise
13
- rescue
14
- raise Thinreports::Errors::InvalidLayoutFormat
15
- end
16
-
17
- # @abstract
18
- def build_internal
19
- raise NotImplementedError
20
- end
21
-
22
- # @param [Thinreports::Core::Format::Base] format
23
- # @param [Hash] options
24
- def build_layout(format, options = {}, &block)
25
- level = '-' * ((options[:level] || 1 ) - 1)
26
- pattern = /<!--#{level}SHAPE(.*?)SHAPE#{level}-->/
27
-
28
- format.layout.scan(pattern) do |m|
29
- shape_format = block.call(*parsed_format_and_shape_type(m.first))
30
- format.shapes[shape_format.id.to_sym] = shape_format
31
- end
32
- format.layout.gsub!(pattern, '')
33
- end
34
-
35
- # @param [String] svg
36
- def clean(svg)
37
- svg.gsub!(/<!--.*?-->/, '')
38
- end
39
-
40
- # @param [String] svg
41
- def clean_with_attributes(svg)
42
- clean(svg)
43
- svg.gsub!(/ x\-[a-z\d\-]+?=".*?"/, '')
44
- svg.gsub!(/ class=".*?"/, '')
45
- end
46
-
47
- def shape_tag(format)
48
- %{<%= r(:"#{format.id}")%>}
49
- end
50
-
51
- def parsed_format_and_shape_type(json_string)
52
- f = parse_json(json_string)
53
- [ f['type'], f ]
54
- end
55
-
56
- def parse_json(json_string)
57
- JSON.parse(json_string)
58
- end
59
- end
60
-
61
- end
62
- end
@@ -1,54 +0,0 @@
1
- # coding: utf-8
2
-
3
- module Thinreports
4
- module Core::Shape
5
-
6
- class List::Configuration
7
- # @return [Thinreports::Core::Shape::List::Store]
8
- # @deprecated
9
- # `List::Page#store` will be removed in the next major version.
10
- # You can create a list using #on_page_footer_insert, #on_footer_insert and #on_page_finalize callbacks instead.
11
- # See also https://github.com/thinreports/thinreports-generator/blob/master/examples/list_events/list_events.rb.
12
- attr_reader :store
13
-
14
- # @param [Thinreports::Core::Shape::List::Events, nil] events (nil)
15
- # @param [Thinreports::Core::Shape::List::Store, nil] store (nil)
16
- def initialize(events = nil, store = nil)
17
- @events = events || List::Events.new
18
- @store = store
19
- end
20
-
21
- # @return [Thinreports::Core::Shape::List::Events]
22
- # @deprecated
23
- # `List::Page#events` will be removed in the next major version.
24
- # Please use #on_page_footer_insert, #on_footer_insert and #on_page_finalize callbacks instead.
25
- # See also https://github.com/thinreports/thinreports-generator/blob/master/examples/list_events/list_events.rb.
26
- def events
27
- warn '[DEPRECATION] `List#events` will be removed in the next major version. ' +
28
- 'Please use #on_page_footer_insert, #on_footer_insert and #on_page_finalize callbacks instead. ' +
29
- 'See also https://github.com/thinreports/thinreports-generator/blob/master/examples/list_events/list_events.rb.'
30
- @events
31
- end
32
-
33
- def internal_events
34
- @events
35
- end
36
-
37
- # @param [Hash] stores name: default value
38
- def use_stores(stores)
39
- @store = List::Store.init(stores)
40
- end
41
-
42
- # @return [Thinreports::Core::Shape::List::Configuration]
43
- def copy
44
- self.class.new(@events.copy, @store && @store.copy)
45
- end
46
-
47
- # @return [String]
48
- def type
49
- List::TYPE_NAME
50
- end
51
- end
52
-
53
- end
54
- end
@@ -1,47 +0,0 @@
1
- # coding: utf-8
2
-
3
- module Thinreports
4
- module Core::Shape
5
-
6
- class List::Events < Core::Events
7
- def initialize
8
- super(:page_footer_insert,
9
- :footer_insert,
10
- :page_finalize)
11
- end
12
-
13
- class PageEvent < Event
14
- # @return [Thinreports::Report::Page]
15
- attr_reader :page
16
-
17
- # @param type (see Thinreports::Core::Events::Event#initialize)
18
- # @param [Thinreports::Core::Shape::List::Page] target
19
- # @param [Thinreports::Report::Page] page
20
- def initialize(type, target, page)
21
- super(type, target)
22
- @page = page
23
- end
24
-
25
- # @return [Thinreports::Core::Shape::List::Page]
26
- alias_method :list, :target
27
- end
28
-
29
- class SectionEvent < Event
30
- # @return [Thinreports::Core::Shape::List::Store]
31
- attr_reader :store
32
-
33
- # @param type (see Thinreports::Core::Events::Event#initialize)
34
- # @param [Thinreports::Core::Shape::List::SectionInterface] target
35
- # @param [Thinreports::Core::Shape::List::Store] store
36
- def initialize(type, target, store)
37
- super(type, target)
38
- @store = store
39
- end
40
-
41
- # @return [Thinreports::Core::Shape::List::SectionInterface]
42
- alias_method :section, :target
43
- end
44
- end
45
-
46
- end
47
- end