Commit graph

3919 commits

Author SHA1 Message Date
hkrish
0647792a4f Plot the random test results 2013-05-19 18:22:07 +02:00
hkrish
9806173d3f Increase the recusion depth cut-off. And voilà!! 2013-05-19 18:21:41 +02:00
hkrish
3a881e3a14 Resolve some bad clipping 2013-05-19 16:22:15 +02:00
hkrish
e6a98b4f18 More failure cases 2013-05-16 21:26:20 +02:00
hkrish
f6e474da50 Check curve bounds before recursively clipping.
The speeds are back to "normal"!
2013-05-15 21:53:05 +02:00
hkrish
3449f7e69b Test only bezier-bezier intersections for now. Others are stable. 2013-05-14 23:37:52 +02:00
hkrish
48e5d3aa8e Calculate abscissae directly 2013-05-14 23:37:01 +02:00
hkrish
0a9a0bdb9b Efficient calculation of tmax, tmin 2013-05-14 22:34:25 +02:00
hkrish
ebbe2d7569 Increase stability of the implementation 2013-05-14 22:15:11 +02:00
hkrish
5bdf3bce91 Added Random and Failing Tests 2013-05-14 20:27:37 +02:00
hkrish
4e2680e605 Minor optimizations 2013-05-14 20:27:04 +02:00
Jürg Lehni
ae416f821c Explain the booolean argument in color getter calls, and put _matrix in local variable for better minification. 2013-05-13 19:31:41 -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
hkrish
0dc74280e6 Minor fixes for async tests 2013-05-12 23:58:57 +02:00
hkrish
54eba57881 Minor fixes in the tests 2013-05-12 23:46:03 +02:00
hkrish
18d10ec98c Plot speedups 2013-05-12 23:32:42 +02:00
Jürg Lehni
c70b985911 Make sure the Base class is exposed in Node.js 2013-05-12 14:29:21 -07:00
hkrish
52e6ad0f25 Make tests asynchronous like paperjs boolean op example 2013-05-12 22:47:52 +02:00
hkrish
17d356b117 Optimise 2013-05-12 22:14:41 +02:00
hkrish
8f33b7282f Plot run times 2013-05-12 22:09:20 +02:00
hkrish
a3ba8d062a Plot the run times 2013-05-12 19:47:41 +02:00
hkrish
abb4f2f494 All tests passing 2013-05-12 17:36:16 +02:00
hkrish
3037f764ee Avoid endless recursion 2013-05-12 17:33:45 +02:00
hkrish
810a3b6365 Add svgs for tests 2013-05-12 17:01:53 +02:00
hkrish
e0f0663615 All tests except the svg gears, are passing 2013-05-12 17:01:18 +02:00
hkrish
92b4e44dad if dmin or dmax does not intersect w/ c-hull reset to a very small value 2013-05-12 17:00:23 +02:00
hkrish
378dcb8461 Do a Curve-Line intersection if the curves are flat enough 2013-05-12 16:42:31 +02:00
hkrish
262331673a Tests for curve-line intersection 2013-05-12 15:59:24 +02:00
hkrish
fed2a73903 Curve - line intersection 2013-05-12 15:12:53 +02:00
hkrish
6064d73379 Avoid unnecessary recursion
Especially when this curve's extended fatline (infinite) intersects
with another curve ouside this curve's bounds.
2013-05-12 03:12:48 +02:00
hkrish
a26a2dbf0c Added getIntersections for Paths and CompoundPaths 2013-05-11 16:15:45 +02:00
hkrish
96e7e294ea Deleted files 2013-05-11 14:34:09 +02:00
hkrish
9c852ee3db More comments 2013-05-11 14:25:42 +02:00
hkrish
48ab34a116 Minor cleanup. 2013-05-11 14:15:38 +02:00
Jürg Lehni
45ab6c7676 Merge pull request #222 from hkrish/patch-2
Fix: #initialize() to correctly convert #getValue() array back to Curve ...
2013-05-10 20:19:59 -07:00
hkrish
483a43c887 Added more comments 2013-05-11 01:50:34 +02:00
hkrish
b914c60c6f Tests 2013-05-11 00:52:08 +02:00
hkrish
ac05de7426 Fatline clipping working now. Needs more tests! 2013-05-11 00:47:52 +02:00
Harikrishnan Gopalakrishnan
ce600f4ea4 Fix: #initialize() to correctly convert #getValue() array back to Curve object. 2013-05-11 00:59:30 +03:00
hkrish
3e968eacf8 Intersect rewrite in progress.. 2013-05-10 20:46:07 +02:00
Jürg Lehni
2b4dddbb1f Handle allowNull correctly again in SVGImport. 2013-05-09 16:16:48 -07:00
Jürg Lehni
a4e875cf29 Simplify SVGImport attribute parsing and correctly handle failing tests with invalid coordinates. 2013-05-09 16:08:38 -07:00
Jürg Lehni
dd96d67fe1 Further refine Node.js integration. 2013-05-09 16:06:45 -07:00
Jürg Lehni
82b9cb3dbf Improve the Node version of Base.isPlainObject() 2013-05-09 15:30:18 -07:00
hkrish
910740d82d Subdivition: needs complete rewrite 2013-05-09 14:37:16 +02:00
Jürg Lehni
1e9b3a630c Bump version number. 2013-05-09 02:39:54 -07:00
Jürg Lehni
cc82bbb24d Use correct canvas size. 2013-05-09 02:39:19 -07:00
Jürg Lehni
093f4cf7ba Fix issue with SVG transformations not being applied to gradient fills. 2013-05-09 02:37:48 -07:00
Jürg Lehni
04f2f19a43 Minor fix in Matrix#shear() 2013-05-09 02:31:26 -07:00
Jürg Lehni
9e5b47c1ac Implement SVG transform attribute parser, to completely remove dependency on baseVal. 2013-05-09 02:31:10 -07:00