Commit Graph

553 Commits

Author SHA1 Message Date
Eric Rowell
f8ccd574cb made several optimizations to the Animation class. removed FRAF logic. Using performance.now when available. No longer creating a new function for every animation loop. requestAnimFrame is now called before render instead of after 2014-02-19 08:39:38 -08:00
Eric Rowell
a9496339d1 finished migrating all unit tests over to Mocha 2013-09-11 12:02:03 -07:00
Eric Rowell
dd6f8a754d migrated stage tests to Mocha 2013-09-10 21:38:26 -07:00
Eric Rowell
2fb34e3dc7 migrated TextPath and Shape tests to mocha 2013-09-10 21:17:56 -07:00
Eric Rowell
1ea9e68ff6 migrated Canvas, DragAndDrop, Global, and Tween tests to mocha 2013-09-09 10:08:16 -07:00
Eric Rowell
c40fc7cf38 removed Global namespace. global stuff is now just global, inside the Kinetic namespace. There was no reason to have a secondary level for global vars 2013-09-08 22:02:04 -07:00
Eric Rowell
400fae734d migrated unit tests to Mocha 2013-09-08 21:36:54 -07:00
Eric Rowell
976b88dea5 migrated path tests to Mocha, and also correctly fixed #567 2013-09-07 23:42:11 -07:00
Eric Rowell
9141953569 migrated more plugin tests, and continued working on context tracer 2013-09-07 20:55:03 -07:00
Eric Rowell
ee5f4c3e3b finished migrating all shape unit tests over to mocha. continued working on context tracing support 2013-09-07 17:57:48 -07:00
Eric Rowell
db43c1a694 added image unit tests. Added stage factory function to mocha runner 2013-09-04 09:05:19 -07:00
Eric Rowell
7ac45b7c4c migrated Ellipse test to Mocha, and finished up context wrapper methods 2013-09-02 21:16:26 -07:00
Eric Rowell
f298267bd7 migrated text tests. added more context wrapper methods and properties 2013-09-02 20:35:25 -07:00
Eric Rowell
18d36d9d77 migrated Rect and Blob tests to Mocha 2013-09-02 11:39:05 -07:00
Eric Rowell
c802935208 changed fillStroke() to fillStrokeShape() for consistency 2013-09-02 11:09:30 -07:00
Eric Rowell
159959a077 migrated all Circle tests from old unit test framework to Mocha 2013-09-01 14:08:21 -07:00
Eric Rowell
f144c67264 resolved conflicts 2013-08-31 21:53:42 -07:00
Eric Rowell
3ba89d36e7 introduced new Context class. I've bumped up the next release to v4.7.0 because this is a relatively big mind shift in how the framework works, and it's a big enough API change to warrant a minor update. This is the first step towards enabling context tracing for stellar unit testing 2013-08-31 21:49:18 -07:00
Jason Follas
938b37a07c Unit tests added for issue #249. Fixed rendering of TextPath along vertical lines. Added unit tests for SVG-as-images. 2013-08-30 11:23:46 -04:00
Eric Rowell
2f0c889b1e created a proper utility function that handles defaults. Integrating the ntew get() method fixes a shadowBlur issue. fixed #587 2013-08-28 09:48:42 -07:00
Eric Rowell
188bf2d8d0 Merge branch 'master' of github.com:ericdrowell/KineticJS 2013-08-27 22:09:35 -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
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
Eric Rowell
ae66350d7f fixed #577 2013-08-25 00:34:49 -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
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
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
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
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
6f078dc127 now caching absolute opacity 2013-08-10 11:55:52 -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
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
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
a3da0211d8 fixed blob regression bug. added unit test for setTension() 2013-07-28 00:03:56 -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
Eric Rowell
57a9313a7b all kinetic specific listeners now have the kinetic namespace. off no longer removes listeners with a kinetic namespace, unless you force remove it via .kinetic 2013-07-24 22:56:21 -07:00
Eric Rowell
7a1b854a12 #291 added unit test for creating a blob via json who has the tension defined before the points array 2013-07-24 21:57:45 -07:00
ippo615
27ea8ce3e4 Made convolution filters tweenable.
Unsharp mask, soft blur, sharpen, emboss, edge detect are now "tweenable";
however, I think I need to tweak the convolution matricies. At 0 there
should be no effect applied which corresponds to a matrix with just a
`1` in the middle (ie [...1...]). If the `filterAmount` is small then
the matrix is all near 0's causing the image to 'flash black'. If I always
add a 1 in the middle then the images become too bright...
2013-07-23 21:07:56 -04:00
ippo615
46eff4dec5 Made convolutions tileable, added test for tweening hue shift. 2013-07-23 19:10:52 -04:00
Eric Rowell
4f8bd0bd3f fixed #357 and did a lot of event refactoring 2013-07-23 11:39:44 -07:00
Eric Rowell
06a8e42bee fixed up functional tests 2013-07-23 11:15:04 -07:00