Commit graph

910 commits

Author SHA1 Message Date
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
Jürg Lehni
5dfec35dc1 Allow colors to be compare to null. 2011-05-05 11:20:26 +01:00
Jürg Lehni
a59fab0409 Only change style and notify item of change if it differs from current one. 2011-05-05 11:16:26 +01:00
Jürg Lehni
1279e820aa Use arc() instead of rect() to draw handles. 2011-05-05 11:01:20 +01:00
Jürg Lehni
14549a383b Improve Item#_getBounds(). 2011-05-05 00:16:28 +01:00
Jürg Lehni
7334e824f5 Further optimise PathStyle code. 2011-05-05 00:08:55 +01:00
Jürg Lehni
23a29ced98 Optimise and comment PathStyle code. 2011-05-05 00:05:36 +01:00
Jürg Lehni
cc0f4a3f7e Add PathStyle#clone(). 2011-05-05 00:01:17 +01:00
Jürg Lehni
ab9cce137c Separate PathStyle constructor into internal PathStyle.create(item, style) and public PathStyle(style). 2011-05-05 00:00:41 +01:00
Jürg Lehni
b4885afaac Remove benchmark from path.length test. 2011-05-04 19:54:10 +01:00
Jürg Lehni
78ce0831e3 Remove console.log(). 2011-05-04 19:43:06 +01:00
Jürg Lehni
bc80c58558 Add Base.formatNumber() to format numbers in the same way as Scriptographer (precision of up to 5 fractional digits) and use it in the various #toString() functions. 2011-05-04 19:42:50 +01:00
Jürg Lehni
fb6955e509 Replace compareSegments() / compareSegmentLists() calls with straight toString() compares. 2011-05-04 19:40:52 +01:00
Jonathan Puckey
2a65e19656 Merge remote branch 'origin/master' 2011-05-04 18:49:41 +01:00
Jonathan Puckey
648f0d7db6 Tool & Event: support touch events & call onMouseMove (if present) while dragging when there is no onMouseDrag handler. 2011-05-04 18:49:30 +01:00
Jürg Lehni
7872df080e Merge remote-tracking branch 'origin/master' 2011-05-04 18:43:02 +01:00
Jürg Lehni
a5099fd51d Add support for insertion of multiple segments at once to Path#_add(), #add() and #insert(), and change code that relies on these methods. 2011-05-04 18:42:40 +01:00
Jonathan Puckey
c309d3248e Merge remote branch 'origin/master' 2011-05-04 18:37:08 +01:00
Jonathan Puckey
24e817fd01 Flock example: smooth segments. 2011-05-04 18:36:44 +01:00
Jürg Lehni
bdbbca487f Remove rounding in drawSelectedBounds(). 2011-05-04 17:44:08 +01:00