Commit graph

3728 commits

Author SHA1 Message Date
Jürg Lehni
8dbe1f4927 Fix issues with running paper.js in node.
We need to export the Object and Array definition into new context, to make Base.isPlainObject() work. See http://nodejs.org/api/vm.html#vm_globals
2013-05-08 18:17:23 -07:00
Jürg Lehni
219ccd2fdd Start making exportSVG() work for node, using jsdom. 2013-05-08 01:30:14 -07:00
Jürg Lehni
fc71db458b More work on node.js version. 2013-05-08 01:13:41 -07:00
Jürg Lehni
d3f47c0916 Include node_module folder for paper, with a symlink pointing to itself. 2013-05-08 00:15:01 -07:00
Jürg Lehni
bc090dcf66 Switch from bootstrap.js to the renamed straps.js 2013-05-08 00:13:02 -07:00
Jürg Lehni
fcb697264f Make sure alpha channel is included in serialization of Color.
Fixes #215.
2013-05-07 22:51:23 -07:00
Jürg Lehni
618e19cc96 Add failing test for #215. 2013-05-07 22:48:53 -07:00
Jürg Lehni
0fe431adfb Fix issue in Acorn that breaks Node support. 2013-05-07 22:32:43 -07:00
Jürg Lehni
9cca6d8a00 Move the node.js folder into src. 2013-05-07 22:07:12 -07:00
Jürg Lehni
5f56759537 Update package.json for NPM. 2013-05-07 22:01:55 -07:00
Jürg Lehni
e6f5786261 Update acorn to latest version.
Should hopefully solve issues with node.js
2013-05-07 22:01:36 -07:00
Jürg Lehni
7b8e27ddd9 Further simplify getNearestPoint() algorithm. 2013-05-07 00:07:18 -07:00
Jürg Lehni
f34fe102a4 Use new alias notation for deprecated functions, wherever we can. 2013-05-06 21:01:04 -07:00
Jürg Lehni
8e53829e9c Define Callback#once() 2013-05-06 20:57:08 -07:00
Jürg Lehni
b59a98f7ce Add jQuery style aliases to Callback and use #on() in the examples rather than #attach(). 2013-05-06 20:56:58 -07:00
Jürg Lehni
e7376b0478 Add support for aliases in Bootstrap.js 2013-05-06 20:55:58 -07:00
Jürg Lehni
d70c9b0464 Minor syntax fixes. 2013-05-05 23:19:22 -07:00
Jürg Lehni
3a7547a255 Bring back accidentally removed static functions on Curve. 2013-05-05 23:14:49 -07:00
Jürg Lehni
8d2cfc87ed Fix build script. 2013-05-05 23:07:16 -07:00
Jürg Lehni
db42dfdfc1 Implement simpler strategy to iteratively find nearest points on paths.
Idea based on method described on http://pomax.github.io/bezierinfo/
2013-05-05 23:05:57 -07:00
Jürg Lehni
dbc07207f7 Minor changes to bootstrap.js 2013-05-05 22:39:59 -07:00
Jürg Lehni
fa34ea5e5b Update package.json 2013-05-05 19:34:23 -07:00
Jürg Lehni
addf28d724 Fix authors list. 2013-05-05 19:23:41 -07:00
Jürg Lehni
acb3d6f5f9 Update package.json for publishing to NPM. 2013-05-05 19:22:13 -07:00
Jürg Lehni
0fc4b9f28d Remove intersection caching code. 2013-05-05 16:38:18 -07:00
Jürg Lehni
83b68cdb8e Restore full validation check for resulting paths. 2013-05-05 16:36:25 -07:00
Jürg Lehni
c006b081f6 Fix issue that broke "Maximum possible intersections between 2 cubic bezier curve segments - 9" test. 2013-05-05 16:23:41 -07:00
Jürg Lehni
d9e2d2a94a Fix console logging. 2013-05-04 14:27:53 -07:00
Jürg Lehni
eb8ebca097 Run BooleanOperations.html code asynchronously for immediate feedback. 2013-05-04 14:26:29 -07:00
Jürg Lehni
6da97b894f Improve code comments a bit. 2013-05-04 11:13:38 -07:00
Jürg Lehni
d911c7b12a Write documentation for boolean path operations. 2013-05-04 10:58:50 -07:00
Jürg Lehni
cc0a6e7c3a Add Harikrishnan Gopalakrishnan to the contributors list.
Thanks Hari!
2013-05-04 10:36:28 -07:00
Jürg Lehni
f704b00e00 Implement static Line.intersect() and use it to speed up Curve.getIntersections()
Unfortunately doesn't seem to have any impact!
2013-05-04 10:22:10 -07:00
Jürg Lehni
4eff5bf45e Use variable names that better reflec functionality and original naming. 2013-05-04 09:58:46 -07:00
Jürg Lehni
3ab20ea3e9 Some more minor tweaks. 2013-05-04 03:38:19 -07:00
Jürg Lehni
1e8947af63 Further clean up.
Instead of removing temporary data structure, clone Segment.
2013-05-04 03:33:44 -07:00
Jürg Lehni
31a45bad97 Improve comments. 2013-05-04 03:20:53 -07:00
Jürg Lehni
e1ef69f23a Fix accidental variable leakage. 2013-05-04 03:13:57 -07:00
Jürg Lehni
469d3129a6 One last optimization in computeBoolean(). 2013-05-04 03:08:43 -07:00
Jürg Lehni
7fdaa3e699 more optimizations in computeBoolean().
I think this is done now!
2013-05-04 03:00:31 -07:00
Jürg Lehni
9aafb46e6c Remove need for __segment property and further simplify computeBoolean() code. 2013-05-04 02:50:18 -07:00
Jürg Lehni
a5d00e64cf Merge loops in reorientPath(). 2013-05-03 23:25:26 -07:00
Jürg Lehni
37300455a8 Minor cleanup. 2013-05-03 23:08:00 -07:00
Jürg Lehni
4a9e3924c6 More computeBoolean() optimizations and clean up. 2013-05-03 23:03:00 -07:00
Jürg Lehni
1031f4ecfb Clean up computeBoolean().
Work in progress.
2013-05-03 22:38:29 -07:00
Jürg Lehni
d014ed3c68 Clean up reorientCompoundPath(). 2013-05-03 22:09:56 -07:00
Jürg Lehni
25e5582a35 Define CompoundPath#reverse() and #clockwise, and replace reversePath() with it. 2013-05-03 21:41:22 -07:00
Jürg Lehni
bd3031cdff Move fix for faulty _curves list after calls to Path#reverse() to the right place. 2013-05-03 21:33:17 -07:00
Jürg Lehni
f03283804b Improve testOnCurve() code. 2013-05-03 21:24:02 -07:00
Jürg Lehni
99cf8ae9d4 Move private functions into private injection scope. 2013-05-03 21:21:53 -07:00