Andy Meneely
4d1661ac0b
Convert hand method to args classes
10 years ago
Andy Meneely
3f2b057466
Convert save_sheet and save_pdf to args classes
10 years ago
Andy Meneely
bcc6d355d2
Convert showcase to args classes
10 years ago
Andy Meneely
f8a18cdbce
Finished porting of save_png over to args classes
10 years ago
Andy Meneely
4aee48dada
Working on save args
10 years ago
Andy Meneely
354a97f100
Add validation to text embed key
10 years ago
Andy Meneely
40ac6d2b6b
Expanding the Working With Text section
...
[skip ci]
11 years ago
Andy Meneely
7de39618fe
Update regression tests for text
11 years ago
Andy Meneely
19767c54c4
Implement stroke_strategy option for all drawing operations
...
Fixes #102
11 years ago
Andy Meneely
5bbde3a259
Fix compatibility with rspec 3.3
11 years ago
Andy Meneely
e03a97ce7e
Add :scale shortcut to width/height of png and svg
...
Allows scaling while keeping the aspect ratio
Closes #91
11 years ago
Andy Meneely
7c756e468d
Remove dead code
11 years ago
Andy Meneely
8f977f5956
Update text_options.rb sample, and expected output
11 years ago
Andy Meneely
9d475995e8
Pango scaling of "spacing" in text is done once
...
Spacing also defaults to nil, not zero, as before
Fixes #98
11 years ago
Andy Meneely
54185fe9eb
Warn on non-existing layout
...
Fix #99 and refactor args_loader a bit
11 years ago
Andy Meneely
cddea47ba5
Upgrade Roo to 2.1.x
...
Looks like the main difference is that xlsm is now supported, so I added test for it.
11 years ago
Andy Meneely
70a5f48bda
Add nil check for colors, just in case
...
Probably not possible, but provides a more descriptive error than before anyway.
Fixes #84 .
11 years ago
Andy Meneely
f21e9448e1
Warn when text is ellipsized
...
Closes #80
11 years ago
Andy Meneely
92d866548c
Cleanup of img_dir and testing of input_file.rb
11 years ago
Andy Meneely
04ac3f730a
Fix mock object tests
11 years ago
Andy Meneely
336c43069a
Removing an over-engineered test
11 years ago
Andy Meneely
e20c644a9a
Implemented new args design for svg and png
...
As part of that implementation, text_embed now supports singleton expansion. Closes #54
11 years ago
Andy Meneely
ff3d057d49
Add a force_id: true example to load_images
11 years ago
Andy Meneely
25b13fd592
Better ability to handle per-dsl-method defaults
11 years ago
Andy Meneely
08d0ac2b60
Starting paint args class - not integrated yet.
...
Draw args also now requires custom_colors from Deck. (Can't trust caller to override the default.)
11 years ago
Andy Meneely
37a7210751
New spec for validating line caps
...
Because I'm obsessed with code coverage.
11 years ago
Andy Meneely
c66c6bc4f0
Removed img_dir from set method, added specs
11 years ago
Melody
8674d8d946
updates rowify specs to merge default options and cover new test case
11 years ago
Andy Meneely
e43f68d323
Ported text command over to the new args classes
...
* Involved a big rewrite of arg_loader to accomodate nil and false better. Sadly this meant dumping ||= for if-statements. Blech, but works.
* Updates to regression tests are pretty trivial.
* Removed graphics_text_spec because, even though it looks useful, with rake sanity it really isn't.
* Exposed font on deck as well
Cleaned up graphics/text.rb too!
11 years ago
Andy Meneely
cc5c540be8
Updated regression specs
...
Mostly from changing colorify to always converting to a string
New ranges example for the idiom
New text options example for dotted
[skip ci]
11 years ago
Andy Meneely
2dd3fc3365
Documented a range idiom
...
In reaction to #90
[skip ci]
11 years ago
Andy Meneely
6aecdbbb4a
Adding custom colors to the draw arg
11 years ago
Andy Meneely
f16f285a0a
Update expected draw_shapes.rb PNG for sanity test
11 years ago
Andy Meneely
b5903293d7
Layouts use strings as keys, so that must be realistic
11 years ago
Andy Meneely
c5e00f1877
Employing the new args refactoring on all shapes
11 years ago
Andy Meneely
8a7841d64f
Add dash option to drawing operations
...
Currently only impacts rect, but it will impact others with the new design shortly
11 years ago
Andy Meneely
12c5cd675b
Added line cap and join settings for rect and curve
...
More forthcoming - these are proof-of-concept
11 years ago
Andy Meneely
c1e410fe72
First foray into args class refactoring: rect
...
So far, I really like this approach. It allows us to push validation logic out of the Card class and into its own set of classes that can be more easily tested.
Fixes #75 , but we've got a lot more work to do in getting this full scale
11 years ago
Andy Meneely
6c60f21bb0
Refactored drawing to get fill_n_stroke
...
Contributes to #75
11 years ago
Andy Meneely
9801188b47
Update expected png for star
11 years ago
Andy Meneely
d957addfc3
Enabling regression tests again
11 years ago
Andy Meneely
3bbc787025
Add polygon method to dsl
...
Testing and documentation too.
Closes #67
11 years ago
Andy Meneely
0853b6a708
Finish regression testing of star
11 years ago
Andy Meneely
b8536bcabe
Regression and sanity testing for star
...
Closes #72
11 years ago
Andy Meneely
a86974d5b8
Regression and sanity testing
11 years ago
Andy Meneely
dab544a53b
Add ellipse method
...
Also experimenting with using stroke_preserve, which in turn may make the other methods less repetitive.
Closes #66
11 years ago
Andy Meneely
ac7769237c
Fix the csv_import.rb sample to function properly
11 years ago
Andy Meneely
71defb9e33
Fix color handling with text outline stroking
...
Needed to set squibcolor prior to translating the coordinate system so that gradients are relative to the card (as is documented). This also means stroking is done AFTER drawing the text, which looks better anyway.
11 years ago
Andy Meneely
2e84cf4e6a
Update load_images expected png for sanity testing
11 years ago
Andy Meneely
e974880e03
Add 'data' field to svg method for loading XML directly
...
Implements #65
11 years ago