Commit graph

38 commits

Author SHA1 Message Date
adroitwhiz
c3c51d29f6 Merge commit '7bb34e4' into merge-latest-paper 2020-05-29 12:26:53 -04:00
Jürg Lehni
db82f41151 Update year, author email addresses and links 2020-05-23 22:24:42 +02:00
adroitwhiz
1352e3d3d2 Fix raster smoothing test 2020-05-16 04:56:53 -04:00
DD Liu
eab98477cb
Revert "Merge paper.js 0.12.3" 2020-04-30 11:43:22 -04:00
adroitwhiz
fbd0de1925 Merge paper.js 0.12.3 2019-11-08 21:16:48 -05:00
sasensi
314390d789 Improve new Raster(size[, position]) constructor
Closes #1621
2019-06-07 22:25:44 +02:00
sapics
be4199b6eb Update copyright year to 2019 2018-12-27 16:13:01 +09:00
sapics
cfc5a912da Replace url to avoid redirection
Replace http://jonathanpuckey.com to https://puckey.studio
2018-11-14 11:24:32 +01:00
Jürg Lehni
28dec90a88 Wrap up Raster#smoothing feature 2018-10-03 19:01:02 +02:00
sasensi
07ae09a76a Fix #1521 adding raster.smoothing property 2018-09-30 18:46:02 +02:00
Jürg Lehni
e539633852 Implement new and shorter segments array notation.
Supporting:

- Closing paths by including `true` as the last entry
- Nested segment arrays that can be passed to PathItem.create() and the CompoundPath constructor to create all sub-paths
2016-07-19 13:08:21 +02:00
Jürg Lehni
5a9f3dfb27 Improve handling of local paths and CORS on Node.js 2016-04-05 12:11:54 -07:00
Jürg Lehni
567f286774 Tests: Switch to our own gulp-qunits module.
Since it handles PhantomJS as well as Node.js execution, and formats errors identically and quickly.
2016-01-31 12:43:38 +01:00
Jürg Lehni
4c84c3dad5 Tests: Start getting QUnit tests to work on Node.js
Work in progress…
2016-01-31 12:43:20 +01:00
Jürg Lehni
0b991cefdd Only mark an image as loaded if it actually has src set and is complete. 2016-01-27 10:45:39 +01:00
Jürg Lehni
a7a07fb6d5 Update JSDoc and do some documentation spring-cleaning.
- Convert from {@code ...} to shorter `...`
- Reformat some documentation comment blocks
- Update copyright notices
2015-12-30 21:55:19 +01:00
Jürg Lehni
4ad8875a8c Install qunitjs module as a NPM dev dependency. 2015-07-27 12:25:45 +02:00
Jürg Lehni
5f42020869 Increase tolerances in #getAverageColor() tests.
The phantomjs canvas appear to produce less precise results.
2015-07-27 10:03:11 +02:00
Jürg Lehni
c5a2a51f3e Implement unit test comparator for Color and improve new comparator code. 2014-12-28 15:21:38 +01:00
Jürg Lehni
e95e17826e Start cleaning up unit tests by introducing new class/type-based comparators lookup table. 2014-12-28 14:33:22 +01:00
Jürg Lehni
48cb05a181 Replace tabs with 4 white-spaces. 2014-08-16 19:24:54 +02:00
Jürg Lehni
a1c74b8fd3 Explicitly state raster resolution in unit tests.
Since #rasterize() uses the HiDPI resolution if present now.
2014-03-18 11:20:50 +01:00
Jürg Lehni
e22fa3a664 Update copyright notice. 2014-01-04 01:47:16 +01:00
Jürg Lehni
cc565b3fe2 Rename Raster#getSubImage() to #getSubCanvas(), and use insert: false combined with #insertAbove() to correctly insert newly created rasters. 2013-08-14 12:21:47 -07:00
Jürg Lehni
d1c6b7134f Fix Raster#getAverageColor() to work with new transforms history code. 2013-04-18 16:50:18 -07:00
Jürg Lehni
495eef2ee4 Fix issue with precision and PathItem#getAverageColor() tests. 2013-04-09 08:40:41 -07:00
Jürg Lehni
e7c6bf3d9b Fix more Color tests. 2013-04-08 07:27:30 -07:00
Jürg Lehni
8292112ecd More work on Color and testing. 2013-04-08 07:07:41 -07:00
Jürg Lehni
0aa6c66681 Start refactoring Color tests. 2013-04-08 00:19:47 -07:00
Jürg Lehni
232ea221b4 First batch of large Color refactoring and simplification.
Work in progress.
2013-04-07 10:03:51 -07:00
Jonathan Puckey
a87c9e9a7f Add test for Raster#getAverageColor(compoundPath). 2013-03-17 22:27:44 +01:00
Jonathan Puckey
d7546c0c8d Add failing test for Raster#getAverageColor(path). 2013-03-17 19:24:08 +01:00
Jonathan Puckey
58247ea232 Fix bug in Raster#getSubImage and add test. 2013-03-17 18:57:16 +01:00
Jonathan Puckey
2058bf3438 Add tests for creating a raster from a data url, Raster#getPixel & Raster#setPixel. 2013-03-17 18:41:07 +01:00
Jonathan Puckey
15cdca2a92 Cleanup whitespace in Raster tests. 2013-03-17 18:16:59 +01:00
Jonathan Puckey
9865d7bdd5 Add raster constructor tests, add async test helper function and test image. 2013-03-17 18:13:55 +01:00
Jonathan Puckey
0d3f746c10 Have Raster constructor set Raster#_size to [0, 0] if it was not set. 2013-03-17 17:04:56 +01:00
Jonathan Puckey
15dab4c2db Add failing raster test where creating a raster without a source and then setting its size throws an error. 2013-03-17 16:52:54 +01:00