Commit graph

929 commits

Author SHA1 Message Date
Jonathan Puckey
1587ac857d Simplify Circles example. 2011-05-06 15:51:26 +01:00
Jonathan Puckey
74dd89a68b Use Point#read in Point#min and Point#max. 2011-05-06 15:37:55 +01:00
Jonathan Puckey
29863b852a BouncingBalls example: use onFrame for animation and simplify some things. 2011-05-06 15:34:27 +01:00
Jonathan Puckey
3dbd6bc91b Some simplifications to the roundRectangle example. 2011-05-06 15:03:21 +01:00
Jürg Lehni
cca62beac3 lowercase Stats.js lib. 2011-05-06 13:47:17 +01:00
Jürg Lehni
91919987a6 We need the paper object before including utils. 2011-05-06 13:45:18 +01:00
Jürg Lehni
819c1c098c Clean up BlendMode code, and add comments about things not working yet. 2011-05-06 13:41:36 +01:00
Jürg Lehni
0fc7216f1c Fix typos introduced in recent commit. 2011-05-06 13:40:43 +01:00
Jürg Lehni
8a4fe7eb42 Tiny code simplification. 2011-05-06 13:29:21 +01:00
Jürg Lehni
1e7fab2cbc Rearrange file sequence to have utils first. 2011-05-06 13:29:05 +01:00
Jürg Lehni
c36db3a55c Introduce private faster Matrix#_transform* methods that lack arguments checks, and use them internally. 2011-05-06 13:28:35 +01:00
Jürg Lehni
aed1bb0878 Use Numerical.TOLERANCE instead of hardcoded one. 2011-05-06 12:06:05 +01:00
Jürg Lehni
218c7ce2fc Use Paperjs.org blue instead of that other blue. 2011-05-06 12:04:18 +01:00
Jürg Lehni
66602c9cec Remove comment about necessity to reverse coordinate system. 2011-05-06 01:27:47 +01:00
Jürg Lehni
0b082289a6 Simplify Path#arcTo() a lot (get rid of necessity to reverse coordinate system in y-direction, etc). 2011-05-06 01:26:23 +01:00
Jürg Lehni
18ef19649c Remove comment about unnecessary change. 2011-05-06 00:45:46 +01:00
Jürg Lehni
680ae49ec8 Clean up code a bit and add comment about possible further optimsiations. 2011-05-06 00:44:54 +01:00
Jürg Lehni
a3065a59d1 Simplify Path#arcTo(). 2011-05-06 00:42:10 +01:00
Jürg Lehni
a4b37a6278 Simplify addJoin(). 2011-05-06 00:39:44 +01:00
Jürg Lehni
8f7deef61c Simplify code. 2011-05-06 00:19:24 +01:00
Jürg Lehni
a3da96e8be Remove notify parameter again from _add(). 2011-05-06 00:18:56 +01:00
Jürg Lehni
20cf32d599 Resolve question about wether last segment should be included in join or not. 2011-05-06 00:14:09 +01:00
Jonathan Puckey
3e3e519bfe Add Stats.js to lib. 2011-05-05 20:29:10 +01:00
Jonathan Puckey
6fa993a2a5 Implement equals function for GradientColor, Gradient & GradientStop. 2011-05-05 20:28:28 +01:00
Jonathan Puckey
140f7dee44 Imlement Stats in the dev version of Paper. 2011-05-05 20:23:22 +01:00
Jonathan Puckey
7e24a9170f Document: subtract the offset of the canvas element from the size of the window when resizing. 2011-05-05 20:19:54 +01:00
Jonathan Puckey
c8f13b4ace Document#initialize: use canvas.attributes.resize instead of canvas.getAttribute('resize'). 2011-05-05 20:18:22 +01:00
Jonathan Puckey
59a776f58d Examples: resize='true' -> resize. 2011-05-05 20:08:13 +01:00
Jonathan Puckey
f5aa8d5925 Remove a few examples. 2011-05-05 18:54:38 +01:00
Jonathan Puckey
1311acea82 BezierTool: wrap explanation text in a paragraph tag. 2011-05-05 18:44:03 +01:00
Jonathan Puckey
49510f78fc Adjust examples to work nicely when the browser window is resized. 2011-05-05 18:40:10 +01:00
Jonathan Puckey
077dc58222 Make all examples resize to the size of the browser window. 2011-05-05 16:25:17 +01:00
Jonathan Puckey
b2e2dd8888 Merge remote branch 'origin/master' 2011-05-05 16:17:42 +01:00
Jonathan Puckey
0e42f5be6d Document: when the canvas element that is passed to the constructor has a resize attribute, resize the document to the size of the window whenever the user resizes the window. 2011-05-05 16:17:30 +01:00
Jürg Lehni
867ec697a0 Merge remote-tracking branch 'origin/master' 2011-05-05 13:38:38 +01:00
Jürg Lehni
05b9e0d13a Make tests use QUnit.strictEqual. 2011-05-05 13:38:20 +01:00
Jürg Lehni
4acd02f6b1 Fix forgoten compare in test. 2011-05-05 13:37:57 +01:00
Jonathan Puckey
ae699ff20f Flock example: use Element.getScrollBounds() to define Document#size, move css into the head and simplify the construction of heartPath. 2011-05-05 13:31:36 +01:00
Jonathan Puckey
f806c68dc0 Merge remote branch 'origin/master' 2011-05-05 13:22:09 +01:00
Jürg Lehni
b50b0f9e5a Fix bug in Color#equals() resulting in it always returning true. 2011-05-05 13:19:36 +01:00
Jürg Lehni
478002ea1c Add comment about return undefined rather than null for unclear styles, and fix test. 2011-05-05 13:11:40 +01:00
Jürg Lehni
51b2cf287d Add messages to all PathStyle tests. 2011-05-05 13:11:17 +01:00
Jürg Lehni
d9f96b9a7a Clean up handling of messages. 2011-05-05 13:05:39 +01:00
Jürg Lehni
fc57fd2136 Go back to previous notation that works again. 2011-05-05 12:35:38 +01:00
Jürg Lehni
93fe0216d2 Add Path#addSegment(s) and #insertSegment(s) and define #add() and #insert() as a switch between these versions based on the amount and nature of parameters. 2011-05-05 12:35:14 +01:00
Jonathan Puckey
19a767e6f6 Merge remote branch 'origin/master' 2011-05-05 11:42:35 +01:00
Jürg Lehni
7894a48ace Add parameter to Path#_add() that controls wether path is notified of change. 2011-05-05 11:40:46 +01:00
Jürg Lehni
61a4464aae Remove uneeded sample. 2011-05-05 11:40:19 +01:00
Jürg Lehni
ee6d593620 Cache strokeBounds and bounds only if no transformation matrix is passed. 2011-05-05 11:21:09 +01:00
Jürg Lehni
32ed418bdf Remove unused parameter. 2011-05-05 11:20:37 +01:00