Commit graph

236 commits

Author SHA1 Message Date
Jürg Lehni
1607d744ef Implicitely call document.redraw() at the end of PaperScript execution. 2011-03-05 22:02:53 +00:00
Jürg Lehni
79d5a46cab Make it clear it's an empty loop. 2011-03-05 14:26:52 +00:00
Jürg Lehni
06e870f69c Improve some comments. 2011-03-05 14:26:16 +00:00
Jürg Lehni
342c5911c1 Add Events.getOffset(), to return coordinates relative to the target element's position. 2011-03-04 23:46:16 +00:00
Jürg Lehni
ef1da14c0e Use Events object to install 'load' event in PaperScript. 2011-03-04 23:32:11 +00:00
Jürg Lehni
b85235e1cb Add Events object as a helper for installing and removing events. 2011-03-04 23:31:51 +00:00
Jürg Lehni
92bf51a7cc Simplify the way the paper namespace is created and populated. 2011-03-04 13:34:31 +00:00
Jürg Lehni
6d00c723d9 Rename $operator() to more meaningful $eval(). 2011-03-04 11:15:04 +00:00
Jürg Lehni
11672d104f Align #include to the left. 2011-03-04 01:25:28 +00:00
Jürg Lehni
6f0f0cbd6b Fix comments. 2011-03-04 01:23:47 +00:00
Jürg Lehni
7462a58903 Change missleading variable name. 2011-03-04 01:22:08 +00:00
Jürg Lehni
5a640b50f8 No need to export handleOperator() and handleSignOperator(), just use local privates. 2011-03-04 01:20:29 +00:00
Jürg Lehni
17aee283ec Change sequence of handleOperator arguments for better readable resulting code. 2011-03-04 01:16:09 +00:00
Jürg Lehni
453da21bab Test code for tool handlers and only create tool if they are present. 2011-03-04 01:13:21 +00:00
Jürg Lehni
c86eaf5684 Use nice formatting in produced code. 2011-03-04 01:09:22 +00:00
Jürg Lehni
be0d260cb4 Add support for Tool scripts in PaperScript. 2011-03-04 01:05:23 +00:00
Jürg Lehni
b80ba6fc86 Add support for canvas attribute in paperscript tags. 2011-03-04 00:58:10 +00:00
Jürg Lehni
52ab361ed5 Include minified version of parse-js (25kb) inside PaperScript object. 2011-03-03 22:55:18 +00:00
Jürg Lehni
2b6dede883 Clean up white-spaces and line lengths. 2011-03-03 22:45:17 +00:00
Jürg Lehni
15a7b7e245 Add operator overloading through JS AST parsing and mangling to PaperScript. 2011-03-03 22:19:12 +00:00
Jürg Lehni
3324b083b7 Always execute PaperScripts on load, not on domready, as we want assets to be present as well. 2011-03-03 18:53:06 +00:00
Jürg Lehni
0b3c57ff88 Let paper be an instance of Base, and use its #extend() function to create scopes that inherit from paper but do not directly modify it. 2011-03-03 18:35:37 +00:00
Jürg Lehni
2c78a0a08b Add beginning of support for <script type="text/paperscript">, inspired by Coffee Script. 2011-03-03 18:31:56 +00:00
Jürg Lehni
dc75e14c59 Make sure utility objects stay in paper scope. 2011-03-03 16:32:39 +00:00
Jürg Lehni
07fcc000cf Move the new refactored CanvasDraw functionality to static Item.draw() and #draw() instance methods on each prototype. 2011-03-03 12:19:43 +00:00
Jonathan Puckey
136fe67917 Small change to CanvasDraw. 2011-03-03 02:25:09 +01:00
Jonathan Puckey
8ff04b6614 Unify canvas drawing commands in CanvasDraw.js and rework compositing code. 2011-03-03 02:22:21 +01:00
Jürg Lehni
5d680b1987 Reformat code and add comment about clearRect dimensions. 2011-03-02 16:07:44 +00:00
Jonathan Puckey
74f797a9dd Clean up whitespace. 2011-02-28 18:30:08 +01:00
Jürg Lehni
506e7c036c Merge remote-tracking branch 'origin/master' 2011-02-26 17:27:12 +01:00
Jürg Lehni
6d25dbbd22 Add beginning of path length calculations, work in progress. 2011-02-26 17:26:54 +01:00
Jonathan Puckey
9e6fd5a7e7 Speed up CanvasProvider. 2011-02-26 15:29:51 +01:00
Jonathan Puckey
83b8a3e815 Optimize CanvasProvider to only expect a Size object. 2011-02-24 01:36:38 +01:00
Jonathan Puckey
dc51384a1a Allow CanvasProvider to receive sizes too. 2011-02-24 01:29:51 +01:00
Jonathan Puckey
4c84379b5b Remove unused variable. 2011-02-21 03:26:46 +01:00
Jonathan Puckey
6fcdb86e1c Implement CanvasProvider that provides reusable canvas elements. 2011-02-21 03:17:09 +01:00