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 |
|
Jürg Lehni
|
3eb17f2953
|
Refrain from hacker style.
|
2011-05-04 15:20:42 +01:00 |
|
Jürg Lehni
|
13dd088043
|
Shorten Base.read() a bit.
|
2011-05-03 12:10:11 +01:00 |
|
Jürg Lehni
|
6b4f142838
|
Improve Base.readAll() to check entries for arrays and pass them to constructors as arguments rather than their containing array.
|
2011-05-03 12:06:59 +01:00 |
|
Jürg Lehni
|
49645f8a0d
|
Do not use short-forms and syntax magic in core API.
|
2011-05-03 09:34:07 +01:00 |
|
Jürg Lehni
|
728bf0441c
|
Clean up Path#moveTo() and #lineTo() commands.
|
2011-05-03 09:12:07 +01:00 |
|
Jürg Lehni
|
516557808e
|
Add Base.readAll(), to repeatetly apply Base.read() on all elements of an array and return the result in a new array.
|
2011-05-03 08:59:55 +01:00 |
|
Jürg Lehni
|
e0edddd5f6
|
Clean up code ('){' -> ') {')).
|
2011-05-03 08:57:09 +01:00 |
|
Jürg Lehni
|
66465541c6
|
Clean up code (if() -> if ()).
|
2011-05-03 08:55:01 +01:00 |
|
Jürg Lehni
|
52a73e86ce
|
Clean up code (for() -> for ()).
|
2011-05-03 08:54:13 +01:00 |
|
Jürg Lehni
|
3af24e6178
|
Replace hidden getter call with direct access of internal property.
|
2011-05-03 08:47:52 +01:00 |
|
Jürg Lehni
|
a0e211c691
|
Big refactoring of how curves are kept in sync with segments (direct references rather than indices), along with various tests.
|
2011-05-03 00:25:23 +01:00 |
|
Jürg Lehni
|
47c88a1252
|
Compress math functions in Size the same way as in Point.
|
2011-05-02 23:09:59 +01:00 |
|