Jürg Lehni
|
0dddd897ab
|
Remove internal clamping of color values to facilitate proper mathematical calculations with colors.
Clamp only when producing CSS values. Closes #271.
|
2014-01-04 18:16:52 +01:00 |
|
Jürg Lehni
|
e22fa3a664
|
Update copyright notice.
|
2014-01-04 01:47:16 +01:00 |
|
Jürg Lehni
|
25d8b1f0d2
|
Clean up code and comments in various places.
|
2013-12-11 17:10:09 +01:00 |
|
Jürg Lehni
|
48c8946f9e
|
Implement correct hit-testing tolerance using transformed 2D stroke padding rather than unscaled numerical tolerance.
But we still need to factor in the View zoom as well...
|
2013-12-10 12:52:42 +01:00 |
|
Jürg Lehni
|
e238d23194
|
Implement caching of internal, untransformed bounds.
|
2013-12-09 10:53:19 +01:00 |
|
Jürg Lehni
|
5197dd81c5
|
Fix #fontWeight examples and documentation.
|
2013-12-09 10:17:10 +01:00 |
|
Jürg Lehni
|
3cd141170a
|
Implement Style#fontFamily and #fontWeight as a replacement for #font.
Closes #60.
|
2013-12-08 21:12:51 +01:00 |
|
Jürg Lehni
|
2896f14e43
|
Define test for hit-testing fill with tolerance.
|
2013-12-08 12:26:11 +01:00 |
|
Jürg Lehni
|
462256c14d
|
Implement failing test for group.position after content changed.
|
2013-12-07 19:17:30 +01:00 |
|
Jürg Lehni
|
0d39c4377d
|
Define test for issue #344
|
2013-12-07 16:30:40 +01:00 |
|
Jürg Lehni
|
a837bbb2f6
|
Better format Point#getDirectedAngle() tests.
|
2013-12-07 16:28:07 +01:00 |
|
Jürg Lehni
|
9bcfae8661
|
Use comparePoints() helper in Point tests.
|
2013-12-07 16:26:17 +01:00 |
|
Jürg Lehni
|
8f20dabf4d
|
Implement test for strokeBounds of closed path with only one segment.
|
2013-12-07 16:16:26 +01:00 |
|
msand
|
e431154e0e
|
Fix indent.
|
2013-12-07 16:09:50 +02:00 |
|
msand
|
73b1b9843a
|
Wrote failing test for strokeBounds on paths with a single segment and strokeColor. Implemented fix for failing test.
|
2013-12-07 15:59:45 +02:00 |
|
Jürg Lehni
|
af4410953f
|
Various clean-ups regarding the handling of activeLayer, JSON deserialization, DOM insertion and and layer reusing.
JSON deserialization does no longer insert items into DOM twice now, and should therefore be faster.
|
2013-11-24 16:25:13 +01:00 |
|
Jürg Lehni
|
829e878243
|
Add failing test for creating colors from RGBA.
|
2013-11-24 00:02:13 +01:00 |
|
Jürg Lehni
|
f8106ae18f
|
Improve code handling special winding cases.
|
2013-10-18 15:20:32 +02:00 |
|
Jürg Lehni
|
75a209c002
|
Handle more special cases in winding algorithm.
|
2013-10-18 15:15:54 +02:00 |
|
Jürg Lehni
|
4f27be8f12
|
Include new, improved point in path algorithm based on winding number.
It's also possible to switch to using the canvas's native isPointInPath() through options.nativeContains
|
2013-10-18 14:22:59 +02:00 |
|
Jürg Lehni
|
2a3ede67bb
|
Define more tests for Path#contains().
|
2013-10-17 20:18:56 +02:00 |
|
Jürg Lehni
|
8852cad04f
|
Fix SVGExport tests to work with new Shape code.
|
2013-10-17 13:12:51 +02:00 |
|
Jürg Lehni
|
83be3cb023
|
Fix SVGImport tests to work with new Shape import.
|
2013-10-17 13:02:35 +02:00 |
|
Jürg Lehni
|
3958d35f28
|
Change behavior of Path#fullySelected.
Setting it on empty paths does the same as Path#selected.
|
2013-10-17 12:03:46 +02:00 |
|
Jürg Lehni
|
7a3448712b
|
Remove duplicate test and clean up code.
|
2013-10-17 11:32:11 +02:00 |
|
Jürg Lehni
|
1ee6bb7e79
|
Use isZero() when checking for straight curves in Curve.getLength()
|
2013-09-23 08:13:32 -07: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
|
98697eb003
|
Fix Layer#insertAbove / insertBelow test.
|
2013-07-21 16:44:30 -07:00 |
|
Jürg Lehni
|
3ee3262f7a
|
Use non-deprecated versions.
|
2013-07-21 16:13:27 -07:00 |
|
Jürg Lehni
|
092ea182dc
|
Improve tests for moveAbove() / moveBelow().
|
2013-07-21 16:11:09 -07:00 |
|
Jürg Lehni
|
cfbd356247
|
Fix active layer test when calling Layer#clone().
|
2013-07-19 18:29:21 -07:00 |
|
Jürg Lehni
|
20a17f2939
|
Implement insert parameter in Item#clone() to control DOM insertion.
Defaults to true. Also insert in the right place now, above the original.
|
2013-07-19 18:27:00 -07:00 |
|
Jürg Lehni
|
14888bca50
|
Define failing test about Item cloning hierarchy.
Cloned items should be inserted right above their originals.
|
2013-07-19 18:10:58 -07:00 |
|
Jürg Lehni
|
29bdf49a0f
|
Fix tests for deprecated Color constructors.
|
2013-07-02 07:53:58 -07:00 |
|
Jürg Lehni
|
d369984196
|
Allow math operands larger than 1 when multiplying and dividing colors.
|
2013-06-28 07:59:33 -07:00 |
|
Jürg Lehni
|
2c578d0558
|
Start implementing math operators for Color.
|
2013-06-28 07:19:53 -07:00 |
|
Jürg Lehni
|
214db84b84
|
Improve src/load.js to directly load the library through PrePro's load.js
|
2013-06-26 19:14:54 -07:00 |
|
Jürg Lehni
|
4e173a7d35
|
Switch to the NPM version of PrePro's load.js
|
2013-06-26 18:57:46 -07:00 |
|
Jürg Lehni
|
8c9ac92a59
|
Define failing test for hit-testing bounds on raster items.
Linked to issue #247.
|
2013-06-23 19:48:46 -07:00 |
|
Jürg Lehni
|
e59ae78285
|
Improve hit-testing tests for guides.
|
2013-06-23 19:00:57 -07:00 |
|
Jürg Lehni
|
dca049c6ab
|
Implement failing test for hit-testing guides.
|
2013-06-23 18:18:49 -07:00 |
|
Jürg Lehni
|
f45fa853e7
|
Improve new hit-testing test.
|
2013-06-23 17:54:24 -07:00 |
|
Jürg Lehni
|
3b782f6338
|
Implement failing test for #243.
|
2013-06-23 17:52:31 -07:00 |
|
Jürg Lehni
|
1e81176cf1
|
Merge branch 'master' of github.com:paperjs/paper.js
|
2013-06-23 17:22:30 -07:00 |
|
Jürg Lehni
|
4b62949318
|
Fix tests for #246.
This is actually the right behavior: Setting length to negative values should flip around defined vectors.
|
2013-06-23 17:22:13 -07:00 |
|
Jürg Lehni
|
cf1b5a5df8
|
Define failing test for #246
|
2013-06-23 16:55:14 -07:00 |
|
Chris Barmonde
|
68626ca62b
|
Fix project.clear() so it removes all layers properly.
|
2013-06-20 20:14:47 -06:00 |
|
Jürg Lehni
|
258c404b98
|
Move curvature calculations into Curve.evaluate(), and define unit tests for it.
|
2013-06-18 19:00:05 -07:00 |
|
Jürg Lehni
|
dc076efd0c
|
Implement unit tests for Curve#getCurvatureAt().
|
2013-06-18 18:29:32 -07:00 |
|
Jürg Lehni
|
663a7e0369
|
Implement unit tests for Curve#getTangentAt() and #getNormalAt().
|
2013-06-18 18:23:48 -07:00 |
|