Commit graph

1946 commits

Author SHA1 Message Date
Jürg Lehni
02408fc47e Flock example: Reuse prepared symbol definition. 2011-06-20 17:51:39 +01:00
Jürg Lehni
37f5a64dce Improve _bounds handling by introducing Item#_createBounds() that always uses LinkedRectangle class. 2011-06-20 17:34:43 +01:00
Jürg Lehni
8b66c4fa83 Remove flags parameter in Item#transform() for now. 2011-06-20 17:03:43 +01:00
Jürg Lehni
266c78f4eb Add a bit more documentation to the Color owner stuff. 2011-06-20 17:00:11 +01:00
Jürg Lehni
42e8f787ee Merge remote-tracking branch 'origin/master' 2011-06-20 16:41:39 +01:00
Jürg Lehni
08313a7f64 Smoothing example: Select path fully. 2011-06-20 16:40:30 +01:00
Jürg Lehni
4e3aa3e5c5 Move all Style classes into their own folder. 2011-06-20 16:38:01 +01:00
Jonathan Puckey
f6fbccb7a2 Examples: Convert Path#selected to Path#fullySelected where needed. 2011-06-20 17:16:27 +02:00
Jonathan Puckey
80245301e7 Merge branch 'master' of https://github.com/scriptographer/paper.js 2011-06-20 17:01:00 +02:00
Jonathan Puckey
5e495a3a6e Add tests for selection state after removing all segments of a path. 2011-06-20 17:00:41 +02:00
Jonathan Puckey
1ae2a4ba4b Fix bug in Path#selected test. 2011-06-20 16:59:51 +02:00
Jürg Lehni
f405ed9ae3 Merge remote-tracking branch 'origin/master' 2011-06-20 15:56:17 +01:00
Jürg Lehni
995c5b4081 Fix error in miter calculation in Path#getStrokeBounds(), recently introduced by a fix in Curve#getNormal(). 2011-06-20 15:56:08 +01:00
Jonathan Puckey
2085e34d7f Merge remote branch 'origin/master' 2011-06-20 16:51:34 +02:00
Jonathan Puckey
00476c327e Add tests for Path selection after calling Path#curvesToPoints() and Path#smooth(). 2011-06-20 16:51:13 +02:00
Jürg Lehni
ed5484e770 StrokeBounds example: Fix arcTo() direction. 2011-06-20 15:36:27 +01:00
Jürg Lehni
07d3cbb807 Remove dashes from Flock. 2011-06-20 15:32:53 +01:00
Jürg Lehni
9b9810faf3 Define Base.merge() and use it to merge _defaults in CharacterStyle. 2011-06-20 15:28:50 +01:00
Jürg Lehni
0b0a43c4d5 Merge remote-tracking branch 'origin/master' 2011-06-20 15:25:04 +01:00
Jürg Lehni
456bf7f2a9 Move more getter / setter injection functionality from PathStyle to Style, to be shared among all Style classes. 2011-06-20 15:21:42 +01:00
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