Commit graph

2340 commits

Author SHA1 Message Date
Jürg Lehni
d84f0d34cf Fix errors in DomElement.getOffset() by using native #getBoundingClientRect() in DomElement.getBounds() and relying on that. Closes #29 2011-07-31 14:13:29 +01:00
Jürg Lehni
e1d90c921c Do not parse PaperScript code in exigent mode. Relaxes requirements of semicolons, etc. 2011-07-31 12:14:37 +01:00
Jürg Lehni
3c20f31a28 Fix parse-js.sh script to work with new Prepro.js 2011-07-31 12:11:49 +01:00
Jürg Lehni
d3241f2540 Port back changes from Parse-js HEAD and merge changes back into non-unicdoe version. 2011-07-31 12:11:22 +01:00
Jürg Lehni
7f81184848 Only intersect lines if their lengths are not conflicting with Numerical.EPSILON comparison of the cross product in Line#intersect(). 2011-07-30 11:38:17 +01:00
Jürg Lehni
7d0db22b9b Use squared distances in nearest point algorithm. 2011-07-30 11:37:07 +01:00
Jürg Lehni
293399e5b9 Add optional parameter 'squared' to Point#getLength() and #getDistance(). 2011-07-30 11:36:28 +01:00
Jonathan Puckey
ddec658653 Make Paper.js work on Node.js. 2011-07-30 02:16:30 +02:00
Jürg Lehni
dcccc39dcb Remove double equals to make script work on Debian's Dash shell too. 2011-07-30 00:38:30 +01:00
Jonathan Puckey
d61f70f443 Add failing Path#hitTest(point) test. 2011-07-28 16:55:14 +02:00
Jürg Lehni
2386743b39 Fix CompoundPath tests to reflect new behavior in orientation handling. 2011-07-28 11:06:29 +01:00
Jürg Lehni
3a7c5286b5 Improve precision of Line#intersect() and other parts that check for a divisor to not be 0, by comparing against the new Numerical.EPSILON rather than Numerical.TOLERANCE. 2011-07-28 11:03:59 +01:00
Jürg Lehni
1519a1d220 Improve documentation for PaperScope. 2011-07-27 22:58:45 +01:00
Jürg Lehni
501fb17365 Add more documentation for global scope. 2011-07-27 22:58:36 +01:00
Jürg Lehni
297aef643d Simplify the way PaperScope objects are created and linked to Canvas elements, in order to facilitate usage through plain JavaScript. 2011-07-27 22:39:58 +01:00
Jürg Lehni
3f76d1ffe6 Merge remote-tracking branch 'origin/master' 2011-07-27 22:04:57 +01:00
Jürg Lehni
739845fc82 Update JsDoc. 2011-07-27 22:04:36 +01:00
Jürg Lehni
c6525ec4fa Fix link to global paper variable. 2011-07-27 22:02:42 +01:00
Jürg Lehni
e197f94669 Fix links and typos. 2011-07-27 22:02:29 +01:00
Jürg Lehni
f5ee4a1ff7 Improve documentation for Matrix#createInverse(). 2011-07-27 22:01:51 +01:00
Jürg Lehni
2736af646d Move documentation for _global_ to a new src/docs/ folder. 2011-07-27 22:00:59 +01:00
Jürg Lehni
afec10c5bf Move prepro.js to lib/and include() statements for test units to their own files inside tests/ 2011-07-27 22:00:31 +01:00
Jonathan Puckey
7a8c9ef41d Merge remote branch 'origin/master' 2011-07-27 20:30:48 +02:00
Jonathan Puckey
60a4292691 Fix the way children of CompoundPath have their orientation set by overriding Item#insertChild(index, item). 2011-07-27 20:30:39 +02:00
Jonathan Puckey
7dcce87576 Merge pull request #31 from bgrins/trailing-commas
Get rid of trailing comma to prevent parser error in IE
2011-07-27 10:32:02 -07:00
bgrins
09e75d9da2 get rid of trailing comma to prevent parser error in IE 2011-07-27 11:09:21 -05:00
Jürg Lehni
a750564d24 Add comment stripping directly to Prepro.js, and remove jsstrip.pl 2011-07-26 16:01:15 +01:00
Jürg Lehni
ba4ff62052 Clean up white space. 2011-07-26 16:00:49 +01:00
Jürg Lehni
dfa85fc0da Remove debug info. 2011-07-26 13:20:27 +01:00
Jürg Lehni
f98c8f29fc Implement Prepro.js for the browser too, in order to be able to load the library from paper.js source files and preprocess on the fly on the browser side. 2011-07-26 12:27:36 +01:00
Jürg Lehni
5b6df3d3bf Change ./preprocess.sh for docs.sh too. 2011-07-26 10:17:59 +01:00
Jürg Lehni
11cf28b403 Merge remote-tracking branch 'origin/master' 2011-07-26 10:10:10 +01:00
Jürg Lehni
8eaeb7fb5e Remove filepp.pl as preprocessor and switch to our own Prepro.js, a simple preprocesssor for JavaScript that speaks JavaScript, written in JavaScript, allowing preprocessing to either happen at build time or compile time. 2011-07-26 10:09:31 +01:00
Jonathan Puckey
63628be923 Fix bug in CompoundPath#draw(ctx, draw) which was causing an error when a compound path didn't have any children. 2011-07-25 21:41:09 +02:00
Jürg Lehni
a0a426982f Documentation: Fix display of pseudo code. 2011-07-25 09:16:41 +01:00
Jürg Lehni
2c1fdc0744 Clean up Matrix constructor. 2011-07-25 09:15:35 +01:00
Jürg Lehni
68ba8e25e4 Documentation: Fix Matrix properties. 2011-07-25 09:15:18 +01:00
Jürg Lehni
43cc8e45b2 Clean up and separate PaperScript documetation from JavaScript related classes. Work in progress. 2011-07-25 00:25:23 +01:00
Jürg Lehni
b6c684c1b4 Merge remote-tracking branch 'origin/master' 2011-07-24 19:42:04 +01:00
Jürg Lehni
c6c311d558 Move definition of VERSION / DATE to preprocess.sh, so docs.sh works too. 2011-07-24 19:41:13 +01:00
Jonathan Puckey
e418c277f9 Merge branch 'master' of github.com:paperjs/paper.js 2011-07-21 00:01:44 +02:00
Jonathan Puckey
4daffc895a Handlers are no longer passed to Tool#initialize(). 2011-07-21 00:01:33 +02:00
Jonathan Puckey
4bba0a5201 Merge remote branch 'origin/master' 2011-07-20 18:09:47 +02:00
Jürg Lehni
b37d4d9a9b Fix preprocess.sh calling sequence for docs library. 2011-07-20 00:00:26 +01:00
Jürg Lehni
88626e3903 ToolEvent#getItem(): Replace all #parent getters with direct access to internal variable. 2011-07-19 23:55:56 +01:00
Jürg Lehni
a87c2a9638 Merge remote-tracking branch 'origin/master' 2011-07-19 23:53:29 +01:00
Jürg Lehni
688c1671ed Remove all parameters from Tool constructor, to simplify use outside PaperScript. 2011-07-19 23:53:13 +01:00
Jürg Lehni
9f1f4d334e Introduce PaperScope#setup(canvas), as a simple way to setup a standard project when not using PaperScript. 2011-07-19 23:52:32 +01:00
Jürg Lehni
470360301c Improve documentation for PaperScope#install() 2011-07-19 23:51:50 +01:00
Jonathan Puckey
6808dc4b1c PathEditing example: add black stroke to paths. 2011-07-17 18:16:47 +02:00