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...
5 years ago
Andy Meneely
82afdf1608
unit testing, more samples
5 years ago
Andy Meneely
2969957c5b
shorthands for xywh! initial implementation
5 years ago
Andy Meneely
4003e00e2a
refactoring to get middle/center, possibly more
5 years ago
Andy Meneely
0de6b31ad7
Deal with extra/no page issue with sprues
...
Also rename things so we number at zero.
Fixes #320
5 years ago
Andy Meneely
b4f3dbc5eb
fix default Qty field
5 years ago
Andy Meneely
9b0602a50c
ported xlsx over
5 years ago
Andy Meneely
f5c41dd5c2
update coveralls setup
5 years ago
Andy Meneely
272892d358
text method migrated!
6 years ago
Andy Meneely
9ef4afc2e6
converted the rest!
6 years ago
Andy Meneely
fc3908533f
not ready to do this test yet
6 years ago
Andy Meneely
4b664d2061
converting a bunch over now, new rspec tests
6 years ago
Andy Meneely
77a694f797
partway through the conversion
6 years ago
Andy Meneely
76ef45cfa4
documentation specs, beginning cleaner conversion
6 years ago
Andy Meneely
750cb40267
cleanup
6 years ago
Andy Meneely
42a73f602f
update to new format
6 years ago
Andy Meneely
7804b5459d
add new test for my own sanity
6 years ago
Andy Meneely
abe772f804
update regressions
6 years ago
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
6 years ago
Andy Meneely
f638fec87a
test cleanup
6 years ago
Andy Meneely
cb66d7c31d
Flip options for sprues ( #251 ) ( #277 )
...
* Flipping works, now just need new argument
* Finishing up
* New test data
7 years ago
Andy Meneely
a40c4d7dc4
Cleaner handling of SVG ID
7 years ago
Andy Meneely
89c0e6625d
xlsx, csv, yaml: explode defaults to "qty" ( #262 )
...
Not "Qty"
7 years ago
Andy Meneely
5a8b3c5fcd
png: check magic bytes for well-formed files
...
Closes #$250
7 years ago
Andy Meneely
248eb2fb91
Layout multiple inheritance works with operators
...
The case of using relative operators and multiple inheritance is handled now.
Fixes #244
7 years ago
Andy Meneely
aada86a070
Fix extra stroke on circle, fix #248
7 years ago
Andy Meneely
2020b5a67a
sanity: fixing lots of tests
...
apparently i totally borked a lot of sanity tests. should be fixed now.
BORK BORK BORK
8 years ago
Andy Meneely
60ca032d2d
cli: unit tests for advanced template
8 years ago
Andy Meneely
498a8224e7
samples: fix to be more consistent
8 years ago
Andy Meneely
2362e189d7
new methods: safe_zone and cut_zone
8 years ago
Andy Meneely
d07fd1f478
regression fix
8 years ago
Damien Salvador
44b899181a
save_pdf: right-to-left support
...
# Conflicts:
# CHANGELOG.md
8 years ago
Clarence "Sparr" Risher
8509ab5728
change x= to *=, add unit tests and improve existing tests
8 years ago
Clarence Sparr Risher
2a86b8f215
fix save_sheet to calculate rows correctly based on range
...
Based on PR #207
8 years ago
Seh Hui, Leong
f800c131ff
Respect DPI settings in text, add pt unit
...
This has the compatibility impact that all font sizes should be divided by 3 to maintain their same sizes.
Based on PR #225 . Thanks @felixleong!!
Conflicts:
bin/squib
lib/squib/graphics/text.rb
8 years ago
Andy Meneely
3ccc6432ab
sprues: better validation errors
8 years ago
Andy Meneely
283c82dfe8
fix downgrade of ClassyHash
...
I should run my unit tests before pushing lol
9 years ago
Andy Meneely
c969f8ecf4
spec: add a test for making a new sprue
9 years ago
Andy Meneely
391193812d
sprues: upgrade to classy_hash 0.2.0
9 years ago
Andy Meneely
0d076b1e85
sprues: rename "template" to "sprue"
...
Also:
* Move stuff around to a builtin/ folder
* Separate out classes to follow my one-class-per-file convention
* Samples are renamed to the underscore convention
I just like the word "sprue", and it's more descriptive than our original choice of "template". If I had to start Squib all over again, I would probably name it "Sprue" :P
9 years ago
Seh Hui, Leong
25bf0d7a67
Squash @felixleong's pdf-template feature.
...
I will be making revisions based on this, but this is all of his hard work.
Thank you!!!
Conflicts:
squib.gemspec
9 years ago
Andy Meneely
10e63c845f
Rollup of v0.13.x fixes
...
See v0.13-fixes branch for individual fixes
Conflicts:
CHANGELOG.md
lib/squib/version.rb
squib.gemspec
9 years ago
Andy Meneely
d94a3e676b
Fix for latest dep changes
9 years ago
Andy Meneely
f140ff32fa
Cleanup and tests of yaml method
9 years ago
Andy Meneely
824a28c87d
Document and test rtl option
9 years ago
Andy Meneely
a55300f844
more tests for circle arc
...
Also document it in the CHANGELOG.
9 years ago
Clarence "Sparr" Risher
ebba554b5d
update existing tests for new functionality
9 years ago
Andy Meneely
1cdc9c0d71
samples: reorganize for better sanity
...
Converted to a more consistent organization of each folder for groups of samples
Contributes to #118
9 years ago
Andy Meneely
5152651813
rake sanity: img diff'ing with CSS blending
...
Got CSS blending properly working for diff'ing images so we can do a quick sanity test on all the samples before releasing.
Works toward #118
9 years ago
Andy Meneely
c267e1dda7
spec: rip out flaky mock object test
9 years ago