Jonathan Puckey
|
e0650cae73
|
Document HitResult, Item#hitTest(point, options) and Project#hitTest(point, options).
|
2011-07-31 22:58:51 +02:00 |
|
Jürg Lehni
|
8eaeb7fb5e
|
Remove filepp.pl as preprocessor and switch to our own Prepro.js, a simple preprocesssor for JavaScript that speaks JavaScript, written in JavaScript, allowing preprocessing to either happen at build time or compile time.
|
2011-07-26 10:09:31 +01:00 |
|
Jonathan Puckey
|
8e816f6bfc
|
HitResult#getOptions: only have fill / stroke / segments options set to true if no options object was provided.
|
2011-07-15 14:52:38 +02:00 |
|
Jonathan Puckey
|
611d9e3af3
|
Item#hitTest: ignore top level layers when hit testing for bounds or center.
|
2011-07-15 13:00:40 +02:00 |
|
Jürg Lehni
|
077a83ca7c
|
Fix documentation error.
|
2011-07-11 12:15:34 +02:00 |
|
Jürg Lehni
|
55f815cb72
|
Remove obsolete TODOs.
|
2011-07-09 17:12:13 +02:00 |
|
Jürg Lehni
|
615a1281e3
|
Remove obsolete TODO.
|
2011-07-09 17:03:10 +02:00 |
|
Jürg Lehni
|
5bac5189a4
|
Implement Item#fullySelected.
|
2011-07-09 17:02:58 +02:00 |
|
Jürg Lehni
|
ebd3bfc092
|
Introduce faster versions of Rectangle#contains() that do not perform checks.
|
2011-07-09 11:07:12 +02:00 |
|
Jürg Lehni
|
8e6adbc284
|
Fix documentation.
|
2011-07-09 09:28:49 +02:00 |
|
Jürg Lehni
|
f958b41d90
|
Don't filter for a type by default.
|
2011-07-09 09:28:36 +02:00 |
|
Jürg Lehni
|
b5d3cf2ad0
|
Add comment about missing documentation.
|
2011-07-08 23:32:50 +02:00 |
|
Jürg Lehni
|
2dfe4dfa19
|
Remove invalid comments.
|
2011-07-08 23:32:38 +02:00 |
|
Jürg Lehni
|
b1a2a626ad
|
Separate type from name for 'bounds' hit-results.
|
2011-07-08 23:29:55 +02:00 |
|
Jürg Lehni
|
62ba983432
|
Implement hit-test options: center and bounds.
|
2011-07-08 23:26:50 +02:00 |
|
Jürg Lehni
|
c033a5a7bc
|
Implement hit-test options: segments, handles and ends.
|
2011-07-08 23:26:21 +02:00 |
|
Jürg Lehni
|
9db96ae898
|
Perform point conversion along with HitResult.getOptions().
|
2011-07-08 23:25:27 +02:00 |
|
Jürg Lehni
|
dfbe3135ad
|
Remove HitResult inheritance from CurveLocation, but have a #location property pointing to it.
|
2011-07-08 22:25:42 +02:00 |
|
Jürg Lehni
|
a580b23f2a
|
Reverse direction of child-looping in hit-tests, so items that get drawn last are tested first.
|
2011-07-08 21:15:16 +02:00 |
|
Jürg Lehni
|
1b3d4773a3
|
Optimise hit-testing by checking point to lie within #roughBounds + tolerance first.
|
2011-07-08 21:01:34 +02:00 |
|
Jürg Lehni
|
69a7d0bfd4
|
Implement a first version of Item#hitTest(), so far working only for Path items. Work in progress.
|
2011-07-07 22:14:58 +02:00 |
|
Jürg Lehni
|
de87c1f97a
|
Define a bit of code that names all our class constructors based on the property name under which they were stored, and use that in Item#toString().
|
2011-07-07 22:14:09 +02:00 |
|
Jürg Lehni
|
3bd6122e82
|
Begin adding support for guides.
|
2011-07-07 21:02:52 +02:00 |
|
Jürg Lehni
|
ced45c4e8f
|
Add HSLColor to documentation.
|
2011-07-07 20:51:23 +02:00 |
|
Jürg Lehni
|
110cffc14c
|
Improve comments for bounds functions.
|
2011-07-04 23:28:28 +02:00 |
|
Jürg Lehni
|
9499125b22
|
Link Item <-> Symbol#definition <-> PlacedItem and make sure changed events get sent across the whole chain.
|
2011-07-04 21:27:42 +02:00 |
|
Jürg Lehni
|
1ed6d46ce3
|
Define Item ids immediately, not on first request.
|
2011-07-04 20:19:37 +02:00 |
|
Jürg Lehni
|
bfa774f717
|
Move private bounds methods above the actual beans definitions.
|
2011-07-04 19:53:29 +02:00 |
|
Jürg Lehni
|
45a3e7f873
|
Big refactoring of the way bounds are handled and cached, properly supporting Groups inside Symbols, and also adding #roughBounds, to be used by upcoming hit testing code.
|
2011-07-04 19:45:53 +02:00 |
|
Jürg Lehni
|
10b0062ce2
|
Minor fixes and clean ups.
|
2011-07-04 11:54:52 +02:00 |
|
Jürg Lehni
|
7e26a7af1e
|
Rename all x-axis / y-axis parameters in #scale and #shear to hor / ver, and fix a bug in Matrix#shear, where an undeclared variable was used (sx instead of shx).
|
2011-07-01 18:00:16 +02:00 |
|
Jürg Lehni
|
aa9be1d9c5
|
Rename #controlBounds -> #handleBounds, to reflect terminology used elsewhere.
|
2011-07-01 17:23:10 +02:00 |
|
Jürg Lehni
|
9fa51a0457
|
Implement Item#controlBounds and Path#controlBounds, and test it in StrokeBounds example. This is a first step towards fast hit-testing.
|
2011-07-01 12:51:18 +02:00 |
|
Jürg Lehni
|
79c0ad8cc5
|
Update copyright notices.
|
2011-07-01 12:17:45 +02:00 |
|
Jürg Lehni
|
d95480bc22
|
Remove trailing white spaces.
|
2011-07-01 12:01:32 +02:00 |
|
Jürg Lehni
|
609f23c64d
|
Make PlacedItem#matrix private and add getter / setter for it.
|
2011-07-01 11:32:09 +02:00 |
|
Jürg Lehni
|
1cd7165ea2
|
Define PlacedItem as base class for Raster and PlacedSymbol.
|
2011-07-01 11:26:51 +02:00 |
|
Richard D. Worth
|
ac39873693
|
Whitespace. Removed all trailing whitespace from .js files
|
2011-06-30 06:01:51 -04:00 |
|
Jürg Lehni
|
4c6e152748
|
Move Item#setBounds() close to #getBounds() and document #_getBounds().
|
2011-06-30 08:53:57 +02:00 |
|
Jürg Lehni
|
cca562efc0
|
Prepare Item#_getBounds() for #controlBounds.
|
2011-06-30 08:51:53 +02:00 |
|
Jürg Lehni
|
7cd749e63d
|
Change all documentation to new convention of defining @class outside injection scope, fix some comments and a few errors with examples.
|
2011-06-22 23:56:05 +01:00 |
|
Jonathan Puckey
|
a17dc4171a
|
Fix bug where cloned items that were selected weren't appearing in the Project#selectedItems array.
|
2011-06-21 01:52:44 +02:00 |
|
Jürg Lehni
|
3aff54517e
|
Add support for ChangeFlag notifications to Raster.
|
2011-06-20 20:13:24 +01:00 |
|
Jürg Lehni
|
ea9eacf578
|
Fix value of ChangeFlag.CLIPPING
|
2011-06-20 20:07:04 +01:00 |
|
Jürg Lehni
|
4c20b1ef3d
|
Support rotations by multiples of 90 degrees too, as they can be applied correctly to rectangles.
|
2011-06-20 19:52:22 +01:00 |
|
Jürg Lehni
|
5e524a478e
|
We need to process _bounds and _position outside of _transform() handling, since items without _transform() can still have cached values, e.g. Group.
|
2011-06-20 19:33:34 +01:00 |
|
Jürg Lehni
|
22736dc72d
|
Clean up code.
|
2011-06-20 19:32:42 +01:00 |
|
Jürg Lehni
|
bc567f4d29
|
Improve shear() parameter naming.
|
2011-06-20 19:20:51 +01:00 |
|
Jürg Lehni
|
5e39e60d51
|
Fix typo.
|
2011-06-20 18:34:51 +01:00 |
|
Jürg Lehni
|
5b85d78faa
|
Use Matrix#getRotation() to decide if we can transform cached _bounds and _position for perforamce improvements.
|
2011-06-20 18:25:49 +01:00 |
|