Commit Graph

355 Commits

Author SHA1 Message Date
Eric Rowell
0f1a424840 prototyping back buffer hit detection algo 2012-08-10 22:33:22 -07:00
Eric Rowell
8c147ee2b5 added new performance test in preparation for new hit detection algo investigation 2012-08-10 20:48:42 -07:00
ericdrowell
5c898e7da5 Merge pull request #63 from jfollas/master
FIxed Stage.toDataURL JPEG issue
2012-08-10 10:37:15 -07:00
Jason Follas
1d6acca8f3 Fixed flaw in Stage.toDataURL where JPEG layers were hiding lower layers due to the use of black instead of transparent. 2012-08-09 22:39:34 -04:00
Eric Rowell
e5d195f9b4 temporarily disabled serialization unit tests 2012-08-09 11:13:20 -07:00
Eric Rowell
66ba99f9bc hooked drag and drop into animation engine 2012-08-09 00:01:21 -07:00
Eric Rowell
58cabf8ddc hooked node transitions and sprite animation into new animation API 2012-08-08 23:41:16 -07:00
Eric Rowell
b6db65301c rewrote Animation API to improve flexibility. Animations are no longer tied to the stage. You can now instantiate as many individual animations as you like, and manage them however you like 2012-08-04 00:23:56 -07:00
Eric Rowell
9ad9121259 Kinetic.Animation is now a class that can be instantiated to better represent animation objects. Rather than creating new animation objects and destroying them each time an animation is started and restarted, the same animation obect is now reused, which should help with performance 2012-07-31 23:23:00 -07:00
Eric Rowell
d5eee80c0e changed tempNodes array into a hash to improve performance 2012-07-31 21:35:04 -07:00
Eric Rowell
ed8c5ab6b8 changing the font size now correctly updates the text data 2012-07-31 21:13:25 -07:00
Eric Rowell
b7ac415ea6 transition callback is now executed immediately after final node draw 2012-07-31 21:01:48 -07:00
Eric Rowell
75b20573cd removed plugins directory because Kinetic will be using a configurator in the near future 2012-07-31 20:36:36 -07:00
Eric Rowell
87182d704c fixed bug with stage.remove(layer). layer canvas context is now correctly removed from the dom 2012-07-28 22:16:29 -07:00
Eric Rowell
e69c7a9ac1 moved Path back to the plugins, and added Geometry utility methods to the Path namespace so that they can be called as a utility methods without instantiating a Path shape 2012-07-28 17:37:24 -07:00
Eric Rowell
e82fbfa2b0 decided to move Path back into core 2012-07-28 16:33:18 -07:00
Eric Rowell
4ea094f459 moved path parsing logic to Geometry class 2012-07-28 16:29:37 -07:00
Eric Rowell
9631d6e1bb split up methods from the PathHelper class and moved them to Path and Geometry. Path specific methods went to Path, and general purpose geometric utility methods went to the Geometry utility class. TextPath now inherits methods from Path 2012-07-28 16:08:14 -07:00
Eric Rowell
c4a359cd48 moved drawFunc definition out of the shape initializers as a method to improve space performance 2012-07-28 10:46:16 -07:00
Eric Rowell
a67c1e70b1 fixed Star plugin docs 2012-07-28 09:59:17 -07:00
ericdrowell
edabaf270e Merge pull request #58 from jfollas/master
Enhancements to Path/TextPath
2012-07-28 09:57:14 -07:00
Eric Rowell
5b323bea40 merged with jfollas's TextPath updates, fixed remaining unit, manual, and performance tests, and fixed stroking logic 2012-07-28 09:55:21 -07:00
Jason Follas
58f0b6f5b1 More JSDoc work 2012-07-28 12:43:03 -04:00
Jason Follas
d6933ecb53 Corrected JSDoc text to refer to Kinetic.Plugins.TextPath instead of Kinetic.Text 2012-07-28 12:04:04 -04:00
Jason Follas
8d535556d7 Changed namespace for "plugin" shapes to Kinetic.Plugins. *This is a breaking change!*
Fixed unit tests.  Extracted Path parsing logic into PathHelper so that it's not tied to a particular shape.
2012-07-27 22:51:18 -04:00
Eric Rowell
1585cc3620 fixed tests 2012-07-27 18:41:15 -07:00
Jason Follas
5d77471f7e TextPath extends Shape instead of Path. Extracted common path functions into PathHelper.js. Updated unit tests. 2012-07-27 12:25:36 -04:00
Eric Rowell
eccd8b7e64 silky smooth animations. got rid of layer and event throttling, and instead created dragThrottling. The dynamic animation frame rates already handles optimized animation drawing, we just needed to add manual throttling to drag and drop. Animations are now very smooth, and drag and drop is still smooth 2012-07-26 23:26:58 -07:00
Eric Rowell
ce3b98ee9c added some performance tweaks and polished up code here and there 2012-07-26 22:58:38 -07:00
Eric Rowell
c26a1ae5d5 merged jfollas's new TextPath shape, and moved non-primative shapes to the plugins folder as shape plugins 2012-07-24 23:18:46 -07:00
Eric Rowell
4410ce9982 fixed bug with fillText in Shape class 2012-07-24 22:34:53 -07:00
Eric Rowell
ebf324484d updated Shape constructor docs 2012-07-23 22:43:04 -07:00
Eric Rowell
5f7b6018fa finally got around to documenting the Node, Group, Stage, Shape, Layer, and Container constructors 2012-07-23 22:39:55 -07:00
Eric Rowell
3997d74317 updated more docs 2012-07-23 00:00:22 -07:00
Eric Rowell
3617d8ef5f updated docs 2012-07-22 23:30:56 -07:00
ericdrowell
f7e233100a Merge pull request #55 from imakewebthings/patch-1
Fix getStrokeColor -> getStroke in Shape docs.
2012-07-22 21:03:34 -07:00
Caleb Troughton
0a1d632900 Fix getStrokeColor -> getStroke in Shape docs. 2012-07-23 11:35:06 +08:00
Eric Rowell
da7429fb7b fixed bug with setSize method in Image object, and tweaked shape caching performance test to demonstrate a 4x drawing performance boost 2012-07-22 17:05:45 -07:00
Eric Rowell
781a2ebe60 fixed a few bugs discovered with integration testing. added some performance tweaks 2012-07-21 21:09:02 -07:00
Eric Rowell
f1cb695e1f you can now cache regions of a node outside of the stage viewport. added more unit tests 2012-07-21 15:38:25 -07:00
Eric Rowell
d74ec8ab06 fixed new bug with stage toDataURL that was introduced with the new Canvas class, and added new filter unit tests 2012-07-21 13:29:22 -07:00
Eric Rowell
4b0b3a2a20 now that things are drawn onto arbitrary canvas elements wrapped with the Canvas class, it's now possible to create temp canvases on the fly, which enables correct-size image filtering, and no limits on node caching 2012-07-19 23:30:59 -07:00
Eric Rowell
c09742c77c formatted pull request 2012-07-18 23:53:28 -07:00
ericdrowell
148cde228a Merge pull request #52 from Country/master
Miscalculation of container position
2012-07-18 23:39:28 -07:00
Eric Rowell
d8bbbf6353 new Canvas class to decouple layer and canvas, providing more flexibility. drawing operations now require a canvas object rather than an optional layer which contained a canvas. fixed some transformation issues introduced with a pull request that I pulled in last week 2012-07-18 23:28:45 -07:00
Yannick Croissant
e46dfdb565 Fix _getContentPosition, the position was miscalculated if a positioned container had a border. 2012-07-17 13:14:49 +03:00
Eric Rowell
20adf7e036 first pass at implementing filters. Still have a lot to work through. 2012-07-17 00:32:26 -07:00
Eric Rowell
384a686740 worked through some synchronous / asynchronous issues with toDataURL and toImage(). stage toDataURL() is now asynchronous, and all other node toDataURLs is still synchronous. toImage() is now asynchronous. Kinetic.Image once again only accepts image objects, and can no longer be instantiated with a data URL or image data due to asynchronous issues. It's much cleaner for the developer to load an image however they like, and then instantiate a Kinetic.Image shape synchronously 2012-07-15 20:12:18 -07:00
Eric Rowell
acc6b6e14e updated unit tests 2012-07-15 00:06:35 -07:00
Eric Rowell
6dc7c685f0 new toImage() method to support node caching 2012-07-14 23:41:16 -07:00