Commit Graph

673 Commits

Author SHA1 Message Date
Eric Rowell
e66e147274 Animations can now be tied to multiple layers. Removed Transition and Tween class from the build. Unhooked transition unit and manual tests for now. Added new animation setLayers() and getLayers() methods 2013-05-05 20:57:31 -07:00
Eric Rowell
d75fd4b40a refactored filter API so that transitions can hook into the filter controls. Filter transitons are now working. Filters can now also have an unlimited number of parameters. added _applyFilter flag to ensure that new filters are only applied once, when needed, right before a redraw 2013-05-04 00:40:46 -07:00
Eric Rowell
e22f5c4bcf added dynamic color component setters, and also added more unit tests 2013-05-03 21:13:26 -07:00
Eric Rowell
58b081ef12 fixed a couple bugs introduced with transform matrix caching. Cleaned up addPointGetterSetter API. reorganized dynamic getter setter comments so that it's easier to keep track of them 2013-05-02 10:22:21 -07:00
Eric Rowell
43256d0916 added skew transform courtesy of danielkur #188 2013-05-01 10:56:01 -07:00
Eric Rowell
ecbebeef5a rewrote filters logic. Filters are now applied synchronously. It's now much easier to transition filter values. added clearFilter method 2013-04-30 22:28:05 -07:00
Eric Rowell
790b45ec87 added new get*RGB(), get*R(), get*G(), and get*B() methods for fill, stroke, and shadowColor. Also added new Kinetic.Type.getRGB() utility 2013-04-29 23:12:28 -07:00
Eric Rowell
79a46edad7 removed point specific logic from the Transition class. To run transitions, you can now only transition properties which are numbers only. This means that if you want to transition a point, such as offset, you can transition the offset property with a number which will transition both x and y, or you can transition offsetX or offsetY individually 2013-04-29 10:16:23 -07:00
Eric Rowell
bf8d2db0df multiple transitions on the same node are now supported 2013-04-28 14:14:45 -07:00
Eric Rowell
1dc323305b all attrs that have x and y components now have individual component setters. i.e. you can use setScale() and pass in an object, or setScaleX() and setScaleY() individually 2013-04-27 20:50:42 -07:00
aniruddha-loya
a71d3e1fa0 Bug fix for getAttr function
Now it permits to return user defined attributes which do not have a corresponding method, similar to setAttrs(config) that sets attributes as key-value whenever there is no method for the given key
2013-04-24 10:19:41 +03:00
Eric Rowell
8a78b62cad added matrix transform caching, and optimized the clear() method. This has improved rendering performance by about 17% 2013-04-21 22:42:25 -07:00
Eric Rowell
90a2820e5b toDataURL and toImage now work correctly on devices with a pixel ratio != 1 2013-04-14 09:41:59 -07:00
Eric Rowell
8657c57436 fixes #391 2013-04-14 07:43:02 -07:00
Eric Rowell
9160b694ae transition call back is called using the nodes context. This means that you can access the node with the this keyword 2013-04-13 12:15:08 -07:00
Eric Rowell
8138d2d286 cleaned up Canvas 2013-04-12 23:45:22 -07:00
Eric Rowell
ad0ecd9fe9 fixes #388 unregister shape color key on destroy, not remove 2013-04-12 01:14:31 -07:00
Eric Rowell
9cb3cb9d63 created new sub class called Canvas2D which extends Canvas, and a new GenericCanvas subclass which also extends Canvas. The GenericCanvas class will be used to instantiate non 2d canvas renderers. Also created new contextType property. Setup webgl unit test 2013-04-12 00:48:41 -07:00
Eric Rowell
bfbd42b232 extended getIntersection method for Layer to improve flexibility. Replaced instances of Math.round to bitwise round via | 0 for a small performance gain 2013-04-11 23:51:21 -07:00
Eric Rowell
60c9ef5bcd improved color key generation algorithm 2013-04-11 23:09:41 -07:00
Eric Rowell
a8802c31ca fixes #383 2013-04-08 01:02:08 -07:00
Eric Rowell
2f6e93dab6 fixed #383 2013-04-08 00:43:10 -07:00
Eric Rowell
0e60ccc27e Merge pull request #377 from pavelpower/patch-3
Update Container.js
2013-04-07 18:43:19 -07:00
Eric Rowell
b6cca6a143 moved dd logic in destroy() from Node to DD namespace. refactored stopDrag logic to correctly handle the event object 2013-04-07 10:52:33 -07:00
Eric Rowell
6f61b07500 some refactoring proposed by pavelpower 2013-04-07 10:00:55 -07:00
Pavel Akhmetchanov
4a64d00d0a Update Container.js
semicolon
2013-04-07 12:23:33 +03:00
Eric Rowell
9fd5df4d79 drag and drop logic now works correctly on mobile when both the stage is draggable and a shape 2013-04-06 22:29:35 -07:00
Eric Rowell
4610918f07 updated Label docs 2013-04-06 22:06:11 -07:00
Eric Rowell
d57842126a fixes #353 2013-04-04 23:17:20 -07:00
Eric Rowell
280e07a2af fixed Polygon points default attr issue 2013-04-04 22:48:37 -07:00
Eric Rowell
6a1ec5db4c fixed #363 2013-04-04 22:45:39 -07:00
Eric Rowell
2cb39f087c renamed the Crop filter to Mask 2013-04-04 22:22:28 -07:00
Eric Rowell
171b2a57d3 Merge pull request #369 from alexahn/master
stage clear fix
2013-04-04 10:36:45 -07:00
Eric Rowell
7888ebe24d Merge pull request #365 from nicomlas/master
Crop filter
2013-04-04 09:58:02 -07:00
Alex Ahn
d1516bf727 stage layers length fix 2013-04-03 15:43:32 -04:00
Eric Rowell
348d1b59b6 Merge pull request #342 from louisj/master
Fixed Kinetic.Text wrapping issues
2013-04-02 22:47:37 -07:00
Eric Rowell
22aaa15562 fixed #348 2013-04-02 22:29:56 -07:00
Eric Rowell
d0e984ca93 Merge branch 'master' of github.com:ericdrowell/KineticJS 2013-04-02 22:08:15 -07:00
Eric Rowell
25ff34bdde fixes #362 2013-04-02 22:07:04 -07:00
Nicolas COSME
d81219f7f1 Add the Crop filter 2013-04-02 14:48:48 +02:00
Louis Jolibois
14dc481eee Merge github.com:ericdrowell/KineticJS 2013-03-27 18:55:52 +01:00
Louis Jolibois
823529f839 Fixed word wrapping behavior: last words of a multiline text should not be arbitrarily wrapped anymore.
Fixed width padding not being used.
Removed unused _expandTextData method
2013-03-27 17:12:20 +01:00
Aku Kotkavuo
5b37e2cab4 Fix leakages in Kinetic.Transition
ClojureScript advanced mode compilation chokes on these since it
mangles all function names.
2013-03-27 17:43:03 +02:00
Eric Rowell
5340ced25d tweaked docs 2013-03-26 01:09:21 -07:00
Eric Rowell
793e43b0db removed apply() Collection method. Added new mapMethods() Collection method, which is used internally to map node methods to collection methods 2013-03-25 22:43:35 -07:00
Eric Rowell
dc107a06ae fixed small logical error with startDrag() 2013-03-24 20:54:59 -07:00
Eric Rowell
5192ccd954 after some more thought, I've decided to remove the Plugins namespace, but keep the plugins directory. I don't want 3rd parties putting some things in the Kinetic namespace, while others put things in the Plugin space. I really don't see a real need for the namespacing. For organizational purposes, the plugins directory still makes sense, however. 2013-03-24 20:42:27 -07:00
Eric Rowell
3c63b13c95 fixed drag and drop regression bug 2013-03-24 18:17:58 -07:00
Eric Rowell
8a393cb6be created new testJSON method which makes testing JSON comparisons really easy to debug. Also fixed small logic problem with new Image width and height getters. Reinabled all serialization/deserialization unit tests 2013-03-24 16:30:43 -07:00
Eric Rowell
a3db78cc0f fixed up all of the data url isseus in the unit test suite 2013-03-24 16:04:56 -07:00