Commit Graph

1113 Commits

Author SHA1 Message Date
Eric Rowell
4665a2d002 updated Canvas docs 2013-08-27 22:06:32 -07:00
Eric Rowell
c8936a4bc0 added getter and setter methods for pixel ratio. Also added unit tests 2013-08-27 21:51:54 -07:00
ippo615
2f10116f55 Used filterCanvas.clear() to clear dirty canvas. 2013-08-27 20:53:15 -04:00
Jason Follas
b53d22a291 Fixed TextPath Bug (Issue 249, Credit for bug fix: @therth) 2013-08-27 08:30:41 -04:00
Jason Follas
bd07d96628 Added mouse position support when container is CSS transformed. History: https://github.com/ericdrowell/KineticJS/pull/141 2013-08-26 11:58:01 -04:00
Jason Follas
d8daefbf85 Formatting: Tabs to spaces 2013-08-26 08:10:32 -04:00
Jason Follas
c93f4348b0 Separated Fill and Stroke operations on Path so that it will only be filled when there's a "fill" attr. This prevents the Canvas path from being unexpectedly closed. https://github.com/ericdrowell/KineticJS/issues/567 2013-08-26 08:07:17 -04:00
Eric Rowell
6663ec0652 clipping regions now work correctly when device pixel ratio != 1 2013-08-25 22:26:42 -07:00
ippo615
cddf36b423 Improved performance of image filters. See Issue #462 2013-08-25 10:35:32 -04:00
ippo615
1d10a03772 Merge branch 'retina-filters' of https://github.com/amw/KineticJS into amw-retina-filters
Conflicts:
	src/shapes/Image.js
2013-08-25 10:12:25 -04:00
Mihhail Lapuškin
09f7873a08 Resolved compatibility issues with CocoonJS 2013-08-25 12:24:20 +03:00
Eric Rowell
bf39df54b0 Merge branch 'master' of github.com:ericdrowell/KineticJS 2013-08-25 00:35:53 -07:00
Eric Rowell
ae66350d7f fixed #577 2013-08-25 00:34:49 -07:00
ippo615
80adc253fa Fixed Issue #572 (and other js hint warnings) 2013-08-23 22:31:06 -04:00
ippo615
3e2024b3f3 Fixed Issue #462
When image filters were being applied they were cached or buffered in
`filterCanvas`. It seemed like image would be drawn multiple times (ie
calling `layer.draw()` would cause the `drawFunc` to run about 2 to 4 times).
Each time it ran it would draw on top of the cached `filterCanvas`. The
non-zero alpha values accumulated until they reached 255, effectively
removing the alpha-channel.

