Commit graph

408 commits

Author SHA1 Message Date
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
Jürg Lehni
2770a80a00 Fix unit tests for CSS values after white-space removal. 2013-06-18 15:59:28 -07:00
Jürg Lehni
d761c6c25f Implement tests for Curve#getPointAt().
More to come.
2013-06-17 08:54:42 -07:00
Jürg Lehni
5d48513f8a Define failing test for hit-testing miter strokes. 2013-06-13 11:07:43 -07:00
Jürg Lehni
fe10c99d1b Implement standard behavior of #_hitTest() for items without children, based on #_contains().
This should cover the minimum of what's needed for PointText.
2013-06-12 19:30:23 -07:00
Jürg Lehni
4a8469b740 Define Base.isPlainValue() and use it to implement more flexible #equals() for Color and Rectangle. 2013-06-12 18:55:14 -07:00
Jürg Lehni
13d97796aa Start implementing unit tests for TextItem / PointText.
One failing already.
2013-06-12 16:50:24 -07:00
Jürg Lehni
e6721cdbd6 Clean up rectangle test. 2013-06-12 15:16:45 -07:00
Jürg Lehni
507520f79d Improve equals() test helper. 2013-06-12 14:56:36 -07:00
Jürg Lehni
716cf1acb8 Add more failing tests for new Rectangle(object) constructors. 2013-06-12 14:56:21 -07:00
Jürg Lehni
9977ec5c28 Rename #toCss() to #toCSS() 2013-06-12 14:04:59 -07:00
Jürg Lehni
ac1908878e Define failing test for Path#contains() and open paths. 2013-06-12 00:28:57 -07:00
Jürg Lehni
cb1f9e5b7c Define failing test for #227 2013-06-12 00:00:42 -07:00
Jürg Lehni
3db6e103c2 Implement failing tests for Point#equals().
As needed to fix #235
2013-06-11 19:52:42 -07:00
Jürg Lehni
530dfda4ba Fix old group style test that was faulty but remain undetected because of other bug. 2013-06-11 13:58:04 -07:00
Jürg Lehni
b512532d23 Improve compareColors() helper. 2013-06-11 13:53:48 -07:00
Jürg Lehni
0b42d594de Simplify failing test. 2013-06-11 13:44:42 -07:00
Jürg Lehni
7bd96716ee Define failing test for wrongly merged group fillColor. 2013-06-11 13:44:00 -07:00
Jürg Lehni
90d4834c01 Clean up jsDump modifications a bit. 2013-06-11 13:43:29 -07:00
Jürg Lehni
3a043e0023 Fix empty tests. 2013-06-11 13:40:50 -07:00
Jürg Lehni
763ce7f4b1 Update to latest version of QUnit and install jsDump parser for Base objects. 2013-06-11 13:38:08 -07:00
Jürg Lehni
7c2e57e105 Remove Item#applyMatrix boolean, go back to previous way of directly applying transformations to children in Group and Layer, and introduce new Clip class for non-transformed nested matrices. 2013-05-13 18:57:17 -07:00
Jürg Lehni
618e19cc96 Add failing test for #215. 2013-05-07 22:48:53 -07:00
Jürg Lehni
06ffd8089d Fix issue in Path#removeSegments() where curves are removed wrongly when start index is 0.
Closes #200.
2013-04-26 08:46:57 -07:00