Jürg Lehni
|
12d82ece56
|
Define beans in Matrix.
|
2011-02-14 01:52:53 +00:00 |
|
Jürg Lehni
|
d33a2decab
|
Examples: Close the letterPath.
|
2011-02-14 01:48:15 +00:00 |
|
Jürg Lehni
|
ed55dc39fb
|
Fix PathItem constructor by no redefining arguments variable that results in arguments array changing as well on some browsers.
|
2011-02-14 01:47:56 +00:00 |
|
Jürg Lehni
|
1edd4b4e21
|
Add additional test for setting bounds.
|
2011-02-14 01:25:35 +00:00 |
|
Jürg Lehni
|
38f4dd353d
|
Make Item#bounds setter work for PathItem, and add two TODO comments about Bootstrap shortcommings that cause it to break.
|
2011-02-14 01:24:22 +00:00 |
|
Jürg Lehni
|
bb9ae75f3d
|
Add tests for setting of position.
|
2011-02-14 01:17:57 +00:00 |
|
Jürg Lehni
|
87f146fb44
|
Have Item#setPosition use Point.read() for point conversion.
|
2011-02-14 01:17:43 +00:00 |
|
Jürg Lehni
|
50f285798c
|
Fix Item#setPosition and Item#setBounds to actually work (unfinished porting work).
|
2011-02-14 01:14:43 +00:00 |
|
Jürg Lehni
|
3af5d549f6
|
Add comments about possible optimisations in PathItem#transformContent().
|
2011-02-14 01:14:03 +00:00 |
|
Jürg Lehni
|
739c5a669f
|
Add tests for Item#position and Item#scale, but should really be sepearted from Path Bounds.
|
2011-02-14 01:05:58 +00:00 |
|
Jürg Lehni
|
ee8c30b518
|
Implement Matrix, Item#position, Item#bounds (setter too), Item#transform(), Item#scale(), Item#rotate(), Item#transalte() and Item#shear(). Some of it work in progress.
|
2011-02-14 01:05:16 +00:00 |
|
Jürg Lehni
|
6ef5183731
|
Fix Rectangle#center (use + instead of -).
|
2011-02-13 19:22:48 +00:00 |
|
Jürg Lehni
|
20746ad3a7
|
Clea up white spaces.
|
2011-02-13 19:21:56 +00:00 |
|
Jürg Lehni
|
420ffaa7ea
|
No need to check for existance of handleIn/Out, as they are always defined.
|
2011-02-13 18:56:06 +00:00 |
|
Jürg Lehni
|
7370326cb2
|
Add space after beans: true.
|
2011-02-13 18:52:17 +00:00 |
|
Jürg Lehni
|
604ff7824c
|
Add comment about ideally not relying on parent.children.indexOf for getIndex().
|
2011-02-13 18:51:49 +00:00 |
|
Jürg Lehni
|
eeb7d377e6
|
Add optional index argument to static read() functions, so points, rectangle, sizes and segments can be read from any index in the arguments array.
|
2011-02-13 18:15:55 +00:00 |
|
Jürg Lehni
|
08d4826441
|
Reformating code to follow Scriptotgrapher coding conventions.
|
2011-02-13 16:26:24 +00:00 |
|
Jürg Lehni
|
50b2e12372
|
Add comments to Path Bounds tests.
|
2011-02-13 16:24:55 +00:00 |
|
Jürg Lehni
|
4f4261488e
|
Fix issues with _angle caching in Point.
|
2011-02-13 16:24:39 +00:00 |
|
Jürg Lehni
|
0ac19a8e82
|
Optimise read() functions to only convert if argument is not of desired type already.
|
2011-02-13 16:05:19 +00:00 |
|
Jürg Lehni
|
d67055b09b
|
Add documentation to PathItem#bounds.
|
2011-02-13 15:59:22 +00:00 |
|
Jürg Lehni
|
515439c4df
|
Optimize PathItem#bounds by using less coordinate lookups.
|
2011-02-13 15:55:43 +00:00 |
|
Jürg Lehni
|
71d1ff3cb3
|
Make PathItem#getBounds() work for closed paths too.
|
2011-02-13 15:51:54 +00:00 |
|
Jürg Lehni
|
d59d514a55
|
Fix bug in PathItem#bounds (wrongly used variable name twice), now works properly for open paths.
|
2011-02-13 15:49:36 +00:00 |
|
Jürg Lehni
|
5234c5624c
|
Add compareNumbers() method, to compare with same tolerance in Rectangles as in Points.
|
2011-02-13 15:48:20 +00:00 |
|
Jürg Lehni
|
e08359f49d
|
Beginning of PathItem#bounds and tests to go along with it, not functional yet.
|
2011-02-13 15:40:30 +00:00 |
|
Jürg Lehni
|
a30e4057e3
|
Fix PathItem constructor to support passing of segments both as array and arguments.
|
2011-02-13 15:39:24 +00:00 |
|
Jürg Lehni
|
771d9d0efe
|
Fix a couple of bugs in shape drawing code, and switch to consistently use this.currentSegment rather than this._segments[this._segments.length - 1], to use the internal check for a starting point.
|
2011-02-13 15:12:25 +00:00 |
|
Jürg Lehni
|
a579b8bd3d
|
Make sure Segment#handleIn and #handleOut are always defined, even when not provided, and change compareSegments() to also reflect this change by relying on Segment.read for conversion of comparison values.
|
2011-02-13 15:09:24 +00:00 |
|
Jürg Lehni
|
ffb39952a5
|
Tests: Remove console.log messages.
|
2011-02-13 15:08:22 +00:00 |
|
Jürg Lehni
|
9c675929b2
|
Tests: Add compareRectangles() function and use it in Rectangle tests.
|
2011-02-13 14:35:48 +00:00 |
|
Jürg Lehni
|
4b2341b3c2
|
Add gettter/setters for Path#segments, and fix bug in Segment#previous.
|
2011-02-13 13:52:51 +00:00 |
|
Jonathan Puckey
|
e2c77a866d
|
Nullify path parent when removed.
|
2011-02-12 19:45:11 +01:00 |
|
Jonathan Puckey
|
783244b393
|
Clean up strokeJoin example.
|
2011-02-12 19:12:56 +01:00 |
|
Jonathan Puckey
|
7fdf439ef2
|
Group: allow passing of array of items to constructor and pass on ctx in draw function. Add tests for Group.
|
2011-02-12 19:12:23 +01:00 |
|
Jonathan Puckey
|
c1d2cab5d9
|
Segment.js: fix toString and remove methods. Add test for segment.remove().
|
2011-02-12 19:10:19 +01:00 |
|
Jonathan Puckey
|
9b5e18c795
|
PathItem: replace this.segments.push(segment) to this.addSegment(segment)
|
2011-02-12 19:08:34 +01:00 |
|
Jonathan Puckey
|
a81f1eb698
|
Examples: update Circles.html to create a new path on every mouse down.
|
2011-02-12 18:12:25 +01:00 |
|
Jonathan Puckey
|
9487e48854
|
Examples: fix links to tool scripts
|
2011-02-12 18:10:42 +01:00 |
|
Jonathan Puckey
|
b261fafd32
|
Add test for Document#activate()
|
2011-02-12 18:07:14 +01:00 |
|
Jonathan Puckey
|
c0e2101c32
|
Clean up src directory and move Bootstrap.js into lib.
|
2011-02-12 17:59:39 +01:00 |
|
Jonathan Puckey
|
1a9b80513f
|
Clean up test folder.
|
2011-02-12 17:49:09 +01:00 |
|
Jonathan Puckey
|
67f2b146b0
|
Implement Path#copyTo(itemOrDocument) and Path#clone()
|
2011-02-12 17:43:51 +01:00 |
|
Jonathan Puckey
|
38ada4abc1
|
Improve Item#isDescendant(item) and introduce Item#isAncestor(item).
|
2011-02-12 16:41:57 +01:00 |
|
Jonathan Puckey
|
e9e987f304
|
Fix Item#isDescendant(item).
|
2011-02-12 16:36:48 +01:00 |
|
Jonathan Puckey
|
d7fc9cf481
|
Introduce Paper object that keeps track of documents and which documenti is active. Newly created items are automatically appended to the children list of the active document's activeLayer.
|
2011-02-12 16:20:10 +01:00 |
|
Jonathan Puckey
|
be4681fecd
|
Remove temp.html
|
2011-02-12 16:16:15 +01:00 |
|
Jonathan Puckey
|
72c3ac4016
|
Add Item tests
|
2011-02-11 18:50:26 +01:00 |
|
Jonathan Puckey
|
538bda6a09
|
Add Layer & Group script tags to Examples
|
2011-02-11 18:50:08 +01:00 |
|