Commit graph

2339 commits

Author SHA1 Message Date
Jürg Lehni
76df9d9a92 Fix documentation for beans. 2011-08-16 13:53:36 +02:00
Jürg Lehni
4e1dd90549 Use faster Size.create(). 2011-08-16 13:52:31 +02:00
Jürg Lehni
4dd90b440e Use new dontLink parameter for Path.Constructors optimisations. 2011-08-16 13:52:18 +02:00
Jürg Lehni
c9eb538f7a Support an optional argument 'dontLink' in getters that normalled return LinkedPoint and LinkedSize objects, for internal use. 2011-08-16 13:50:59 +02:00
Jürg Lehni
8f8188a091 Optimise Path.Rectangle constructor. 2011-08-16 13:39:37 +02:00
Jürg Lehni
3c5a46a8af Implement SegmentPoint#isZero() that does not use the x / y accessors but the internal properties directly, for performance reasons, since it is used a lot internally. 2011-08-16 13:38:52 +02:00
Jürg Lehni
7e0307dd6a Correct comments. 2011-08-16 13:36:58 +02:00
Jonathan Puckey
38a4184ab5 Color: Avoid dividing by 0 in rgb-hsl converter. 2011-08-13 15:26:14 +02:00
Jonathan Puckey
adb5bfb560 Add failing test. 2011-08-13 15:25:29 +02:00
Jonathan Puckey
0154464fb3 Paperoids example: remove css dependency. 2011-08-11 20:30:50 +02:00
Jonathan Puckey
5611ce0793 Paperoids example: fix dependencies and embed css. 2011-08-11 20:29:43 +02:00
Jonathan Puckey
6455bf5e98 Add Paperoids example. 2011-08-11 20:24:04 +02:00
Jonathan Puckey
e82a838085 Fix problem in Item#rasterize(resolution) where rasterizing the active layer caused the resulting Raster to be positioned wrongly. 2011-08-08 18:43:45 +02:00
Jonathan Puckey
a58bbaf6cf Fix Size#isZero(). 2011-08-04 15:06:35 +02:00
Jonathan Puckey
24f5188c24 Merge remote-tracking branch 'origin/master' 2011-08-04 10:55:02 +02:00
Jonathan Puckey
3a3f5ecabb Segment: notify path of change when selection state of handles changes, so the view is redrawn. 2011-08-04 10:54:56 +02:00
Jürg Lehni
4e78c55859 Simplify PointText#setPoint() 2011-08-03 23:37:56 +02:00
Jürg Lehni
7c95eb7694 Do not usse LinkedPoint internally for PointText#point, since we're returning new instances each time now in #getPoint(). 2011-08-02 16:08:00 +01:00
Jonathan Puckey
fe1b2ca8a0 Fix PointText#setPoint(point) and PointText#setPosition(point). 2011-08-02 14:31:35 +02:00
Jürg Lehni
0bbb4640ce Increase version to 0.21, supporting tools in direct JavaScript mode, including support for multiple tools. 2011-08-02 10:09:40 +01:00
Jürg Lehni
fe97b94340 Define PaperScopeItem as a private base class for all classes that have lists and references in the PaperScope (Project, View, Tool), so they can share functionality (#initialize(), #activate(), #remove()), and add support for multiple tools. Closes #27 2011-08-02 10:08:08 +01:00
Jürg Lehni
2d5788540d Hide internal properties even if they are enumerable in Base#toString() 2011-08-02 08:32:55 +01:00
Jürg Lehni
14881b8b19 Let View handle the retrieving of the canvas object. 2011-08-01 16:23:56 +01:00
Jürg Lehni
828c3ae369 Doc: Improve View#initialize(canvas). 2011-08-01 16:21:00 +01:00
Jürg Lehni
9195f026d7 Support passing canvas ids straight to View constructor. 2011-08-01 16:18:17 +01:00
Jürg Lehni
6b3fdb0880 Improve instructions for making UglifyJS work. 2011-08-01 16:09:16 +01:00
Jürg Lehni
522a3af496 Update docs. 2011-08-01 14:25:53 +01:00
Jürg Lehni
022de4d781 Some documentation fixes for v0.2 2011-08-01 14:25:46 +01:00
Jürg Lehni
4fa6ffeb01 Update docs and dist version to 0.2. 2011-08-01 12:05:06 +01:00
Jürg Lehni
ea629fefda Remove debug log. 2011-08-01 12:03:23 +01:00
Jürg Lehni
14895f412c Fix PaperScope#install() so classes actually get injected. 2011-08-01 12:02:50 +01:00
Jürg Lehni
a8c08b3301 Docs: Document Path#getNearestLocation() and #getNearestPoint(). 2011-08-01 11:48:27 +01:00
Jürg Lehni
c8578658ae Docs: Remove |null from @return, since it's verbally described, and null can also be a HitResult. 2011-08-01 11:48:07 +01:00
Jürg Lehni
31cc571e8a Docs: Hide matrix parameter in Item#hitTest() and add "options." in front of each options property. 2011-08-01 11:47:42 +01:00
Jürg Lehni
884ea96a29 Docs: Link HitResult back to #hitTest() functions. 2011-08-01 11:47:08 +01:00
Jürg Lehni
8cdc5ea2aa Change PaperScope#install() to be clever about project, view and tool references and link them through a getter to their current state in PaperScope. 2011-08-01 11:21:22 +01:00
Jürg Lehni
3fc21cd4b6 Always call View#draw() since it won't redraw internally if nothing has changed. 2011-08-01 11:02:00 +01:00
Jürg Lehni
6b6d5909c1 Revert back to PaperScope#setup() and keep #initialize0 simple. 2011-08-01 11:01:27 +01:00
Jürg Lehni
6086165d1a Merge remote-tracking branch 'origin/master' 2011-08-01 08:56:07 +01:00
Jürg Lehni
0e6aeac28c Fix HSLColor documentation. 2011-08-01 08:53:28 +01:00
Jürg Lehni
5b963b13e1 Export classes through PaperScope in dev mode too. 2011-08-01 08:53:07 +01:00
Jürg Lehni
c6cf4f9cf0 Only create an empty Project for a PaperScope if a canvas was provided for it. 2011-08-01 08:52:51 +01:00
Jonathan Puckey
e0650cae73 Document HitResult, Item#hitTest(point, options) and Project#hitTest(point, options). 2011-07-31 22:58:51 +02:00
Jonathan Puckey
e73a2df6b2 Update JsDoc. 2011-07-31 22:07:10 +02:00
Jürg Lehni
da6f923463 Update JsDoc. 2011-07-31 15:47:23 +01:00
Jürg Lehni
fc7da5fa13 Docs: Improve HSL example. 2011-07-31 15:46:26 +01:00
Jürg Lehni
42c9f91279 Rename internal Matrix transform parameters to (a, c, b, d, tx, ty), expoes values through Matrix#getValues() and improve documentation. 2011-07-31 15:26:09 +01:00
Jürg Lehni
b14a294430 Delcare DomElement and DomEvent as private namespaces. 2011-07-31 15:23:26 +01:00
Jürg Lehni
f5bfa8f566 Update JsDoc. 2011-07-31 15:20:49 +01:00
Jürg Lehni
13ae51789f Remove reduntant argument, fixing visibility check. 2011-07-31 14:25:23 +01:00