Jürg Lehni
|
c579433b3d
|
Fix bug in Raster.onLoad()
It was executing in wrong scope on websites with multiple scopes.
|
2013-10-29 09:42:58 +01:00 |
|
Jürg Lehni
|
73d2c34088
|
Implement item-level #equals() method and clean up other equals methods.
|
2013-10-17 13:08:54 +02:00 |
|
Jürg Lehni
|
c68a7d33da
|
Switch from options.browser and options.node to options.environment
|
2013-10-10 23:09:00 +02:00 |
|
Jürg Lehni
|
40f2547e5f
|
Correctly detect image size on all browsers.
Closes #268.
|
2013-08-15 11:32:47 -07:00 |
|
Jürg Lehni
|
590c89840c
|
Merge Raster#setImage() and #setCanvas().
|
2013-08-14 12:29:56 -07:00 |
|
Jürg Lehni
|
cc565b3fe2
|
Rename Raster#getSubImage() to #getSubCanvas(), and use insert: false combined with #insertAbove() to correctly insert newly created rasters.
|
2013-08-14 12:21:47 -07:00 |
|
Jürg Lehni
|
5981ddf89f
|
Implement Raster#getSubRaster() and document both #getSubImage() and #getSubRaster().
|
2013-08-14 12:14:28 -07:00 |
|
Jürg Lehni
|
aa4d990c90
|
Move and unify handling of Item#_set(props) to new Item#_initialize(), and add support for props.insert = false.
|
2013-07-21 15:45:22 -07:00 |
|
Jürg Lehni
|
b7aea1e527
|
Use insert: false option in creation of all clones.
Still needs implementing in Item constructor.
|
2013-07-19 18:42:13 -07:00 |
|
Jürg Lehni
|
20a17f2939
|
Implement insert parameter in Item#clone() to control DOM insertion.
Defaults to true. Also insert in the right place now, above the original.
|
2013-07-19 18:27:00 -07:00 |
|
Jürg Lehni
|
affb44e0dd
|
Prevent double execution of onLoad event on Raster.
|
2013-07-03 19:02:29 -07:00 |
|
Jürg Lehni
|
e87307af41
|
Fix issue with Image.onLoad() events.
naturalWidth/Height seems unreliable.
|
2013-07-03 18:49:05 -07:00 |
|
Jürg Lehni
|
0c9914285f
|
Return Raster#size as a LinkedSize.
|
2013-06-27 16:06:11 -07:00 |
|
Jürg Lehni
|
1866e4ff15
|
Remove need for all special arguments in minification, and restructure code to avoid warnings.
|
2013-06-24 10:15:54 -07:00 |
|
Jürg Lehni
|
a4535edbb9
|
Bring back _class names, since code minification breaks reliance on constructor.name.
Closes #248.
|
2013-06-23 20:18:32 -07:00 |
|
Jürg Lehni
|
719b9d5e24
|
Move logic that determines if item can be directly composited into separate per-item #_canComposite() method.
|
2013-06-19 08:22:08 -07:00 |
|
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 |
|