Commit Graph

465 Commits

Author SHA1 Message Date
Eric Rowell
41dea5300a reworked _getCache implementation 2013-08-09 22:31:25 -07:00
Eric Rowell
3933568b45 implemented _getCache() method which every getter will use to try and get/set cached attrs 2013-08-09 22:23:27 -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
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
1fc57bed4c removed createAttrs method and cleaned up init logic 2013-07-22 22:05:21 -07:00
Eric Rowell
9324c366ea standardized init method names with underscores 2013-07-22 21:41:41 -07: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
436f170ac2 fixes #510 preventDefault is no longer fired for mobile devices when an intersected shape is not listening for events 2013-07-21 20:14:09 -07:00
Eric Rowell
f85c6b1392 added new addPoint method which allows you to add a single point to the points array without swapping the whole thing 2013-06-27 23:28:57 -07:00
Eric Rowell
b86aa11d47 fix #352 also did major remove and destroy refactoring, and added lots of unit and visual tests 2013-06-08 15:57:36 -07:00
Eric Rowell
79c3124ed7 Spline no longer extends Line. Blob no longer extends Spline. point getter setters were extracted out to Node. control point expansion method in Spline was pulled out and put in Util 2013-06-08 14:17:26 -07:00
Eric Rowell
e8ea9340fe added points Node getter and setter creators for Line and Polygon 2013-06-08 11:11:49 -07:00
Eric Rowell
007ad76680 added new destroyChildren() method 2013-06-06 23:03:00 -07:00
Eric Rowell
ffc33a7676 removeChildren now removes all descendants. returned this for all applicable methods in Node, Layer, Stage, and Shape 2013-06-06 22:45:31 -07:00
Eric Rowell
77793aed60 lots of jshinting 2013-06-01 22:03:02 -07:00
Eric Rowell
7b9322c15c custom builds that do not include drag and drop now work correctly fixes #465 2013-05-31 23:36:43 -07:00
Eric Rowell
4ef1a82bc8 rewrote Label API. Group plugins now require that children are added to the base class 2013-05-20 21:58:57 -07:00
Eric Rowell
35b1f61bda tied className into toJSON and create. deprecated shapeType property and getShapeType method 2013-05-19 21:48:48 -07:00
Eric Rowell
7069bf9e0c stage tweens now work correctly. getChildren() and getLayers() now return a Kinetic.Collection. added toArray() method to Kinetic.Collection 2013-05-19 21:07:43 -07:00
Eric Rowell
2ea5f83204 more docs, especially for Util and Tween 2013-05-18 10:40:05 -07:00
Eric Rowell
993ffd7b0e finished base constructor examples for core shape docs 2013-05-17 20:56:24 -07:00
Eric Rowell
4d682529b6 added more example docs 2013-05-17 15:35:21 -07:00
Eric Rowell
7c03f56ae9 added lots of constructor example docs 2013-05-17 15:09:57 -07:00
Eric Rowell
47364c63cd deprecated getNodeType(), added className property to label, and added lots of Node doc examples 2013-05-17 11:46:06 -07:00
Eric Rowell
d6a836ba5c Merge branch 'master' of github.com:ericdrowell/KineticJS 2013-05-17 10:52:13 -07:00
Eric Rowell
b1d1981fe9 added getType() and getClassName() methods. beefed up on() docs 2013-05-17 10:51:56 -07:00
Aku Kotkavuo
b3e76a4e23 Fix variable leakage 2013-05-17 16:56:56 +03:00
Eric Rowell
70f5c405a9 finished the major doc updates 2013-05-16 00:28:49 -07:00
Eric Rowell
b1025be75e updated docs in prep for jsdoc3 migration 2013-05-15 09:27:22 -07:00
Eric Rowell
8c9d2b5459 setAttr() is now a public method that can be used to set Kinetic attrs, or custom attrs 2013-05-14 22:37:33 -07:00
Eric Rowell
fc1e388f22 cleaned up internal firing logic. the fire method now does not bubble events by default, to prevent devs from unknowingly bubbling events that they don't care to bubble, inadvertantly affecting performance 2013-05-13 08:56:09 -07:00
Eric Rowell
2cf81cc6dd attr change events no longer bubble. this improves setter + render performance by about 25% 2013-05-12 23:37:24 -07:00
Eric Rowell
032eb9e4db updated docs 2013-05-08 09:44:03 -07:00
Eric Rowell
edc050067d node.setPosition() now uses setX() and setY() which handles the transform cache 2013-05-08 00:18:29 -07:00
Eric Rowell
76a399bfc0 major refactor of directory structure. Killed Util directory. Created Util.js file instead. Moved general purpose methods from Global to Util 2013-05-07 23:51:02 -07:00
Eric Rowell
e2d6993c89 added Global.addMethods() method and defined core constructors in Global 2013-05-07 23:17:57 -07:00
Eric Rowell
8f06f1eb67 heavily updated documentation 2013-05-07 10:19:54 -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
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
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
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
Eric Rowell
d57842126a fixes #353 2013-04-04 23:17:20 -07:00