Commit Graph

111 Commits

Author SHA1 Message Date
Eric Rowell
8f06f1eb67 heavily updated documentation 2013-05-07 10:19:54 -07:00
Eric Rowell
2610851e4b fixed up radial gradients 2013-05-05 23:07:55 -07:00
Eric Rowell
8dc1666595 removed Transition, Tween, and transition tests from source. KineticJS has now partnered with GS to handle its Tweens (which it does marvelously) 2013-05-05 22:15:04 -07:00
Eric Rowell
11f269868f added batchDraw which enables you to call batchDraw() as many times as you want, and let Kinetic automatically combine layer draws together asynchronously 2013-05-05 22:09:32 -07:00
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
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
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
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
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
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
8f22bb1938 added stage transition resize manual test 2013-04-07 00:15:15 -07:00
Eric Rowell
d57842126a fixes #353 2013-04-04 23:17:20 -07:00
Eric Rowell
6a1ec5db4c fixed #363 2013-04-04 22:45:39 -07:00
Eric Rowell
ada9f6dbd4 updated drag and drop docs 2013-04-04 22:27:11 -07:00
Eric Rowell
2cb39f087c renamed the Crop filter to Mask 2013-04-04 22:22:28 -07:00
Eric Rowell
7888ebe24d Merge pull request #365 from nicomlas/master
Crop filter
2013-04-04 09:58:02 -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
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
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
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
Eric Rowell
46c7b89e06 created new test method, testDataUrl, which makes it super easy to identify data url comparison failures that resulted from Chrome upgrades. Begain integrating. fixed all synchronous unit test data url comparison failures 2013-03-24 14:12:00 -07:00
Eric Rowell
b5aaab3584 began updating the data url strings to match recent Chrome changes 2013-03-24 13:32:52 -07:00
Eric Rowell
15a9f6165f updated spline tests 2013-03-24 00:15:15 -07:00
Eric Rowell
542f675522 added getNodeType() and getShapeType() methods 2013-03-24 00:14:42 -07:00
Eric Rowell
ce793a4b25 refactored / cleaned up code in Node and DD 2013-03-23 22:56:22 -07:00
Eric Rowell
b5c1bc633a removed dynamic drag and drop layer all together. In the end, the performance benefits (small) did not out weigh the complexity consequences 2013-03-23 21:47:15 -07:00
Eric Rowell
9db24812bd removed simulate method. refactoring also fixed bug in which if you fire a custom event that has not been registered, the script no longer fails 2013-03-21 19:43:17 -07:00
Eric Rowell
5b3a87b98d changed wrapping attribute to wrap 2013-03-20 09:26:55 -07:00
Eric Rowell
809da97a45 merged and tweaked pull request 314 2013-03-20 09:17:21 -07:00
Eric Rowell
fb2d816817 updated text test 2013-03-20 09:02:18 -07:00
Eric Rowell
97db4fc053 fixed up TextPath tests 2013-03-19 09:40:48 -07:00
Eric Rowell
f3dd9286a9 changed Gauss to Blur 2013-03-19 09:03:18 -07:00
Eric Rowell
4036aa5fc7 label offset is now adjusted whenever the text is updated 2013-03-17 22:01:52 -07:00
Eric Rowell
e43c2fbeb4 fixed logic in Text that was accessing padding attr directly without using the getter 2013-03-17 21:16:08 -07:00
Eric Rowell
e0e390f760 added getWidth() and getHeight() methods to Label 2013-03-17 17:56:39 -07:00
Eric Rowell
b37f50ba69 moved Path to Plugins namespace 2013-03-17 17:32:35 -07:00
Eric Rowell
a1f934d26a changed label rect drawing from Polygon to Shape to support rounded corners soon. Also wrapped the text and rect inside of an inner group so that the label can be positioned based on the pointer tip 2013-03-17 17:20:06 -07:00
Eric Rowell
bb57810c9a added arrow support for new label plugin 2013-03-16 00:33:56 -07:00
Eric Rowell
8e17729cea first pass of new Label plugin 2013-03-15 23:35:40 -07:00
Eric Rowell
69f9374c8e first pass at removing setDefaultAttrs logic to speed up node instantation performance 2013-03-15 08:33:05 -07:00