Jonathan Puckey
|
5777c7a772
|
Fix problem where calling new Raster().setSize(size) threw an error.
|
2013-03-17 16:55:57 +01:00 |
|
Jonathan Puckey
|
f4c1f6a3c1
|
Remove todo.
|
2013-03-17 16:40:59 +01:00 |
|
Jonathan Puckey
|
9f466bbc97
|
Fix mistake in Raster#setPixel.
|
2013-03-17 16:39:23 +01:00 |
|
Jonathan Puckey
|
28d21bf5b1
|
Improve Raster documentation.
|
2013-03-10 23:19:59 +01:00 |
|
Jonathan Puckey
|
d8b0da9103
|
Fix small bug in Raster constructor.
|
2013-03-10 22:15:28 +01:00 |
|
Jürg Lehni
|
3f5d0a6925
|
Merge constructor._name with _type and use CamelCase for Item types.
|
2013-03-01 17:13:22 -08:00 |
|
Jürg Lehni
|
01026c0896
|
Fix support for viewBox when importing SVG symbols.
|
2013-03-01 10:08:17 -08:00 |
|
Jürg Lehni
|
0d98727328
|
Simplify drawing of seleced bounds by having Item#_boundsSelelected default to true for Raster, PlacedSymbol and TextItem.
One can now turn it off for these using item.bounds.selected = false;
|
2013-02-24 15:53:37 -08:00 |
|
Jürg Lehni
|
119e5acbf9
|
Move #_setProperties() and #set() from Item to Base, rename it to #_set and use it for Tool too.
|
2013-02-15 18:28:49 -08:00 |
|
Jürg Lehni
|
eebcbda9d3
|
Document 2nd argument in Raster#initialize() as well, and rename arguments.
|
2013-02-15 08:15:24 -08:00 |
|
Jürg Lehni
|
a688301106
|
Document Raster#initialize().
|
2013-02-15 08:12:58 -08:00 |
|
Jürg Lehni
|
366ba2897b
|
Do not blit rasters into separate canvas when they have opacity set.
Closes #166.
|
2013-02-14 12:28:11 -08:00 |
|
Jürg Lehni
|
e9fef8a53c
|
Fix a couple of newly introduced bugs through CanvasProvider change.
|
2013-02-12 16:23:30 -08:00 |
|
Jürg Lehni
|
ea1e7fccb9
|
clearRect() needs + 1 for size.
|
2013-02-12 16:07:24 -08:00 |
|
Jürg Lehni
|
ca3cc7f46d
|
Define CanvasProvider.getContext() next to getCanvas(), and support both types in release().
|
2013-02-12 16:06:24 -08:00 |
|
Jürg Lehni
|
9600fdb512
|
Fix a recently introduce but in Raster#getCanvas().
|
2013-02-12 15:54:56 -08:00 |
|
Jürg Lehni
|
357b7dbc54
|
Shorten CanvasProvider method names.
|
2013-02-12 15:53:27 -08:00 |
|
Jürg Lehni
|
053aa15ded
|
Rename Raster's ImageData code from *Data to *ImageData, to avoid clash with future Item#data.
|
2013-02-12 14:40:55 -08:00 |
|
Jürg Lehni
|
489a785171
|
Override Item.extend() to merge the subclass' _serializeFields with the parent class' _serializeFields.
And have style fields always serialized in non-compact form for Color.
|
2013-02-11 17:08:23 -08:00 |
|
Jürg Lehni
|
e829440803
|
Have Raster serialize itself.
The source property either contains the link to the external source, or the data url.
|
2013-02-11 16:43:10 -08:00 |
|
Jürg Lehni
|
e5180e6929
|
Implement Raster#getElement(), returning either the internal native canvas or image element.
And use it internally in various places.
|
2013-02-11 16:42:36 -08:00 |
|
Jürg Lehni
|
080a9b220a
|
Handle Raster#onLoad() callback for inlined images.
Code can now switch back and forth between inlined images and external sources.
|
2013-02-11 16:35:46 -08:00 |
|
Jürg Lehni
|
cf6ba30258
|
Have Raster#image only return an image, not a canvas element.
|
2013-02-11 16:34:59 -08:00 |
|
Jürg Lehni
|
0954dc3823
|
Better deal with security exceptions and missing image data in Raster.
|
2013-02-11 16:34:31 -08:00 |
|
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 |
|