Commit Graph

563 Commits

Author SHA1 Message Date
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
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
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
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
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
Eric Rowell
85c99c1bb9 fixes 400 2013-07-23 10:47:06 -07:00
Eric Rowell
3eea92d72e added validation for add(). An error is thrown if an invalid node is added 2013-07-22 22:47:13 -07:00
Eric Rowell
1fc57bed4c removed createAttrs method and cleaned up init logic 2013-07-22 22:05:21 -07:00
ippo615
4d3575ecea Renamed some files. Removed lighten and darken.
Renamed Colors.js to ColorPack.js and Colvolution.js to ConvolvePack.js.
Also removed convolution based 'lighten' and 'darken' (from the code
and the tests).
2013-07-22 22:53:04 -04:00
Eric Rowell
ecdd5cc59a new stage batchDraw() method. draw events are now triggered on drawScene() as well as draw() 2013-07-21 23:41:05 -07:00
Eric Rowell
1d5eff629a canvas left and top inline styles are now set to 0 2013-07-21 23:14:41 -07:00
Eric Rowell
46d69fd5d9 fixed unit tests 2013-07-21 20:49:45 -07:00