Jürg Lehni
|
3d78e3729d
|
Fix issue with PaperScript and array[i++] expressions.
|
2013-06-18 18:18:39 -07:00 |
|
Jürg Lehni
|
f758fb306b
|
Rename #_applyMatrix to #_transformContent.
And swap names with private function...
|
2013-06-18 15:50:11 -07:00 |
|
Jürg Lehni
|
20f7c567aa
|
Use Base objects for drawing params, so we can use param.extend() on them for easier overriding.
|
2013-06-11 20:40:44 -07:00 |
|
Jürg Lehni
|
0e2ae48b02
|
Fix regressions in Raster caused by faulty merge.
|
2013-05-28 13:54:47 -07:00 |
|
Jürg Lehni
|
73351cbda7
|
Store data in _data rather than on the image itself.
|
2013-05-28 08:10:51 -07:00 |
|
Jürg Lehni
|
c75a98c406
|
Clean up @trankek's fix for node a bit.
Fix prepro.js conditionals.
|
2013-05-28 08:05:40 -07:00 |
|
Jürg Lehni
|
e0856a0d31
|
Merge branch 'master' of https://github.com/tranek/paper.js into tranek-master
Conflicts:
src/item/Raster.js
|
2013-05-28 08:00:01 -07:00 |
|
Jürg Lehni
|
6fa6c022c9
|
Rename options.server to options.node
|
2013-05-28 00:01:55 -07:00 |
|
Jürg Lehni
|
cd7db56249
|
Remove all create() constructors for basic types since new constructors are now faster.
Woop!
|
2013-05-27 23:57:31 -07:00 |
|
Jürg Lehni
|
10d5de3ed6
|
Implement a better way to name and export class constructors.
This change also simplified the way classes are exported to PaperScope objects.
|
2013-05-27 12:48:58 -07:00 |
|
Jürg Lehni
|
369b329b23
|
Change straps.js to directly use initialize() as constructor function rather than redirecting calls to it.
Should yield some interesting performance improvements.
|
2013-05-27 09:11:50 -07:00 |
|
tranek
|
1637127e09
|
Fixed data URLs src disappearing
|
2013-05-24 20:55:59 -04:00 |
|
tranek
|
cd7938e363
|
Fixed string equals in Raster data URL for Node.js
|
2013-05-24 16:41:02 -04:00 |
|
tranek
|
269b93e888
|
Added data URLs for Rasters in Node.js
|
2013-05-24 16:38:43 -04:00 |
|
Jürg Lehni
|
7c2e57e105
|
Remove Item#applyMatrix boolean, go back to previous way of directly applying transformations to children in Group and Layer, and introduce new Clip class for non-transformed nested matrices.
|
2013-05-13 18:57:17 -07:00 |
|
Jürg Lehni
|
420fb49230
|
Speed up Raster#getPixel().
|
2013-04-24 18:09:58 -07:00 |
|
Jürg Lehni
|
ead3646581
|
Handle alpha channels correctly in Raster#get/setPixel.
Closes #209.
|
2013-04-24 16:29:28 -07:00 |
|
Jürg Lehni
|
2a53dbe60f
|
Restructure Color constructor to remove need for Color.create().
|
2013-04-22 19:07:38 -07:00 |
|
Jürg Lehni
|
2fc4ff10ee
|
Implement Item#_contains() with local coordinates, and have Item#contains() take Item#matrix into account.
|
2013-04-21 08:43:05 -07:00 |
|
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 |
|