Jürg Lehni
|
db7eb65bd7
|
Implement Item#contains() and use it for hit-testing Rasters.
|
2013-04-20 20:41:52 -07:00 |
|
Jürg Lehni
|
9cc0822477
|
Move PlacedItem#_hitTest() to PlacedSymbol#_hitTest() since it was written for symbols, and remove PlacedItem as it's an empty class now.
|
2013-04-19 16:40:30 -07:00 |
|
Jürg Lehni
|
9ee8590a4d
|
Move Item.draw() to Item#draw().
Makes more sense this way.
|
2013-04-18 17:04:06 -07:00 |
|
Jürg Lehni
|
d23e21edd7
|
Make Item#draw() protected, so we know to not directly call it.
|
2013-04-18 16:58:35 -07:00 |
|
Jürg Lehni
|
d1c6b7134f
|
Fix Raster#getAverageColor() to work with new transforms history code.
|
2013-04-18 16:50:18 -07:00 |
|
Jürg Lehni
|
d2b43b043a
|
Fix comment.
|
2013-04-16 19:41:45 -07:00 |
|
Jürg Lehni
|
d3bb68d0e0
|
Use faster Array construction.
|
2013-04-09 07:55:09 -07:00 |
|
Jürg Lehni
|
a48e6e5bf9
|
More work on Color refactoring.
|
2013-04-08 00:11:43 -07:00 |
|
Jürg Lehni
|
232ea221b4
|
First batch of large Color refactoring and simplification.
Work in progress.
|
2013-04-07 10:03:51 -07:00 |
|
Jürg Lehni
|
f43b322d2a
|
Rename Base#_type property to #_class.
|
2013-04-06 09:16:08 +02:00 |
|
Jonathan Puckey
|
58247ea232
|
Fix bug in Raster#getSubImage and add test.
|
2013-03-17 18:57:16 +01:00 |
|
Jonathan Puckey
|
0d3f746c10
|
Have Raster constructor set Raster#_size to [0, 0] if it was not set.
|
2013-03-17 17:04:56 +01:00 |
|
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 |
|