Jürg Lehni
|
15c8652747
|
Add support for Raster to SvgExport.
|
2013-02-09 09:44:25 -08:00 |
|
Jürg Lehni
|
6c9c16ad3d
|
Update copyright information comments, and year.
|
2013-01-28 18:03:27 -08:00 |
|
Jürg Lehni
|
ae4e5d4be5
|
Rename Item#setProperties() to hidden #_setProperties() and add public Item#set() to use same functionality from outside.
|
2012-12-27 00:52:09 +01:00 |
|
Jürg Lehni
|
3ac039bd66
|
Implement properties object literal initialization for all Item constructors.
|
2012-12-25 22:12:25 +01:00 |
|
Jürg Lehni
|
ded73142a9
|
Simplify pointOrMatrix parameters and only allow points. Also remove internal _point cache from PointText and directly link #point to #matrix.
|
2012-12-25 17:57:04 +01:00 |
|
Jürg Lehni
|
1e283fe113
|
Implement Raster#source and clean up #initialize()
|
2012-12-24 01:12:41 +01:00 |
|
Jürg Lehni
|
734cc1cc61
|
Undo commit 4445376c0204cb5a2e408c64b77a5b6fa09305ba since it clashes with magnification.
|
2012-12-21 16:41:57 +01:00 |
|
Jürg Lehni
|
b535d9f843
|
Implement new Bootstrap feature that allows hiding of getter parameters to make sure beans are produced, and use it across the library.
|
2012-12-15 19:51:31 +01:00 |
|
Jürg Lehni
|
0d2ed108e2
|
Refactor getBounds code so that functionality can be exposed as static methods on Path.
|
2012-12-15 08:19:10 -08:00 |
|
Jürg Lehni
|
a3a7545cb0
|
Only resize image rasters if the new size is different from the old.
|
2012-12-02 21:13:03 -08:00 |
|
Jürg Lehni
|
523f5c1789
|
Avoid multiple triggering of Raster.onLoad() on cached rasters.
|
2012-12-02 21:05:40 -08:00 |
|
Jürg Lehni
|
398ee1a338
|
Redraw view once Raster has finished loading.
|
2012-11-27 14:12:34 -08:00 |
|
Jürg Lehni
|
373474d088
|
Implement loading Rasters from external sources and notify using a 'load' callback.
|
2012-11-21 10:39:26 -08:00 |
|
Jürg Lehni
|
35568c15f2
|
Implement transparent constant-substitution in prepro.js to shave of some extra bytes of final distribution file.
|
2012-11-05 18:11:44 -08:00 |
|
Jürg Lehni
|
19d145f281
|
Introduce Item#type, returning a simple item type string identifier.
|
2012-11-03 23:43:18 -07:00 |
|
Jürg Lehni
|
30374ae3b4
|
Implement proper index independent argument list reading of basic types.
Implemented for Point, Size, Rectangle and Color.
|
2012-10-18 14:24:15 -07:00 |
|
Jürg Lehni
|
e17e94b50b
|
Implement Item#isEmpty() for the various types.
And use it to tell #getBounds() when to ignore items.
|
2012-10-10 20:11:11 -07:00 |
|
Jürg Lehni
|
99ac617ded
|
Inject HitResults fields as enumerable, so the default #toString works, and avoid listing getColor.
|
2012-09-30 14:07:27 -07:00 |
|
Jürg Lehni
|
50e1509ab9
|
Simplify some code in #getAverageColor().
|
2011-12-27 20:39:46 +01:00 |
|
Jürg Lehni
|
24c0d0f87e
|
Fix bug in Raster#getAverageColor().
|
2011-12-27 19:55:55 +01:00 |
|
Jürg Lehni
|
951a3aea99
|
Inverse-transform the passed point on each DOM level in #hitTest().
|
2011-12-25 00:19:44 +01:00 |
|
Jürg Lehni
|
61dca0b4d0
|
Introduce standard way of passing matrices/points to Item constructors.
|
2011-12-20 23:33:53 +01:00 |
|
Jürg Lehni
|
93ede28f3b
|
Implement new selection drawing mechanism.
Using the new Item#globalMatrix.
|
2011-12-20 11:42:00 +01:00 |
|
Jürg Lehni
|
e52d2a08b8
|
Use correct flags in _changed() call.
|
2011-12-18 16:56:18 +01:00 |
|
Jürg Lehni
|
a26bc87686
|
Implement support for Item#matrix in Item#draw().
|
2011-11-30 18:19:23 +01:00 |
|
Jürg Lehni
|
5ff3a07b31
|
Add comment about 1px rectangle in Raster#getAverageColor().
|
2011-11-29 17:19:15 +01:00 |
|
Jürg Lehni
|
b5e46971f0
|
Replace new Size(x, y) calls with internal Size.create(x, y).
|
2011-11-29 17:11:15 +01:00 |
|
Jürg Lehni
|
b51cf064b0
|
Make baseItem to last optional parameter of _getBounds.
|
2011-11-26 11:55:19 +01:00 |
|
Jürg Lehni
|
a0ad81b576
|
Pass on the baseItem of a getBounds call, required to implement proper caching later.
|
2011-11-26 11:24:48 +01:00 |
|
Jürg Lehni
|
1fd9242fd8
|
Define private getBounds() function that handles matrix concatenation, bounds caching and calling of _getBounds, leading to further simplifications in PlacedItem.
|
2011-11-26 10:39:51 +01:00 |
|
Jürg Lehni
|
de4b5a0d87
|
Start implementing Item#matrix, work in progress.
|
2011-11-26 10:15:01 +01:00 |
|
Jürg Lehni
|
92066a6ecb
|
Implement Item#_boundsType as a structure to control bounds handling and caching.
|
2011-11-24 16:03:05 +01:00 |
|
Jürg Lehni
|
310fbb260b
|
Remove _boundsCache and replace it with easier _simpleBounds flag.
|
2011-11-24 15:44:26 +01:00 |
|
Jürg Lehni
|
ea87be166e
|
Part one of big refactoring of bouding box handling. Functional, but caching is broken right now.
|
2011-11-24 15:13:21 +01:00 |
|
Jürg Lehni
|
8a53288b1e
|
Add comment about upcoming changes relating to bounds.
|
2011-11-23 18:13:21 +01:00 |
|
Jonathan Puckey
|
a96a92caba
|
Add support for hit testing Raster items and getting the color of the pixel that was hit.
|
2011-11-11 15:00:53 +01:00 |
|
Jürg Lehni
|
42d0e722db
|
Rename RGBColor -> RgbColor, to avoid clash with native constructor, and follow same naming convention for HsbColor and HslColor, but keep references to old names for PaperScript scopes for now.
|
2011-11-10 19:16:34 +01:00 |
|
Jonathan Puckey
|
0ee1e80c68
|
Node.js: add Raster support.
|
2011-08-21 16:38:06 +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 |
|
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
|
79c0ad8cc5
|
Update copyright notices.
|
2011-07-01 12:17:45 +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
|
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 |
|
Jürg Lehni
|
3aff54517e
|
Add support for ChangeFlag notifications to Raster.
|
2011-06-20 20:13:24 +01:00 |
|
Jürg Lehni
|
5e39e60d51
|
Fix typo.
|
2011-06-20 18:34:51 +01:00 |
|
Jürg Lehni
|
37f5a64dce
|
Improve _bounds handling by introducing Item#_createBounds() that always uses LinkedRectangle class.
|
2011-06-20 17:34:43 +01:00 |
|
Jürg Lehni
|
3226147e00
|
Use a version of Bootstrap that always produces beans and remove all beans: true instructions.
|
2011-06-17 18:42:29 +01:00 |
|
Jürg Lehni
|
38003b6818
|
Clean up documentation: Always use @function / @name when there is more than one version of a method.
|
2011-06-16 19:26:50 +01:00 |
|