Commit graph

1007 commits

Author SHA1 Message Date
Jürg Lehni
4d6ca5c8c6 Prevent default when handling space key. 2011-05-08 17:26:35 +01:00
Jonathan Puckey
4490403ae9 Undo last commit. 2011-05-08 16:53:59 +01:00
Jonathan Puckey
6cd8241df8 Set default currentStyle of Document to have a black stroke color. 2011-05-08 16:48:41 +01:00
Jonathan Puckey
b0e91c0173 Merge remote branch 'origin/master' 2011-05-08 16:47:32 +01:00
Jürg Lehni
de2bbe844b Use getters rather than beans. 2011-05-08 15:51:01 +01:00
Jürg Lehni
e79d890432 Add #toString() to Event#modifiers. 2011-05-08 15:50:17 +01:00
Jürg Lehni
585e3b6254 Clean up and shorten code. 2011-05-08 15:45:40 +01:00
Jonathan Puckey
822047cde0 Rework Bouncing Balls example. 2011-05-08 15:44:19 +01:00
Jürg Lehni
af8fd22ae2 Remove hyphen from event types, to go with the naming of the browser world more. 2011-05-08 15:35:10 +01:00
Jürg Lehni
04ff593adc Have Events print modifiers correctly in #toString(). 2011-05-08 15:33:00 +01:00
Jürg Lehni
5a9dc3dece Have Event#modifiers exposed as a bean. 2011-05-08 15:28:56 +01:00
Jürg Lehni
6593c07127 Fix more key handling bugs and make Key.isDown() work again. 2011-05-08 15:28:35 +01:00
Jürg Lehni
450fadfcbf Fix issues with keys that fire both keydown and keypress events, such as space. 2011-05-08 15:23:32 +01:00
Jürg Lehni
3afe7ea5bb Merge remote-tracking branch 'origin/master' 2011-05-08 15:16:52 +01:00
Jürg Lehni
742c9da822 More work on key handling and rename KeyEvent#keyCode -> KeyEvent#key. 2011-05-08 15:16:41 +01:00
Jürg Lehni
9f47942e7a Fix typo. 2011-05-08 15:16:18 +01:00
Jonathan Puckey
94889148a4 GradientColor: clone origin / destination & hilite points. 2011-05-08 14:29:58 +01:00
Jürg Lehni
e0e8ee0152 Remove _owner check in Base.read() again. 2011-05-08 14:29:49 +01:00
Jürg Lehni
aac87dba14 Move #toString() to the end. 2011-05-08 14:13:33 +01:00
Jürg Lehni
7034f8241b Remove deprecated onOptions. 2011-05-08 14:09:55 +01:00
Jonathan Puckey
436cbe49a8 Merge remote branch 'origin/master' 2011-05-08 14:06:16 +01:00
Jonathan Puckey
bbccb25184 Transform gradient when path is transformed. 2011-05-08 14:05:47 +01:00
Jürg Lehni
37f982e53f Remove unused lookup table. 2011-05-08 13:46:31 +01:00
Jürg Lehni
b26caee702 Improve key event handling, work in progress. 2011-05-08 13:43:52 +01:00
Jürg Lehni
2f4f003873 Have Base.read() clone owned objects such as SegmentPoint or LinkedPoint. 2011-05-08 13:38:09 +01:00
Jürg Lehni
926fffee4a Rename Event -> DomEvent and Element -> DomElement, to be more specific and not clash with other classes, e.g. a future base class for ToolEvent and KeyEvent. 2011-05-08 10:16:11 +01:00
Jürg Lehni
0e37f86156 Fix porting mistakes. 2011-05-08 10:07:10 +01:00
Jürg Lehni
327515a9de Add missing header. 2011-05-08 09:59:37 +01:00
Jürg Lehni
bb5146397c Merge branch 'master' of github.com:scriptographer/paper.js 2011-05-08 00:54:15 +01:00
Jürg Lehni
4be33a2b3f Update Element bounds, scroll and visibility handling to take nested divs with overflow into account . 2011-05-08 00:54:07 +01:00
Jonathan Puckey
3118d8547d Include HSBColor.js in paper.js. 2011-05-08 00:23:59 +01:00
Jürg Lehni
c053fb977a Export PaperScript object and its load function as paper.load. 2011-05-07 20:50:32 +01:00
Jürg Lehni
081a303de0 Make sure PaperScripts are not loaded more than once by setting the loaded attribute to true on them. 2011-05-07 20:50:12 +01:00
Jonathan Puckey
791d9335ce Merge branch 'master' of github.com:scriptographer/paper.js 2011-05-07 18:18:51 +01:00
Jonathan Puckey
4649835d5b Document: fix selection drawing in Firefox. 2011-05-07 18:18:14 +01:00
Jürg Lehni
520f5054e5 Update tests to use new function() {} notation for automatic rendering of messages. 2011-05-07 17:46:06 +01:00
Jürg Lehni
20409f3084 Use Base.splice() for Layers too. 2011-05-07 17:27:19 +01:00
Jürg Lehni
66824b780a Allow equals() to receive functions from which it then extracts the code for the message. 2011-05-07 17:25:34 +01:00
Jürg Lehni
566f52201c Fix typo. 2011-05-07 17:11:12 +01:00
Jürg Lehni
70d0dd9c0c Move #moveTo() to the same scope as the other drawing commands, and add explaining comments. 2011-05-07 17:11:06 +01:00
Jürg Lehni
979bda52ab We don't need the empty #initialize(). 2011-05-07 17:05:42 +01:00
Jürg Lehni
d254d9542d Add ChangeFlags.HIERARCHY, for future change notifications when children get rearranged. 2011-05-07 16:52:54 +01:00
Jürg Lehni
6c3fd5953a Simplify Symbol#setDefinition(). 2011-05-07 16:14:12 +01:00
Jürg Lehni
8c7b253bc2 Add Base.splice() to handle lists of items with _index referneces and use it for paper.documents and Item#children. 2011-05-07 16:11:05 +01:00
Jürg Lehni
b44e796475 Make sure getters dont return undefined but null instead. 2011-05-07 16:10:38 +01:00
Jürg Lehni
79f55aa908 Fix recently introduce error in append(). 2011-05-07 15:41:07 +01:00
Jürg Lehni
999fb129cc Some code clean ups. 2011-05-07 15:40:02 +01:00
Jürg Lehni
81c1b2dcce Clean up Path#_add() a bit. 2011-05-07 15:38:36 +01:00
Jürg Lehni
450d277fb4 Avoid necessity of try-catch around code evaluation by declaring all local variables that we are looking for. 2011-05-07 15:38:14 +01:00
Jürg Lehni
afe61d61ac Fix recently introduced errors in setting of Tool#_document. 2011-05-07 15:37:12 +01:00