Commit graph

1926 commits

Author SHA1 Message Date
Jonathan Puckey
ce2ef52f60 Merge remote branch 'origin/master' 2011-06-20 15:59:19 +02:00
Jürg Lehni
a7e57ada88 Big refactoring of the way Style objects are linked to their owning classes, implemented in a way that works across all sub classes. 2011-06-20 14:58:48 +01:00
Jonathan Puckey
8cacbfe791 Examples: Replace DrawCurves with PointsToCurves. 2011-06-20 15:58:13 +02:00
Jürg Lehni
a45340d20f Revert previous change since arguments.length is wrong when parameters are undefined when using Function#call. 2011-06-20 14:37:09 +01:00
Jürg Lehni
c1fcd6f3bb Documentation: Convert more Array return types to Type[]. 2011-06-20 14:27:54 +01:00
Jürg Lehni
5ce49e6f8f Merge remote-tracking branch 'origin/master' 2011-06-20 14:26:05 +01:00
Jürg Lehni
2c68e7e58f Use faster Function#call() when arguments are clear. 2011-06-20 14:25:27 +01:00
Jonathan Puckey
b0a3c3d492 Documentation: convert return type of Path#removeSegments to Segment[]. 2011-06-20 15:24:35 +02:00
Jonathan Puckey
e23282fe05 Documentation: convert Array return types to Type[]. 2011-06-20 15:19:08 +02:00
Jürg Lehni
811f39f30e Remove redraw() command. 2011-06-20 14:16:59 +01:00
Jürg Lehni
d60b739ae2 Remove comas. 2011-06-20 14:14:08 +01:00
Jürg Lehni
55724b0e29 Move defaults handling fully to Style base class. 2011-06-20 14:10:37 +01:00
Jürg Lehni
f064886c67 Introduce Style as a base class for all Style classes, and move the definition of create() there. 2011-06-20 13:56:49 +01:00
Jürg Lehni
b9ebd12d22 Improve documentation of added Base methods. 2011-06-20 13:56:08 +01:00
Jürg Lehni
08571fd399 Add comments. 2011-06-20 00:03:15 +01:00
Jürg Lehni
3a232b305e Implement _changed() mechanism in Color, by having Colors know which items they are defining styles for, through an internal _owners list. 2011-06-20 00:00:02 +01:00
Jürg Lehni
af0e5a07b7 Add getter/setter for TextItem#content and use Change.CONTENT to notify of changes. 2011-06-19 23:28:41 +01:00
Jürg Lehni
ad04db85aa Move over content handling from PointText to TextItem. 2011-06-19 23:23:52 +01:00
Jürg Lehni
c8a1bf4fce Have views redrawn in keyboard handlers if content has changed. 2011-06-19 23:17:55 +01:00
Jürg Lehni
6f816e1151 Fix _redrawNotified mechanism. 2011-06-19 23:14:36 +01:00
Jürg Lehni
bf73369423 Pass true for checkRedraw in View#draw() everywhere. 2011-06-19 23:05:39 +01:00
Jürg Lehni
596cc8f83b Implement #_needsRedraw() mechanism in PaperScope and Project, to notify Views of redraws required by changes in appearance. 2011-06-19 23:03:18 +01:00
Jürg Lehni
25b31b6b7d Remove deprecated Project#redraw(). 2011-06-19 23:02:25 +01:00
Jürg Lehni
2bf070415d Have Tool#onHandleEvent() report back if a callback was called or not, and use that to decide if View#draw() should be called, passing true as the to be implemented checkRedraw parameter. 2011-06-19 23:02:02 +01:00
Jürg Lehni
7a90f9260e Have subclasses of Item call the base version of _changed(). 2011-06-19 22:40:49 +01:00
Jürg Lehni
a50f6a23ac Add comment. 2011-06-19 22:36:41 +01:00
Jürg Lehni
2b63aefc09 Add ChangeFlag.CLIPPING and use it for proper clip mask caching in Group. 2011-06-19 22:36:04 +01:00
Jürg Lehni
0df909dd71 Rename ChangeFlags -> ChangeFlag. 2011-06-19 22:21:14 +01:00
Jürg Lehni
f0bc3f115b Have all visual changes include ChangeFlags.APPEARANCE. 2011-06-19 22:20:28 +01:00
Jürg Lehni
bfe229ae14 Use #addChildren() instead of #setChildren() in Group constructor. 2011-06-19 22:05:31 +01:00
Jürg Lehni
2594a41b7d Remove the mention of optional parameters in documentation, as they are marked optional already. 2011-06-19 21:52:52 +01:00
Jürg Lehni
1e436b2980 Use typed array in documentation. 2011-06-19 21:50:10 +01:00
Jürg Lehni
cb61e8d452 Implement rest of ChangeFlags.HIERARCHY notifications. 2011-06-19 21:49:26 +01:00
Jürg Lehni
fe7c618deb Define Item#addChildren() / #insertChildren() and adjust documentation a bit. 2011-06-19 21:48:36 +01:00
Jürg Lehni
bf627d9d9c Remove all beans: true settings. 2011-06-19 18:54:41 +01:00
Jürg Lehni
7d2f10f22b Rename private move() -> insert(), to reflect recent name changes. 2011-06-19 18:50:23 +01:00
Jürg Lehni
bbcec27031 Move support for _bounds caching to Item and start using it in PlacedSymbol. 2011-06-19 18:07:53 +01:00
Jürg Lehni
c0fa5b3711 Merge remote-tracking branch 'origin/master' 2011-06-19 17:47:25 +01:00
Jürg Lehni
7ca9bcf38a Further shorten #_getBounds() code. 2011-06-19 17:47:20 +01:00
Jürg Lehni
82ef06212b Shorten #_getBounds() code. 2011-06-19 17:46:39 +01:00
Jürg Lehni
f474bd9085 No need to redefine deprecated #moveAbove()/Below(), since they're redirecting to #insertAbove()/Below(). 2011-06-19 17:33:28 +01:00
Jürg Lehni
812d3fb366 Rename #_removeFromParent() -> #_remove(). 2011-06-19 17:32:43 +01:00
Jürg Lehni
4eb6d78f1f Have #_removeFromParent() handle deselection and change notification. 2011-06-19 17:30:47 +01:00
Jürg Lehni
9d2f8c5035 Only call _changed() if selection actually changes. 2011-06-19 16:47:24 +01:00
Jürg Lehni
0063fdc98f Ignore patches directory. 2011-06-19 16:37:54 +01:00
Jonathan Puckey
c167920480 Examples: replace use of deprecated functions. 2011-06-19 17:37:43 +02:00
Jonathan Puckey
874cf5713f Merge branch 'master' of https://github.com/scriptographer/paper.js 2011-06-19 17:34:46 +02:00
Jonathan Puckey
e77caf610b Update BouncingBalls example to the version on Paperjs.org 2011-06-19 17:34:32 +02:00
Jürg Lehni
a42b1e37ed Merge remote-tracking branch 'origin/master' 2011-06-19 16:28:40 +01:00
Jürg Lehni
eb73c55736 Use Item#remove() instead of calling #setSelected(false) and #_removeFromParent(). 2011-06-19 16:13:38 +01:00