To fix it, I create a new `filterCanvas` everytime. I don't check for or
use the previous `filterCanvas`. I haven't notice other issues by removing
it.
2013-08-23 21:55:11 -04:00
jfollas
dd306dc7fd Update presentation-schedule.md 2013-08-22 08:18:38 -04:00
Eric Rowell
ec81250637 Merge pull request #552 from ElliotChong/patch-1
Fixes #543 - mouseout should fire before mouseover
2013-08-16 15:41:53 -07:00
Eric Rowell
e8c27254ef promoted to v4.6.1 2013-08-14 04:39:02 -07:00
Eric Rowell
a7666eee39 rearranged some tests 2013-08-12 20:15:36 -07:00
Eric Rowell
2cf0a690f9 fixed up dd regression 2013-08-12 03:00:08 -07:00
Eric Rowell
355c80088f resolved some more merge issues 2013-08-11 22:02:49 -07:00
Eric Rowell
a4172088f1 resolving conflicts 2013-08-11 21:36:18 -07:00
Eric Rowell
d49ae15207 getStage() result is now cached. refactored caching system even further. 2013-08-11 20:34:54 -07:00
ippo615
08abb22072 Fixed broken filters. Improved documentation comments.
I tried to use imageData to speed up the transfer of pixel data. The
modified image would appear "behind" (ie obscured by) the original. I
manually copy the array of pixel data.
2013-08-11 22:20:39 -04:00
Eric Rowell
8654391de4 deprecated the clipFunc method. replaced it with clip, which has an x, y, width, and height 2013-08-10 22:00:29 -07:00
Eric Rowell
64d6c79a6a moved factory logic out of Node.js to Factory.js 2013-08-10 21:11:34 -07:00
Eric Rowell
db98fec243 added new crop methods 2013-08-10 20:30:25 -07:00
Eric Rowell
b8e3f10d3a getVisible returns the visible attr. isVisible takes ancestors into account. getListening returns listening attr. isListening takes ancestors into account. added unit tests. 2013-08-10 16:19:33 -07:00
Eric Rowell
12ed500570 updated tests 2013-08-10 14:30:17 -07:00
Eric Rowell
35db1f7a8b improved transform caching 2013-08-10 14:19:53 -07:00
Eric Rowell
0d6b8bdd79 fixed drag and drop regression by busting the transform cache inside the clearTransform method 2013-08-10 13:59:31 -07:00
Eric Rowell
1c51d65a93 caching system now relies on attr change events to clear the appropriate cache attrs 2013-08-10 13:04:02 -07:00
Eric Rowell
6f078dc127 now caching absolute opacity 2013-08-10 11:55:52 -07:00
Eric Rowell
86bd4ddfa9 reworked caching system 2013-08-10 11:24:24 -07:00
Eric Rowell
d902e6dca0 absolute transforms are now cached 2013-08-10 00:58:53 -07:00
Eric Rowell
a0a2d9a676 visible attr is now cacheable 2013-08-09 23:00:35 -07:00
Eric Rowell
41dea5300a reworked _getCache implementation 2013-08-09 22:31:25 -07:00
Eric Rowell
3933568b45 implemented _getCache() method which every getter will use to try and get/set cached attrs 2013-08-09 22:23:27 -07:00
Eric Rowell
cb5cb66256 started setting up new caching system 2013-08-09 21:09:06 -07:00
Eric Rowell
7700ecc70b draw events no longer bubble. It was causing too much of a performance hit, and didn't provide a whole lot of value. Now, only layers fire draw events 2013-08-09 20:22:51 -07:00
Elliot Chong
3f2e7b88be Fixing issue #543 - mouseout should fire before mouseover
A mouseout event for the current node should be fired before another node fires its mouseover event.
2013-08-06 20:35:44 -07:00
ippo615
d355b1fe97 Improved performance of convolution filters.
Previously, I would work with a regular array and compute/store/copy
to/from that array. It should be faster to create an imageData object,
create the convolution result in that object and finally:
`context.putImageData(result)`.
2013-08-04 14:34:56 -04:00
ippo615
e631eff6b4 Cleaned convolve pack, separated filter tests.
I removed the ability to do a convolution with a 1D matrix because I was
using all 2D matrices. I also cleaned up some unused variables and filters.

I took the entire group of tests dealing with image filters and put them
into `filterTests.html` and `filterTests.js`. I removed them from
`visualTests.js`.
2013-08-04 14:02:17 -04:00
Eric Rowell
992be5dd2e promoted version to 4.6.0 for next release 2013-07-28 17:29:58 -07:00
Eric Rowell
44cc127922 fixed up Ellipse docs 2013-07-28 17:28:56 -07:00
Eric Rowell
4cd658a1f1 mousemove should fire before mouseout 2013-07-28 01:01:39 -07:00
Eric Rowell
966c690966 stage.draw() was triggering two canvas clears 2013-07-28 00:31:44 -07:00
Eric Rowell
a3da0211d8 fixed blob regression bug. added unit test for setTension() 2013-07-28 00:03:56 -07:00
Eric Rowell
7e660d0587 added beta task runner, and updated README 2013-07-27 23:26:06 -07:00
Eric Rowell
e5c52a92f0 updated build process. dev version no longer pulls the version number from the package.json file. It instead always uses dev. Also set some things up for -beta build support 2013-07-27 21:09:33 -07:00