Jürg Lehni
|
232ea221b4
|
First batch of large Color refactoring and simplification.
Work in progress.
|
2013-04-07 10:03:51 -07:00 |
|
Jürg Lehni
|
fa143ad545
|
Fix typo.
|
2013-04-07 09:49:34 -07:00 |
|
Jürg Lehni
|
a0b903e49c
|
Simply call slice() instead of slice(0).
|
2013-04-06 18:39:17 +02:00 |
|
Jürg Lehni
|
4bc3882c82
|
Do not access internal _alpha property.
|
2013-04-06 18:14:45 +02:00 |
|
Jürg Lehni
|
18ed9010a6
|
Derive Item#type from Item#_class and use that instead in code that depends on Item types.
|
2013-04-06 18:07:30 +02:00 |
|
Jürg Lehni
|
f43b322d2a
|
Rename Base#_type property to #_class.
|
2013-04-06 09:16:08 +02:00 |
|
Jürg Lehni
|
cb62c6053a
|
Switch back to persistence of segments for good.
|
2013-04-05 17:34:09 +02:00 |
|
Jürg Lehni
|
9adfc01c8d
|
Handle both strings and objects in Base.importJson().
And keep returning strings from #exportJson().
|
2013-04-05 16:58:00 +02:00 |
|
Jürg Lehni
|
9d2fd2f675
|
Improve test description.
|
2013-03-23 17:08:17 -07:00 |
|
Jürg Lehni
|
e63b3a0797
|
Use short-cut to Math.abs()
|
2013-03-23 17:05:48 -07:00 |
|
Jürg Lehni
|
d0c763f27d
|
Use CanvasContext#save() and #restore() in Item#rasterize().
|
2013-03-19 21:36:11 -07:00 |
|
Jürg Lehni
|
be8b46899d
|
Simplify Matrix#applyToContext()
|
2013-03-19 21:35:41 -07:00 |
|
Jürg Lehni
|
56bec41877
|
Fix issues with JSON symbol test code.
Export was working, but testing code was faulty.
|
2013-03-19 18:52:10 -07:00 |
|
Jürg Lehni
|
1392f87d85
|
Switch back to serializing segment lists for now, so we can fix other failing tests.
|
2013-03-19 18:48:59 -07:00 |
|
Jürg Lehni
|
2064f28d2d
|
Export JSON with higher precision in tests, so comparisons of bounds do not fail.
|
2013-03-19 18:48:19 -07:00 |
|
Jürg Lehni
|
606389238d
|
Have Color always serialize in non-compact mode.
|
2013-03-19 18:47:34 -07:00 |
|
Jürg Lehni
|
5ff911f68c
|
Have Path#closePath() handle merging of first and last segment, if doubled.
So we finally found a reason for #closePath() to stick around :)
|
2013-03-19 18:47:18 -07:00 |
|
Jürg Lehni
|
30b7891a1d
|
Clean up JSON tests a bit.
|
2013-03-19 17:53:03 -07:00 |
|
Jürg Lehni
|
9c38a76525
|
Add support for Item#data serialization.
|
2013-03-19 17:52:46 -07:00 |
|
Jürg Lehni
|
16b60d1b9e
|
Allow all basic types to properly serialize themselves in non-compact form.
|
2013-03-19 17:52:17 -07:00 |
|
Jürg Lehni
|
a0066b61c3
|
Rearrange method sequence in basic types.
|
2013-03-19 17:51:50 -07:00 |
|
Jürg Lehni
|
3f634f6420
|
Use same precision in Path#getPathData() as everywhere else.
|
2013-03-19 16:23:36 -07:00 |
|
Jürg Lehni
|
3613086a64
|
Move JSON test helpers to JSON file since they are only used there.
|
2013-03-19 16:23:05 -07:00 |
|
Jürg Lehni
|
e854254986
|
Insert linear segments when dividing linear curves.
|
2013-03-19 16:17:12 -07:00 |
|
Jonathan Puckey
|
b22dc173ed
|
Fix comparing of Raster#ppi in compareItems test helper.
|
2013-03-18 00:17:57 +01:00 |
|
Jonathan Puckey
|
a87c9e9a7f
|
Add test for Raster#getAverageColor(compoundPath).
|
2013-03-17 22:27:44 +01:00 |
|
Jonathan Puckey
|
e3760afecd
|
Fix handling of param.clip in CompoundPath#draw.
|
2013-03-17 22:27:20 +01:00 |
|
Jonathan Puckey
|
e5c32b9520
|
Actually fix handling of param.clip in Path#draw.
|
2013-03-17 21:59:07 +01:00 |
|
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 |
|