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 |
|
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 |
|
Jonathan Puckey
|
2ee7081c14
|
Merge remote branch 'origin/master'
|
2011-05-02 12:25:32 +02:00 |
|
Jonathan Puckey
|
41120cf4d9
|
Various small code cleanups.
|
2011-05-02 12:23:42 +02:00 |
|
Jürg Lehni
|
3917d9c110
|
Change case of Item.js test file.
|
2011-05-02 09:07:41 +01:00 |
|
Jürg Lehni
|
98ab342235
|
Shorten #_transformCoordinates() a bit.
|
2011-05-02 08:59:51 +01:00 |
|
Jürg Lehni
|
26b70309a8
|
Improve various #toString() functions.
|
2011-05-02 08:57:55 +01:00 |
|
Jürg Lehni
|
0a4150a5c9
|
Add beginning of value caching (_length, _bounds) and change tracking to invalidate cached values.
|
2011-05-02 00:17:21 +01:00 |
|
Jürg Lehni
|
4bac4b89f6
|
Clean up other Point.create() calls.
|
2011-05-01 23:37:15 +01:00 |
|
Jürg Lehni
|
51e5a29a9d
|
Change Point#set() calls back to clearer multi-line notation.
|
2011-05-01 23:36:08 +01:00 |
|
Jürg Lehni
|
756c4f37c5
|
Compress Point#getQuadrant() to one line.
|
2011-05-01 23:34:00 +01:00 |
|
Jürg Lehni
|
77c19601ff
|
Improve Point#normalize().
|
2011-05-01 23:32:37 +01:00 |
|
Jürg Lehni
|
2cdb15f2d6
|
Fix recently renamed functions in commented out code.
|
2011-05-01 23:29:15 +01:00 |
|
Jürg Lehni
|
4b832e0ea9
|
Simplify Point#setLength().
|
2011-05-01 23:28:57 +01:00 |
|
Jürg Lehni
|
b0282b9bd4
|
Change Segment to be aware of its index in the segment list and have the curves list update automatically on each change to segments.
|
2011-05-01 13:27:53 +01:00 |
|
Jürg Lehni
|
0680a50fd2
|
Fix yet another two bugs in CurveLocation.
|
2011-05-01 13:18:36 +01:00 |
|
Jürg Lehni
|
08e779d560
|
Fix two bugs in CurveLocation.
|
2011-05-01 13:16:25 +01:00 |
|
Jürg Lehni
|
6bbfd55240
|
Clean up Path#setSegments and begin moving of logic to keep Path#curves in sync away from Path#getCurves() to Path#setClosed(). Requires more work, e.g. Path#_add().
|
2011-04-30 23:44:37 +01:00 |
|
Jürg Lehni
|
6cca355e20
|
Add Curve.create() as faster internal constructor.
|
2011-04-30 23:29:10 +01:00 |
|
Jürg Lehni
|
053fb2d955
|
Move Path#get/setSegments back to top and remove test-code for array object extension.
|
2011-04-30 23:24:39 +01:00 |
|