Commit Graph

491 Commits (27b3be4744a7e70d74797a6f7f4970b3215d160e)

Author SHA1 Message Date
Andy Meneely b25f0d535b drop shadows! they're a thing now.
Fixes #306, #264
2021-07-23 11:01:41 -04:00
Andy Meneely d92aab4bf3 add fonts methods
Fixes #334
2021-07-22 15:09:45 -04:00
Andy Meneely f8c0e1b129 rows arg in save_sheet is always respected
fixes #332
2021-05-13 22:39:52 -04:00
Andy Meneely b50a3270a4 Onward and upward 2020-11-25 00:32:50 -05:00
Andy Meneely 2a3ce44cc0 i dub thee v0.16 2020-11-24 23:19:03 -05:00
Andy Meneely 8ec92cdfd4 i dub thee v0.16.0-preview2 2020-11-24 23:05:43 -05:00
Andy Meneely 11d550f3df make shorthands more intuitive 2020-11-24 12:16:54 -05:00
Andy Meneely 02d02ac125 don't save things to img_dir 2020-11-23 11:07:55 -05:00
Andy Meneely 754636de39 i dub thee v0.16.0-preview1 2020-11-19 10:06:18 -05:00
Andy Meneely cd3bf1b3f2 add suffix option
closes #268
2020-11-19 00:14:04 -05:00
Andy Meneely 34ce3e84a3 leave note for DPI setting 2020-11-18 00:22:12 -05:00
Andy Meneely ea9a749d52 fix capitalization issue 2020-11-17 23:51:11 -05:00
Andy Meneely 93a0d56eda woof this was a big change but ok
Add cell_px everywhere we have dpi

This might be smelly. Sorry, Mr. Fowler and Prof. Frens...
2020-11-17 23:40:15 -05:00
Andy Meneely b304bf39e4 starting documenting xywh_shorthands 2020-11-17 22:22:38 -05:00
Andy Meneely 82afdf1608 unit testing, more samples 2020-11-17 14:17:37 -05:00
Andy Meneely f8eaf757a2 Lots more implementation
* implement middle+/-
* cells unit
* samples for both
* moved shorthands to the units/ field

Note: cell_px is currently unconfigurable
2020-11-17 12:17:48 -05:00
Andy Meneely 2969957c5b shorthands for xywh! initial implementation 2020-10-06 15:58:57 -04:00
Andy Meneely 4003e00e2a refactoring to get middle/center, possibly more 2020-10-05 11:27:49 -04:00
Andy Meneely 0de6b31ad7 Deal with extra/no page issue with sprues
Also rename things so we number at zero.

Fixes #320
2020-10-04 15:53:16 -04:00
Andy Meneely 845778a574 cleanup requires and docs 2020-10-02 14:22:14 -04:00
Andy Meneely 5d3ead1284 ported csv and yaml over 2020-10-02 14:18:08 -04:00
Andy Meneely 9b0602a50c ported xlsx over 2020-10-02 13:44:42 -04:00
Andy Meneely ca96a0e857 Merge branch 'dev' into args-refactor-forrealsies 2020-10-02 09:06:55 -04:00
Andy Meneely 9dfc3bf6c9 png returns save_png 2020-09-29 11:28:38 -04:00
Andy Meneely 272892d358 text method migrated! 2020-05-16 20:00:45 -04:00
Adam Blinkinsop 20f2063e67
Keyword arguments need ** (bare is deprecated) (#303)
* Fix typos in the yaml documentation.

* Fix keyword params deprecation warning.

.../squib/lib/squib/api/data.rb:42: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/blinks/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/csv.rb:679: warning: The called method `parse' is defined here
2020-04-08 16:52:48 -04:00
Andy Meneely 3590280c98 don't need this 2020-03-21 19:21:48 -04:00
Andy Meneely 9ef4afc2e6 converted the rest! 2020-03-20 23:07:14 -04:00
Andy Meneely 4b664d2061 converting a bunch over now, new rspec tests 2020-03-18 14:10:37 -04:00
Andy Meneely 21bee3a3cb cleanup module definitions 2020-03-16 17:08:10 -04:00
Andy Meneely 77a694f797 partway through the conversion 2020-03-16 16:38:13 -04:00
Andy Meneely 70b3c0b136 cleaner method sigs 2020-03-16 14:21:59 -04:00
Andy Meneely 76ef45cfa4 documentation specs, beginning cleaner conversion 2020-03-13 10:38:34 -04:00
Andy Meneely 750cb40267 cleanup 2020-03-13 08:38:10 -04:00
Andy Meneely 02bf443abf cleanup 2020-03-11 17:19:02 -04:00
Andy Meneely 6774f83b00 cleaning up 2020-03-11 16:38:13 -04:00
Andy Meneely 51d425caa7 colored text! 2020-03-11 11:39:21 -04:00
Andy Meneely 871674c909 built a nifty, useful error message thingy 2020-03-09 09:52:22 -04:00
Mirko K 6d57b3e8c1 Feat/font autoscale (#288)
* PoC font autosize feature

* Take enumerables or 'auto' keyword for autoscaling

* Allo enumerables of font_size per card, where the largest font size that does not ellipsize is chosen

* Use ellipsize: :autoscale keyword to determine font autosizing

* Use binary search to find the correct font size

* Consider new ellipsize option in testcase

* Document ellipsize: :autoscale option

* Add ellipsize: :autoscale sample to text sample

* Fix double multiplication with Pango::SCALE

* Scale embedded images with text when autoscaling

* Remove stray semicolon

* Return dummy value for FontDescription.size in mock_cairo

* Update regression test data for autoscale feature.

* Add ellipsize: :autoscale example to existing font_autoscale sample

* Add missing :autoscale to list of options in documentation
2019-10-17 11:29:14 -04:00
Andy Meneely 43cca582a6 Onward and upward 2019-10-17 11:15:22 -04:00
Andy Meneely 28f6cdcbcb I dub thee v0.15.3 2019-10-17 11:11:37 -04:00
Andy Meneely 2eee20c0cc I dub thee v0.15.2 2019-09-26 16:03:19 -04:00
Andy Meneely 6b705ab8fb Onward and upward 2019-08-06 14:09:20 -04:00
Andy Meneely eb0bebe149 I dub thee v0.15.0 2019-08-06 13:36:31 -04:00
Andy Meneely 1accadfc30 Merge in PR #272
Fix sheet size for 1-card-per-sheet PDFs and adjust coordinates when
using trim #272
2019-06-07 15:43:40 -04:00
Andy Meneely cb66d7c31d
Flip options for sprues (#251) (#277)
* Flipping works, now just need new argument

* Finishing up

* New test data
2019-06-07 15:23:15 -04:00
Andy Meneely a40c4d7dc4 Cleaner handling of SVG ID 2019-05-29 14:20:03 -04:00
Andy Meneely 89c0e6625d xlsx, csv, yaml: explode defaults to "qty" (#262)
Not "Qty"
2019-05-24 11:23:19 -04:00
Andy Meneely 8c4c0e0137 showcase: trim_radius still defaults to 38px
docs reflect that now too
2019-05-24 10:49:55 -04:00
Andy Meneely 9ceb010402 save_pdf: default trim_radius to 0, not 38 (#270) 2019-05-24 10:36:42 -04:00