Commit graph

3584 commits

Author SHA1 Message Date
Jonathan Puckey
4c4258d2e1 Fix Raster#getAverageColor by having Path#draw clip the context, when param.clip is true. 2013-03-17 21:41:46 +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
5777c7a772 Fix problem where calling new Raster().setSize(size) threw an error. 2013-03-17 16:55:57 +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
Jonathan Puckey
f4c1f6a3c1 Remove todo. 2013-03-17 16:40:59 +01:00
Jonathan Puckey
9f466bbc97 Fix mistake in Raster#setPixel. 2013-03-17 16:39:23 +01:00
Jonathan Puckey
6bcb393232 Improve Raster comparison in compareItems test helper. 2013-03-17 16:34:05 +01:00
Jonathan Puckey
a535c106a8 Also compare Item#data in compareItems test helper. 2013-03-17 16:15:58 +01:00
Jonathan Puckey
1732c2cbb2 Use Format.number in compareNumbers test helper with same precision as before. 2013-03-17 15:46:42 +01:00
Jonathan Puckey
4719c05403 Fix comparing of PlacedSymbols in compareItems test helper. 2013-03-17 15:39:00 +01:00
Jonathan Puckey
a2e3759fb8 Tests: fix comparing of GradientColor#hilite. 2013-03-17 15:23:01 +01:00
Jonathan Puckey
35d71e9e33 Improve comparePathStyles test helper. 2013-03-17 15:20:14 +01:00
Jonathan Puckey
1cfe34089a Remove double space in docs. 2013-03-17 15:01:30 +01:00
Jonathan Puckey
8e58084d93 Add initial set of JSON tests. 2013-03-17 14:50:51 +01:00
Jonathan Puckey
69ea1bf3fb Add helper for testing JSON exporting and re-importing of projects. 2013-03-17 14:42:20 +01:00
Jonathan Puckey
00cea46c5d Update jsdoc-toolkit submodule. 2013-03-16 19:32:39 +01:00
Jonathan Puckey
4b87860b30 Add documentation of Path#getLocationOf 2013-03-16 18:39:53 +01:00
Jonathan Puckey
2fa9e7cf5c Add failing test for Path#split, where splitting a straight path should produce linear segments. 2013-03-16 18:08:31 +01:00
Jonathan Puckey
6f490d8b34 Add documentation for Path#split. 2013-03-16 17:59:31 +01:00
Jonathan Puckey
7eda782cfe Clean up item tests. 2013-03-16 16:27:28 +01:00
Jonathan Puckey
a3cb9862a3 Improve expected outcome description of failing test. 2013-03-16 15:46:10 +01:00
Jonathan Puckey
3f2fdbc710 Add failing test for setting a blend mode on an item in a transformed group. 2013-03-16 15:44:04 +01:00
Jonathan Puckey
2b7f526c62 Fix hit-testing documentation: change options.guide to options.guides. 2013-03-16 14:16:02 +01:00
Jonathan Puckey
b76f69b517 Improve Layer documentation. 2013-03-16 14:03:13 +01:00
Jonathan Puckey
7ee7a26ef4 Improve item documentation. 2013-03-16 14:02:59 +01:00
Jonathan Puckey
b23a4ede56 Improve Group documentation. 2013-03-16 13:44:58 +01:00
Jonathan Puckey
87d8d1f36c Remove asterisk from Q*bertify.html filename. 2013-03-16 13:20:04 +01:00
Jonathan Puckey
1393825bc2 Add object literal constructor docs to Rectangle. 2013-03-16 13:15:21 +01:00
Jonathan Puckey
c6bcd7d97a Improve Size documentation. 2013-03-16 13:04:33 +01:00
Jürg Lehni
780e842d74 Use === instead of ==. 2013-03-10 20:15:45 -07:00
Jonathan Puckey
5172b77ab3 Remove path smoothing from Tadpoles example. 2013-03-11 00:20:02 +01:00
Jonathan Puckey
b60080d8e9 Fix tadpoles example. 2013-03-11 00:14:16 +01:00
Jonathan Puckey
03d98ecc09 Improve Lines example by cleaning up the code and make it run a little less hot. 2013-03-10 23:38:27 +01:00
Jonathan Puckey
28d21bf5b1 Improve Raster documentation. 2013-03-10 23:19:59 +01:00
Jonathan Puckey
d8b0da9103 Fix small bug in Raster constructor. 2013-03-10 22:15:28 +01:00
Jonathan Puckey
2d9b0b2e8e Improve Path documentation. 2013-03-10 19:48:46 +01:00
Jonathan Puckey
4292b90bd4 Improve Segment documentation. 2013-03-10 19:48:28 +01:00
Jonathan Puckey
38b9b327ae Add Path.Constructor examples. 2013-03-10 19:09:09 +01:00
Jonathan Puckey
71b63b0e9d Fix documentation. 2013-03-10 19:06:37 +01:00
Jonathan Puckey
83afd05d9e Fix Path.Star tests. 2013-03-10 19:06:08 +01:00
Jonathan Puckey
1b57b1eb15 Fix Stars example. 2013-03-10 18:09:51 +01:00
Jonathan Puckey
177f799bde Rename Path.Star parameter from numPoints to points. 2013-03-10 18:09:05 +01:00
Jonathan Puckey
bae5589409 Improve Chain example. 2013-03-10 18:04:52 +01:00
Jonathan Puckey
7a266a50dd Fix Q*Bertify example. 2013-03-10 18:03:08 +01:00
Jonathan Puckey
097a9c958f Rename Path.RegularPolygon parameter from numSides to sides. 2013-03-10 18:02:16 +01:00