squib 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -2
- data/CHANGELOG.md +16 -1
- data/appveyor.yml +2 -3
- data/lib/squib/args/sheet.rb +66 -34
- data/lib/squib/graphics/save_pdf.rb +1 -1
- data/lib/squib/import/data_frame.rb +7 -7
- data/lib/squib/version.rb +1 -1
- data/samples/autoscale_font/_autoscale_font.rb +1 -1
- data/samples/build_groups/build_groups.rb +3 -3
- data/samples/colors/_colors.rb +1 -0
- data/samples/{config_text_markup.rb → config/config_text_markup.rb} +0 -0
- data/samples/{custom_config.rb → config/custom_config.rb} +0 -0
- data/samples/{cairo_access.rb → images/_cairo_access.rb} +0 -0
- data/samples/images/_images.rb +1 -1
- data/samples/{unicode.rb → images/_unicode.rb} +0 -0
- data/samples/intro/01_hello.rb +1 -2
- data/samples/intro/02_options.rb +1 -2
- data/samples/intro/03_layout.rb +1 -2
- data/samples/intro/04_arrays.rb +1 -2
- data/samples/intro/05_excel.rb +3 -4
- data/samples/{tgc_proofs.rb → proofs/_tgc_proofs.rb} +1 -4
- data/samples/saves/_save_pdf.rb +7 -0
- data/samples/{embed_text.rb → text/_embed_text.rb} +1 -0
- data/samples/text/_text.rb +1 -1
- data/samples/{text_options.rb → text/_text_options.rb} +1 -1
- data/samples/{bug134.rb → text/bug134.rb} +0 -0
- data/squib.gemspec +17 -16
- metadata +90 -596
- data/benchmarks/antialias_best.rb +0 -13
- data/benchmarks/antialias_best.yml +0 -1
- data/benchmarks/antialias_fast.rb +0 -13
- data/benchmarks/antialias_fast.yml +0 -1
- data/benchmarks/backend-svg.yml +0 -4
- data/benchmarks/backend_memory.rb +0 -14
- data/benchmarks/backend_svg.rb +0 -14
- data/benchmarks/shiny-purse.png +0 -0
- data/benchmarks/spanner.svg +0 -91
- data/benchmarks/tons_of_png.rb +0 -6
- data/benchmarks/tons_of_svg.rb +0 -7
- data/benchmarks/tons_of_text.rb +0 -8
- data/docs/Makefile +0 -216
- data/docs/_static/css/squibdocs.css +0 -23
- data/docs/args/draw.rst +0 -36
- data/docs/args/expansion.rst +0 -3
- data/docs/args/layout.rst +0 -6
- data/docs/args/output_dir.rst +0 -6
- data/docs/args/range.rst +0 -6
- data/docs/args/transform.rst +0 -51
- data/docs/args/trim.rst +0 -11
- data/docs/args/wh.rst +0 -12
- data/docs/args/xy.rst +0 -12
- data/docs/arrays.rst +0 -80
- data/docs/backends.rst +0 -20
- data/docs/bleed.rst +0 -13
- data/docs/build_groups.rst +0 -45
- data/docs/colors.rst +0 -90
- data/docs/conf.py +0 -287
- data/docs/config.rst +0 -135
- data/docs/data.rst +0 -26
- data/docs/dsl/background.rst +0 -20
- data/docs/dsl/build.rst +0 -32
- data/docs/dsl/build_groups.rst +0 -23
- data/docs/dsl/circle.rst +0 -27
- data/docs/dsl/cm.rst +0 -19
- data/docs/dsl/configure.rst +0 -18
- data/docs/dsl/csv.rst +0 -81
- data/docs/dsl/curve.rst +0 -63
- data/docs/dsl/data_frame.rst +0 -85
- data/docs/dsl/deck.rst +0 -45
- data/docs/dsl/disable_build.rst +0 -25
- data/docs/dsl/disable_build_globally.rst +0 -46
- data/docs/dsl/ellipse.rst +0 -23
- data/docs/dsl/enable_build.rst +0 -25
- data/docs/dsl/enable_build_globally.rst +0 -44
- data/docs/dsl/grid.rst +0 -31
- data/docs/dsl/hand.rst +0 -40
- data/docs/dsl/hint.rst +0 -15
- data/docs/dsl/inches.rst +0 -19
- data/docs/dsl/index.rst +0 -9
- data/docs/dsl/line.rst +0 -52
- data/docs/dsl/mm.rst +0 -19
- data/docs/dsl/png.rst +0 -49
- data/docs/dsl/polygon.rst +0 -28
- data/docs/dsl/rect.rst +0 -22
- data/docs/dsl/save.rst +0 -23
- data/docs/dsl/save_pdf.rst +0 -89
- data/docs/dsl/save_png.rst +0 -46
- data/docs/dsl/save_sheet.rst +0 -55
- data/docs/dsl/showcase.rst +0 -76
- data/docs/dsl/star.rst +0 -35
- data/docs/dsl/svg.rst +0 -119
- data/docs/dsl/text.rst +0 -292
- data/docs/dsl/triangle.rst +0 -50
- data/docs/dsl/use_layout.rst +0 -16
- data/docs/dsl/xlsx.rst +0 -56
- data/docs/guides/game_icons.rst +0 -126
- data/docs/guides/getting-started/index.rst +0 -5
- data/docs/guides/getting-started/part_0_learning_ruby.rst +0 -145
- data/docs/guides/getting-started/part_1_zero_to_game.rst +0 -217
- data/docs/guides/getting-started/part_2_iconography.rst +0 -228
- data/docs/guides/getting-started/part_3_workflows.rst +0 -46
- data/docs/guides/getting-started/part_4_ruby_power.rst +0 -18
- data/docs/guides/git.rst +0 -14
- data/docs/guides/guard.rst +0 -84
- data/docs/guides/hello_world.rst +0 -65
- data/docs/guides/projects.rst +0 -35
- data/docs/help.rst +0 -157
- data/docs/index.rst +0 -35
- data/docs/install.rst +0 -68
- data/docs/layouts.rst +0 -290
- data/docs/learning.rst +0 -12
- data/docs/make.bat +0 -263
- data/docs/parameters.rst +0 -34
- data/docs/server.bat +0 -1
- data/docs/text_feature.rst +0 -115
- data/docs/units.rst +0 -14
- data/samples/autoscale_font/.gitignore +0 -2
- data/samples/autoscale_font/card_00_expected.png +0 -0
- data/samples/backend/.gitignore +0 -1
- data/samples/backend/_backend-config.yml +0 -5
- data/samples/backend/backend_00_expected.png +0 -0
- data/samples/backend/backend_01_expected.png +0 -0
- data/samples/backend/backend_vectorized_expected.pdf +0 -0
- data/samples/backend/backend_vectors_00_expected.svg +0 -84
- data/samples/backend/backend_vectors_01_expected.svg +0 -84
- data/samples/backend/shiny-purse.png +0 -0
- data/samples/backend/showcase_expected.png +0 -0
- data/samples/backend/spanner.svg +0 -91
- data/samples/ball.png +0 -0
- data/samples/build_groups/.gitignore +0 -1
- data/samples/build_groups/Rakefile +0 -25
- data/samples/colors/.gitignore +0 -1
- data/samples/colors/color_constants_00_expected.png +0 -0
- data/samples/colors/colors_00_expected.png +0 -0
- data/samples/colors/gradient_00_expected.png +0 -0
- data/samples/config_disable_quotes.yml +0 -3
- data/samples/config_text_markup.yml +0 -9
- data/samples/custom-config.yml +0 -5
- data/samples/customconfig-imgdir/shiny-purse2.png +0 -0
- data/samples/customconfig-imgdir/spanner2.svg +0 -91
- data/samples/data/.gitignore +0 -1
- data/samples/data/explode_quantities.xlsx +0 -0
- data/samples/data/quantity_explosion.csv +0 -3
- data/samples/data/sample.csv +0 -3
- data/samples/data/sample.xlsx +0 -0
- data/samples/data/sample_csv_00_expected.png +0 -0
- data/samples/data/sample_csv_01_expected.png +0 -0
- data/samples/data/sample_csv_qty_00_expected.png +0 -0
- data/samples/data/sample_excel_00_expected.png +0 -0
- data/samples/data/sample_excel_01_expected.png +0 -0
- data/samples/data/sample_excel_02_expected.png +0 -0
- data/samples/data/sample_excel_resources_00_expected.png +0 -0
- data/samples/data/sample_excel_resources_01_expected.png +0 -0
- data/samples/data/sample_xlsx_qty_00_expected.png +0 -0
- data/samples/glass-heart.svg +0 -52
- data/samples/grit.png +0 -0
- data/samples/images/.gitignore +0 -8
- data/samples/images/_images_00_expected.png +0 -0
- data/samples/images/angler-fish.png +0 -0
- data/samples/images/ball.png +0 -0
- data/samples/images/glass-heart.svg +0 -52
- data/samples/images/grit.png +0 -0
- data/samples/images/offset.svg +0 -85
- data/samples/images/robot-golem.svg +0 -1
- data/samples/images/shiny-purse.png +0 -0
- data/samples/images/spanner.svg +0 -91
- data/samples/images/sprites.png +0 -0
- data/samples/images/with-alpha.png +0 -0
- data/samples/intro/.gitignore +0 -2
- data/samples/intro/auto-repair.svg +0 -1
- data/samples/intro/crawling.svg +0 -1
- data/samples/intro/data.xlsx +0 -0
- data/samples/intro/humans.svg +0 -1
- data/samples/intro/ninja-mask.svg +0 -1
- data/samples/intro/part1_00_expected.png +0 -0
- data/samples/intro/part2_00_expected.png +0 -0
- data/samples/intro/part3_00_expected.png +0 -0
- data/samples/intro/part3_layout.yml +0 -34
- data/samples/intro/part4_00_expected.png +0 -0
- data/samples/intro/part4_01_expected.png +0 -0
- data/samples/intro/part5_00_expected.png +0 -0
- data/samples/intro/part5_01_expected.png +0 -0
- data/samples/intro/part5_02_expected.png +0 -0
- data/samples/intro/part5_03_expected.png +0 -0
- data/samples/intro/part5_hand_expected.png +0 -0
- data/samples/intro/part5_showcase_expected.png +0 -0
- data/samples/intro/pirate-skull.svg +0 -1
- data/samples/intro/robot-golem.svg +0 -1
- data/samples/layouts/custom-layout.yml +0 -60
- data/samples/layouts/custom-layout2.yml +0 -15
- data/samples/layouts/expected_layouts_builtin_economy_00.png +0 -0
- data/samples/layouts/expected_layouts_builtin_fantasy_00.png +0 -0
- data/samples/layouts/expected_layouts_builtin_hand_00.png +0 -0
- data/samples/layouts/expected_layouts_builtin_playing_card_00.png +0 -0
- data/samples/layouts/expected_layouts_builtin_tuck_box_00.png +0 -0
- data/samples/layouts/shiny-purse.png +0 -0
- data/samples/layouts/spanner.svg +0 -91
- data/samples/load_images_config.yml +0 -1
- data/samples/offset.svg +0 -71
- data/samples/pokercard.png +0 -0
- data/samples/project/Gemfile +0 -6
- data/samples/project/Guardfile +0 -18
- data/samples/project/Rakefile +0 -25
- data/samples/project/bw/robot-golem.svg +0 -53
- data/samples/project/color/robot-golem.svg +0 -1
- data/samples/project/config.yml +0 -2
- data/samples/project/layouts/characters.yml +0 -3
- data/samples/project/layouts/skills.yml +0 -3
- data/samples/ranges/glass-heart.svg +0 -52
- data/samples/ranges/ranges_00_expected.png +0 -0
- data/samples/saves/.gitignore +0 -1
- data/samples/saves/hand_expected.png +0 -0
- data/samples/saves/hand_pretty_expected.png +0 -0
- data/samples/saves/save-pdf-small_expected.pdf +0 -0
- data/samples/saves/save-pdf_expected.pdf +0 -0
- data/samples/saves/save_png_00_expected.png +0 -0
- data/samples/saves/save_png_trimmed_00_expected.png +0 -0
- data/samples/saves/save_sheet_00_expected.png +0 -0
- data/samples/saves/save_sheet_01_expected.png +0 -0
- data/samples/saves/save_sheet_range_00_expected.png +0 -0
- data/samples/saves/save_sheet_range_01_expected.png +0 -0
- data/samples/saves/save_single_sheet_00_expected.png +0 -0
- data/samples/saves/saves_notrim_01_expected.png +0 -0
- data/samples/saves/showcase2_expected.png +0 -0
- data/samples/saves/showcase_expected.png +0 -0
- data/samples/saves/showcase_individual_00_expected.png +0 -0
- data/samples/saves/showcase_individual_01_expected.png +0 -0
- data/samples/saves/showcase_individual_02_expected.png +0 -0
- data/samples/saves/showcase_individual_03_expected.png +0 -0
- data/samples/saves/spanner.svg +0 -91
- data/samples/shapes/.gitignore +0 -1
- data/samples/shapes/shape_00_expected.png +0 -0
- data/samples/shiny-purse.png +0 -0
- data/samples/spanner.svg +0 -91
- data/samples/sprites.png +0 -0
- data/samples/text/.gitignore +0 -2
- data/samples/text/README.md +0 -1
- data/samples/text/_text_00_expected.png +0 -0
- data/samples/text/config.yml +0 -2
- data/samples/units/units_00_expected.png +0 -0
- data/samples/units/using_units.yml +0 -10
- data/spec/api/api_data_spec.rb +0 -172
- data/spec/api/api_groups_spec.rb +0 -49
- data/spec/api/api_settings_spec.rb +0 -38
- data/spec/api/api_units_spec.rb +0 -37
- data/spec/args/box_spec.rb +0 -127
- data/spec/args/draw_spec.rb +0 -101
- data/spec/args/embed_key_spec.rb +0 -13
- data/spec/args/input_file_spec.rb +0 -21
- data/spec/args/paint_spec.rb +0 -22
- data/spec/args/paragraph_spec.rb +0 -153
- data/spec/args/range_spec.rb +0 -41
- data/spec/args/save_batch_spec.rb +0 -51
- data/spec/args/scale_box_spec.rb +0 -71
- data/spec/args/sheet_spec.rb +0 -80
- data/spec/args/showcase_special_spec.rb +0 -15
- data/spec/args/transform_spec.rb +0 -25
- data/spec/args/typographer_spec.rb +0 -71
- data/spec/args/unit_conversion_spec.rb +0 -29
- data/spec/card_spec.rb +0 -11
- data/spec/commands/new_spec.rb +0 -48
- data/spec/conf_spec.rb +0 -47
- data/spec/data/conf/basic.yml +0 -1
- data/spec/data/conf/empty.yml +0 -1
- data/spec/data/conf/unrecognized.yml +0 -4
- data/spec/data/csv/basic.csv +0 -3
- data/spec/data/csv/custom_opts.csv +0 -2
- data/spec/data/csv/dup_cols.csv +0 -3
- data/spec/data/csv/newline.csv +0 -3
- data/spec/data/csv/qty.csv +0 -3
- data/spec/data/csv/qty_named.csv +0 -3
- data/spec/data/csv/with_spaces.csv +0 -3
- data/spec/data/csv/yield.csv +0 -3
- data/spec/data/layouts/easy-circular-extends.yml +0 -6
- data/spec/data/layouts/empty-rule.yml +0 -1
- data/spec/data/layouts/empty.yml +0 -1
- data/spec/data/layouts/extends-nonexists.yml +0 -3
- data/spec/data/layouts/extends-units-mixed.yml +0 -8
- data/spec/data/layouts/extends-units.yml +0 -8
- data/spec/data/layouts/hard-circular-extends.yml +0 -9
- data/spec/data/layouts/multi-extends-single-entry.yml +0 -14
- data/spec/data/layouts/multi-level-extends.yml +0 -10
- data/spec/data/layouts/multifile-a.yml +0 -4
- data/spec/data/layouts/multifile-b.yml +0 -4
- data/spec/data/layouts/multifile-extends-a.yml +0 -8
- data/spec/data/layouts/multifile-extends-b.yml +0 -9
- data/spec/data/layouts/no-extends.yml +0 -5
- data/spec/data/layouts/pre-extends.yml +0 -7
- data/spec/data/layouts/self-circular-extends.yml +0 -3
- data/spec/data/layouts/single-extends.yml +0 -7
- data/spec/data/layouts/single-level-multi-extends.yml +0 -12
- data/spec/data/samples/autoscale_font/_autoscale_font.rb.txt +0 -133
- data/spec/data/samples/basic.rb.txt +0 -248
- data/spec/data/samples/cairo_access.rb.txt +0 -59
- data/spec/data/samples/colors/_gradients.rb.txt +0 -84
- data/spec/data/samples/config_text_markup.rb.txt +0 -74
- data/spec/data/samples/custom_config.rb.txt +0 -59
- data/spec/data/samples/data/_csv.rb.txt +0 -231
- data/spec/data/samples/data/_excel.rb.txt +0 -704
- data/spec/data/samples/embed_text.rb.txt +0 -431
- data/spec/data/samples/hello_world.rb.txt +0 -38
- data/spec/data/samples/images/_more_load_images.rb.txt +0 -335
- data/spec/data/samples/layouts.rb.txt +0 -489
- data/spec/data/samples/ranges/_ranges.rb.txt +0 -484
- data/spec/data/samples/saves/_hand.rb.txt +0 -594
- data/spec/data/samples/saves/_portrait_landscape.rb.txt +0 -57
- data/spec/data/samples/saves/_save_pdf.rb.txt +0 -1601
- data/spec/data/samples/saves/_saves.rb.txt +0 -873
- data/spec/data/samples/saves/_showcase.rb.txt +0 -5942
- data/spec/data/samples/shapes/_draw_shapes.rb.txt +0 -757
- data/spec/data/samples/text_options.rb.txt +0 -1158
- data/spec/data/samples/tgc_proofs.rb.txt +0 -102
- data/spec/data/samples/units/_units.rb.txt +0 -53
- data/spec/data/xlsx/basic.xlsx +0 -0
- data/spec/data/xlsx/explode_quantities.xlsx +0 -0
- data/spec/data/xlsx/formulas.xlsx +0 -0
- data/spec/data/xlsx/whitespace.xlsx +0 -0
- data/spec/data/xlsx/with_macros.xlsm +0 -0
- data/spec/deck_spec.rb +0 -73
- data/spec/graphics/cairo_context_wrapper_spec.rb +0 -104
- data/spec/graphics/embedding_utils_spec.rb +0 -73
- data/spec/graphics/graphics_save_doc_spec.rb +0 -74
- data/spec/import/data_frame_spec.rb +0 -251
- data/spec/layout_parser_spec.rb +0 -226
- data/spec/logger_spec.rb +0 -12
- data/spec/samples/_diffs/gitkeep.txt +0 -0
- data/spec/samples/diff-with-css.example.html +0 -39
- data/spec/samples/expected/autoscale_00.png +0 -0
- data/spec/samples/expected/autoscale_01.png +0 -0
- data/spec/samples/expected/autoscale_02.png +0 -0
- data/spec/samples/expected/backend_00.png +0 -0
- data/spec/samples/expected/backend_00.svg +0 -78
- data/spec/samples/expected/backend_01.png +0 -0
- data/spec/samples/expected/backend_01.svg +0 -78
- data/spec/samples/expected/basic_00.png +0 -0
- data/spec/samples/expected/basic_01.png +0 -0
- data/spec/samples/expected/basic_02.png +0 -0
- data/spec/samples/expected/cairo_access_00.png +0 -0
- data/spec/samples/expected/cairo_access_01.png +0 -0
- data/spec/samples/expected/card_00.png +0 -0
- data/spec/samples/expected/card_01.png +0 -0
- data/spec/samples/expected/colors_00.png +0 -0
- data/spec/samples/expected/config_disable_text_00.png +0 -0
- data/spec/samples/expected/config_text_00.png +0 -0
- data/spec/samples/expected/custom-config_00.png +0 -0
- data/spec/samples/expected/embed_00.png +0 -0
- data/spec/samples/expected/embed_multisheet_00.png +0 -0
- data/spec/samples/expected/gitkeep.txt +0 -0
- data/spec/samples/expected/gradient_00.png +0 -0
- data/spec/samples/expected/hand.png +0 -0
- data/spec/samples/expected/hand_pretty.png +0 -0
- data/spec/samples/expected/landscape_00.png +0 -0
- data/spec/samples/expected/layout2_00.png +0 -0
- data/spec/samples/expected/layout_00.png +0 -0
- data/spec/samples/expected/layout_builtin_hand_00.png +0 -0
- data/spec/samples/expected/layout_builtin_playing_card_00.png +0 -0
- data/spec/samples/expected/load_images_00.png +0 -0
- data/spec/samples/expected/portrait_00.png +0 -0
- data/spec/samples/expected/ranges_00.png +0 -0
- data/spec/samples/expected/sample_csv_00.png +0 -0
- data/spec/samples/expected/sample_csv_01.png +0 -0
- data/spec/samples/expected/sample_excel_00.png +0 -0
- data/spec/samples/expected/sample_excel_01.png +0 -0
- data/spec/samples/expected/sample_excel_02.png +0 -0
- data/spec/samples/expected/save_sheet_00.png +0 -0
- data/spec/samples/expected/save_sheet_01.png +0 -0
- data/spec/samples/expected/save_sheet_range_00.png +0 -0
- data/spec/samples/expected/save_sheet_range_01.png +0 -0
- data/spec/samples/expected/save_single_sheet_00.png +0 -0
- data/spec/samples/expected/saves_notrim_01.png +0 -0
- data/spec/samples/expected/shape_00.png +0 -0
- data/spec/samples/expected/showcase.png +0 -0
- data/spec/samples/expected/showcase2.png +0 -0
- data/spec/samples/expected/showcase_individual_00.png +0 -0
- data/spec/samples/expected/showcase_individual_01.png +0 -0
- data/spec/samples/expected/showcase_individual_02.png +0 -0
- data/spec/samples/expected/showcase_individual_03.png +0 -0
- data/spec/samples/expected/text_00.png +0 -0
- data/spec/samples/expected/text_01.png +0 -0
- data/spec/samples/expected/text_02.png +0 -0
- data/spec/samples/expected/tgc_sample_00.png +0 -0
- data/spec/samples/expected/units_00.png +0 -0
- data/spec/samples/run_samples_spec.rb +0 -17
- data/spec/samples/samples_regression_spec.rb +0 -71
- data/spec/samples/sanity.html.erb +0 -28
- data/spec/samples/sanity.rb +0 -70
- data/spec/sanity/.gitignore +0 -1
- data/spec/sanity/sanity.html.erb +0 -42
- data/spec/sanity/sanity_test.rb +0 -42
- data/spec/sanity/tests.yml +0 -12
- data/spec/spec_helper.rb +0 -159
@@ -1,13 +0,0 @@
|
|
1
|
-
require 'squib'
|
2
|
-
|
3
|
-
Squib::Deck.new(cards: 200, config: 'antialias_best.yml') do
|
4
|
-
background color: :white
|
5
|
-
# alphabet = 'a'.upto('z').to_a.join + ' ' + 'A'.upto('Z').to_a.join + ' '
|
6
|
-
# text str: alphabet * 36 , font: 'Sans Bold 18', width: 825, height: 1125, hint: :red
|
7
|
-
0.upto(500).each do |i|
|
8
|
-
circle radius: 50,
|
9
|
-
x: (i % 17) * 50,
|
10
|
-
y: (i / 17) * 50
|
11
|
-
end
|
12
|
-
save_png prefix: 'antialias_best_'
|
13
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
antialias: best
|
@@ -1,13 +0,0 @@
|
|
1
|
-
require 'squib'
|
2
|
-
|
3
|
-
Squib::Deck.new(cards: 200, config: 'antialias_fast.yml') do
|
4
|
-
background color: :white
|
5
|
-
# alphabet = 'a'.upto('z').to_a.join + ' ' + 'A'.upto('Z').to_a.join + ' '
|
6
|
-
# text str: alphabet * 36 , font: 'Sans Bold 18', width: 825, height: 1125, hint: :red
|
7
|
-
0.upto(500).each do |i|
|
8
|
-
circle radius: 50,
|
9
|
-
x: (i % 17) * 50,
|
10
|
-
y: (i / 17) * 50
|
11
|
-
end
|
12
|
-
save_png prefix: 'antialias_fast_'
|
13
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
antialias: fast
|
data/benchmarks/backend-svg.yml
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'squib'
|
2
|
-
|
3
|
-
Squib::Deck.new(cards: 200) do
|
4
|
-
background color: :white
|
5
|
-
text str: 'Hello, world!', y: 500, width: 825, font: 'Sans bold 72', align: :center
|
6
|
-
rect x: 10, y: 10, width: 20, height: 20
|
7
|
-
circle x: 40, y: 40, radius: 25
|
8
|
-
triangle x1: 50, y1: 15, x2: 60, y2: 25, x3: 75, y3: 25
|
9
|
-
line x1: 100, y1: 620, x2: 720, y2: 620, stroke_width: 15.0
|
10
|
-
svg file: 'spanner.svg', x: 100, y: 20
|
11
|
-
png file: 'shiny-purse.png', x: 250, y: 20
|
12
|
-
save_png prefix: 'rasterized_'
|
13
|
-
save_pdf file: 'backend.pdf'
|
14
|
-
end
|
data/benchmarks/backend_svg.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'squib'
|
2
|
-
|
3
|
-
Squib::Deck.new(cards: 200, config: 'backend-svg.yml') do
|
4
|
-
background color: :white
|
5
|
-
text str: 'Hello, world!', y: 500, width: 825, font: 'Sans bold 72', align: :center
|
6
|
-
rect x: 10, y: 10, width: 20, height: 20
|
7
|
-
circle x: 40, y: 40, radius: 25
|
8
|
-
triangle x1: 50, y1: 15, x2: 60, y2: 25, x3: 75, y3: 25
|
9
|
-
line x1: 100, y1: 620, x2: 720, y2: 620, stroke_width: 15.0
|
10
|
-
svg file: 'spanner.svg', x: 100, y: 20
|
11
|
-
png file: 'shiny-purse.png', x: 250, y: 20
|
12
|
-
save_png prefix: 'rasterized_'
|
13
|
-
save_pdf file: 'backend.pdf'
|
14
|
-
end
|
data/benchmarks/shiny-purse.png
DELETED
Binary file
|
data/benchmarks/spanner.svg
DELETED
@@ -1,91 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
-
<svg
|
3
|
-
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
4
|
-
xmlns:cc="http://creativecommons.org/ns#"
|
5
|
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
6
|
-
xmlns:svg="http://www.w3.org/2000/svg"
|
7
|
-
xmlns="http://www.w3.org/2000/svg"
|
8
|
-
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
9
|
-
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
10
|
-
viewBox="0 0 128 128"
|
11
|
-
id="svg2"
|
12
|
-
version="1.1"
|
13
|
-
inkscape:version="0.48.3.1 r9886"
|
14
|
-
width="100%"
|
15
|
-
height="100%"
|
16
|
-
sodipodi:docname="spanner.svg">
|
17
|
-
<metadata
|
18
|
-
id="metadata18">
|
19
|
-
<rdf:RDF>
|
20
|
-
<cc:Work
|
21
|
-
rdf:about="">
|
22
|
-
<dc:format>image/svg+xml</dc:format>
|
23
|
-
<dc:type
|
24
|
-
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
25
|
-
</cc:Work>
|
26
|
-
</rdf:RDF>
|
27
|
-
</metadata>
|
28
|
-
<defs
|
29
|
-
id="defs16" />
|
30
|
-
<sodipodi:namedview
|
31
|
-
pagecolor="#ffffff"
|
32
|
-
bordercolor="#666666"
|
33
|
-
borderopacity="1"
|
34
|
-
objecttolerance="10"
|
35
|
-
gridtolerance="10"
|
36
|
-
guidetolerance="10"
|
37
|
-
inkscape:pageopacity="0"
|
38
|
-
inkscape:pageshadow="2"
|
39
|
-
inkscape:window-width="1280"
|
40
|
-
inkscape:window-height="1002"
|
41
|
-
id="namedview14"
|
42
|
-
showgrid="false"
|
43
|
-
inkscape:zoom="2.8284271"
|
44
|
-
inkscape:cx="98.928938"
|
45
|
-
inkscape:cy="62.194589"
|
46
|
-
inkscape:window-x="1912"
|
47
|
-
inkscape:window-y="-8"
|
48
|
-
inkscape:window-maximized="1"
|
49
|
-
inkscape:current-layer="g3767"
|
50
|
-
inkscape:document-units="in"
|
51
|
-
units="px"
|
52
|
-
showguides="true"
|
53
|
-
inkscape:guide-bbox="true" />
|
54
|
-
<g
|
55
|
-
id="g3767"
|
56
|
-
transform="matrix(0.24961486,0,0,0.24961486,0.197194,96.049335)">
|
57
|
-
<rect
|
58
|
-
ry="67.108368"
|
59
|
-
y="-378.68747"
|
60
|
-
x="5.3126979"
|
61
|
-
height="501.3746"
|
62
|
-
width="501.3746"
|
63
|
-
id="backdrop"
|
64
|
-
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:10.62539577;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
|
65
|
-
inkscape:label="#rect3765" />
|
66
|
-
<path
|
67
|
-
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
68
|
-
d="M 36.267098,-7.709219 C 16.393265,5.1318032 3.2161811,27.462365 3.2161811,52.884128 c 0,39.825874 32.2852369,72.111092 72.1110909,72.111092 23.870397,0 44.964938,-11.67699 58.089488,-29.545518 -11.26063,7.275808 -24.65607,11.517748 -39.060173,11.517748 -39.825853,0 -72.11109,-32.285221 -72.11109,-72.111095 0,-15.95546 5.248882,-30.6218942 14.021601,-42.565574 z"
|
69
|
-
id="path3790"
|
70
|
-
inkscape:connector-curvature="0" />
|
71
|
-
<g
|
72
|
-
id="g6"
|
73
|
-
transform="matrix(18.68858,0,0,18.68858,-3385.6437,-2608.3849)">
|
74
|
-
<path
|
75
|
-
style="fill:#ffffff"
|
76
|
-
inkscape:connector-curvature="0"
|
77
|
-
id="path8"
|
78
|
-
d="m 192.2325,129.3203 -10,10 v 5.5625 h 5.375 l 10.0938,-10.0938 -5.4688,-5.4688 z" />
|
79
|
-
<path
|
80
|
-
style="fill:#ffffff;stroke:#000000"
|
81
|
-
inkscape:connector-curvature="0"
|
82
|
-
id="path10"
|
83
|
-
d="m 181.7796,141.8591 15.6196,-15.6178 m 3.349,3.3486 -15.8051,15.8032" />
|
84
|
-
<path
|
85
|
-
style="fill:#ffffff"
|
86
|
-
inkscape:connector-curvature="0"
|
87
|
-
id="path12"
|
88
|
-
d="m 201.2023,119.7104 c -2.8283,-0.73 -5.9623,-0.004 -8.1759,2.2097 -3.3293,3.3292 -3.3293,8.7358 -2e-5,12.065 3.32928,3.3292 8.7358,3.3292 12.065,0 2.216,-2.216 2.9436,-5.3452 2.2097,-8.1759 l -5.6348,5.6348 -4.8172,-1.2816 -1.2816,-4.8171 5.6348,-5.6348 z" />
|
89
|
-
</g>
|
90
|
-
</g>
|
91
|
-
</svg>
|
data/benchmarks/tons_of_png.rb
DELETED
data/benchmarks/tons_of_svg.rb
DELETED
data/benchmarks/tons_of_text.rb
DELETED
data/docs/Makefile
DELETED
@@ -1,216 +0,0 @@
|
|
1
|
-
# Makefile for Sphinx documentation
|
2
|
-
#
|
3
|
-
|
4
|
-
# You can set these variables from the command line.
|
5
|
-
SPHINXOPTS =
|
6
|
-
SPHINXBUILD = sphinx-build
|
7
|
-
PAPER =
|
8
|
-
BUILDDIR = _build
|
9
|
-
|
10
|
-
# User-friendly check for sphinx-build
|
11
|
-
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
|
12
|
-
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
|
13
|
-
endif
|
14
|
-
|
15
|
-
# Internal variables.
|
16
|
-
PAPEROPT_a4 = -D latex_paper_size=a4
|
17
|
-
PAPEROPT_letter = -D latex_paper_size=letter
|
18
|
-
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
19
|
-
# the i18n builder cannot share the environment and doctrees with the others
|
20
|
-
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
21
|
-
|
22
|
-
.PHONY: help
|
23
|
-
help:
|
24
|
-
@echo "Please use \`make <target>' where <target> is one of"
|
25
|
-
@echo " html to make standalone HTML files"
|
26
|
-
@echo " dirhtml to make HTML files named index.html in directories"
|
27
|
-
@echo " singlehtml to make a single large HTML file"
|
28
|
-
@echo " pickle to make pickle files"
|
29
|
-
@echo " json to make JSON files"
|
30
|
-
@echo " htmlhelp to make HTML files and a HTML help project"
|
31
|
-
@echo " qthelp to make HTML files and a qthelp project"
|
32
|
-
@echo " applehelp to make an Apple Help Book"
|
33
|
-
@echo " devhelp to make HTML files and a Devhelp project"
|
34
|
-
@echo " epub to make an epub"
|
35
|
-
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
|
36
|
-
@echo " latexpdf to make LaTeX files and run them through pdflatex"
|
37
|
-
@echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
|
38
|
-
@echo " text to make text files"
|
39
|
-
@echo " man to make manual pages"
|
40
|
-
@echo " texinfo to make Texinfo files"
|
41
|
-
@echo " info to make Texinfo files and run them through makeinfo"
|
42
|
-
@echo " gettext to make PO message catalogs"
|
43
|
-
@echo " changes to make an overview of all changed/added/deprecated items"
|
44
|
-
@echo " xml to make Docutils-native XML files"
|
45
|
-
@echo " pseudoxml to make pseudoxml-XML files for display purposes"
|
46
|
-
@echo " linkcheck to check all external links for integrity"
|
47
|
-
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
|
48
|
-
@echo " coverage to run coverage check of the documentation (if enabled)"
|
49
|
-
|
50
|
-
.PHONY: clean
|
51
|
-
clean:
|
52
|
-
rm -rf $(BUILDDIR)/*
|
53
|
-
|
54
|
-
.PHONY: html
|
55
|
-
html:
|
56
|
-
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
57
|
-
@echo
|
58
|
-
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
59
|
-
|
60
|
-
.PHONY: dirhtml
|
61
|
-
dirhtml:
|
62
|
-
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
|
63
|
-
@echo
|
64
|
-
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
|
65
|
-
|
66
|
-
.PHONY: singlehtml
|
67
|
-
singlehtml:
|
68
|
-
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
|
69
|
-
@echo
|
70
|
-
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
|
71
|
-
|
72
|
-
.PHONY: pickle
|
73
|
-
pickle:
|
74
|
-
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
|
75
|
-
@echo
|
76
|
-
@echo "Build finished; now you can process the pickle files."
|
77
|
-
|
78
|
-
.PHONY: json
|
79
|
-
json:
|
80
|
-
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
|
81
|
-
@echo
|
82
|
-
@echo "Build finished; now you can process the JSON files."
|
83
|
-
|
84
|
-
.PHONY: htmlhelp
|
85
|
-
htmlhelp:
|
86
|
-
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
|
87
|
-
@echo
|
88
|
-
@echo "Build finished; now you can run HTML Help Workshop with the" \
|
89
|
-
".hhp project file in $(BUILDDIR)/htmlhelp."
|
90
|
-
|
91
|
-
.PHONY: qthelp
|
92
|
-
qthelp:
|
93
|
-
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
|
94
|
-
@echo
|
95
|
-
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
|
96
|
-
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
|
97
|
-
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/Squib.qhcp"
|
98
|
-
@echo "To view the help file:"
|
99
|
-
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/Squib.qhc"
|
100
|
-
|
101
|
-
.PHONY: applehelp
|
102
|
-
applehelp:
|
103
|
-
$(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
|
104
|
-
@echo
|
105
|
-
@echo "Build finished. The help book is in $(BUILDDIR)/applehelp."
|
106
|
-
@echo "N.B. You won't be able to view it unless you put it in" \
|
107
|
-
"~/Library/Documentation/Help or install it in your application" \
|
108
|
-
"bundle."
|
109
|
-
|
110
|
-
.PHONY: devhelp
|
111
|
-
devhelp:
|
112
|
-
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
|
113
|
-
@echo
|
114
|
-
@echo "Build finished."
|
115
|
-
@echo "To view the help file:"
|
116
|
-
@echo "# mkdir -p $$HOME/.local/share/devhelp/Squib"
|
117
|
-
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/Squib"
|
118
|
-
@echo "# devhelp"
|
119
|
-
|
120
|
-
.PHONY: epub
|
121
|
-
epub:
|
122
|
-
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
|
123
|
-
@echo
|
124
|
-
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
|
125
|
-
|
126
|
-
.PHONY: latex
|
127
|
-
latex:
|
128
|
-
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
129
|
-
@echo
|
130
|
-
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
|
131
|
-
@echo "Run \`make' in that directory to run these through (pdf)latex" \
|
132
|
-
"(use \`make latexpdf' here to do that automatically)."
|
133
|
-
|
134
|
-
.PHONY: latexpdf
|
135
|
-
latexpdf:
|
136
|
-
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
137
|
-
@echo "Running LaTeX files through pdflatex..."
|
138
|
-
$(MAKE) -C $(BUILDDIR)/latex all-pdf
|
139
|
-
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
140
|
-
|
141
|
-
.PHONY: latexpdfja
|
142
|
-
latexpdfja:
|
143
|
-
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
144
|
-
@echo "Running LaTeX files through platex and dvipdfmx..."
|
145
|
-
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
|
146
|
-
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
147
|
-
|
148
|
-
.PHONY: text
|
149
|
-
text:
|
150
|
-
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
|
151
|
-
@echo
|
152
|
-
@echo "Build finished. The text files are in $(BUILDDIR)/text."
|
153
|
-
|
154
|
-
.PHONY: man
|
155
|
-
man:
|
156
|
-
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
|
157
|
-
@echo
|
158
|
-
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
|
159
|
-
|
160
|
-
.PHONY: texinfo
|
161
|
-
texinfo:
|
162
|
-
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
163
|
-
@echo
|
164
|
-
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
|
165
|
-
@echo "Run \`make' in that directory to run these through makeinfo" \
|
166
|
-
"(use \`make info' here to do that automatically)."
|
167
|
-
|
168
|
-
.PHONY: info
|
169
|
-
info:
|
170
|
-
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
171
|
-
@echo "Running Texinfo files through makeinfo..."
|
172
|
-
make -C $(BUILDDIR)/texinfo info
|
173
|
-
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
|
174
|
-
|
175
|
-
.PHONY: gettext
|
176
|
-
gettext:
|
177
|
-
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
|
178
|
-
@echo
|
179
|
-
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
|
180
|
-
|
181
|
-
.PHONY: changes
|
182
|
-
changes:
|
183
|
-
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
|
184
|
-
@echo
|
185
|
-
@echo "The overview file is in $(BUILDDIR)/changes."
|
186
|
-
|
187
|
-
.PHONY: linkcheck
|
188
|
-
linkcheck:
|
189
|
-
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
|
190
|
-
@echo
|
191
|
-
@echo "Link check complete; look for any errors in the above output " \
|
192
|
-
"or in $(BUILDDIR)/linkcheck/output.txt."
|
193
|
-
|
194
|
-
.PHONY: doctest
|
195
|
-
doctest:
|
196
|
-
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
197
|
-
@echo "Testing of doctests in the sources finished, look at the " \
|
198
|
-
"results in $(BUILDDIR)/doctest/output.txt."
|
199
|
-
|
200
|
-
.PHONY: coverage
|
201
|
-
coverage:
|
202
|
-
$(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
|
203
|
-
@echo "Testing of coverage in the sources finished, look at the " \
|
204
|
-
"results in $(BUILDDIR)/coverage/python.txt."
|
205
|
-
|
206
|
-
.PHONY: xml
|
207
|
-
xml:
|
208
|
-
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
|
209
|
-
@echo
|
210
|
-
@echo "Build finished. The XML files are in $(BUILDDIR)/xml."
|
211
|
-
|
212
|
-
.PHONY: pseudoxml
|
213
|
-
pseudoxml:
|
214
|
-
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
|
215
|
-
@echo
|
216
|
-
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
|
@@ -1,23 +0,0 @@
|
|
1
|
-
@import url("theme.css");
|
2
|
-
|
3
|
-
/* Can add custom styling here */
|
4
|
-
.attribution{
|
5
|
-
text-align: right;
|
6
|
-
}
|
7
|
-
|
8
|
-
code.literal span.pre{
|
9
|
-
color: black;
|
10
|
-
}
|
11
|
-
|
12
|
-
code.code_img{
|
13
|
-
width: 50%;
|
14
|
-
}
|
15
|
-
|
16
|
-
code.code_img_small{
|
17
|
-
width: 33%;
|
18
|
-
}
|
19
|
-
|
20
|
-
.figure{
|
21
|
-
border: 1pt solid black;
|
22
|
-
box-shadow: 5px 5px 8px #333;
|
23
|
-
}
|
data/docs/args/draw.rst
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
.. :orphan:
|
2
|
-
|
3
|
-
fill_color
|
4
|
-
default: ``'#0000'`` (fully transparent)
|
5
|
-
|
6
|
-
the color or gradient to fill with. See :doc:`/colors`.
|
7
|
-
|
8
|
-
|
9
|
-
stroke_color
|
10
|
-
default: ``:black``
|
11
|
-
|
12
|
-
the color with which to stroke the outside of the shape. See :doc:`/colors`.
|
13
|
-
|
14
|
-
|
15
|
-
stroke_width
|
16
|
-
default: ``2``
|
17
|
-
|
18
|
-
the width of the outside stroke. Supports :doc:`/units`.
|
19
|
-
|
20
|
-
|
21
|
-
stroke_strategy
|
22
|
-
default: ``:fill_first``
|
23
|
-
|
24
|
-
Specify whether the stroke is done before (thinner) or after (thicker) filling the shape.
|
25
|
-
|
26
|
-
Must be either ``:fill_first`` or ``:stroke_first`` (or their string equivalents).
|
27
|
-
|
28
|
-
dash
|
29
|
-
default: ``''`` (no dash pattern set)
|
30
|
-
|
31
|
-
Define a dash pattern for the stroke. This is a special string with space-separated numbers that define the pattern of on-and-off alternating strokes, measured in pixels or units. For example, ``'0.02in 0.02in'`` will be an equal on-and-off dash pattern. Supports :doc:`/units`.
|
32
|
-
|
33
|
-
cap
|
34
|
-
default: ``:butt``
|
35
|
-
|
36
|
-
Define how the end of the stroke is drawn. Options are ``:square``, ``:butt``, and ``:round`` (or string equivalents of those).
|