Commit Graph

100 Commits

Author SHA1 Message Date
Eric Rowell
422a6b305b implemented enableNestedTransforms flag which forces the rendering engine to skip nested transform calculations when they aren't needed 2013-12-05 22:29:50 -08:00
Eric Rowell
533699b731 component attrs are now the source of truth again 2013-12-04 08:15:04 -08:00
Eric Rowell
a57d6c6106 more unit tests working, more refactoring 2013-12-02 21:25:20 -08:00
ericdrowell
85db781630 deprecated the get() method and added find(). the change is backwards compatible 2013-09-20 14:08:51 -07:00
Eric Rowell
91fd14cc9f moved UA to Global namespace, and fixed scope issue in _drawChildren that was preventing nested draws from working correctly 2013-09-14 11:02:47 -07:00
Eric Rowell
c40fc7cf38 removed Global namespace. global stuff is now just global, inside the Kinetic namespace. There was no reason to have a secondary level for global vars 2013-09-08 22:02:04 -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
Eric Rowell
6663ec0652 clipping regions now work correctly when device pixel ratio != 1 2013-08-25 22:26:42 -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
64d6c79a6a moved factory logic out of Node.js to Factory.js 2013-08-10 21:11:34 -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
9324c366ea standardized init method names with underscores 2013-07-22 21:41:41 -07:00
Eric Rowell
e6a9324d50 last pull request completely broke the unit tests. had to rewrite the get() logic so that it was correct 2013-07-21 16:05:40 -07:00
Eric Rowell
78214099b5 Merge pull request #515 from gaddie-3/master
Added the ability to pass multiple selectors to get()
2013-07-21 14:53:14 -07:00
ippo615
1d375fb711 Fixed JS Hint errors 2013-07-11 19:47:33 -04:00
Luke
e0693d590b Added the ability to pass multiple selectors to get() 2013-07-03 15:53:44 -04: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
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
c7816642d7 fixes #414 2013-05-20 22:12: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
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
375abc40fb updated more docs in reference to intersects(), getIntersections(), and getAllIntersections() 2013-05-17 16:20:37 -07:00
Eric Rowell
3433086079 changed getIntersections() to getAllIntersections() to indicate that the method returns more than may be needed. Updatee docs, and clarified the differences between intersects(), getIntersection(), and getAllIntersections() 2013-05-17 15:50:53 -07:00
Eric Rowell
b1025be75e updated docs in prep for jsdoc3 migration 2013-05-15 09:27:22 -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
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
0e60ccc27e Merge pull request #377 from pavelpower/patch-3
Update Container.js
2013-04-07 18:43:19 -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
966ebf2a32 lots of refactoring, and code hardening. Also fixed bug in which dragend events were being fired before mouseup/touchend events 2013-03-23 20:02:11 -07:00
Eric Rowell
0c80f6e223 rewrote dynamic drag and drop layer because the old implementation had too many problems. This resolves all of the dynamic drag and drop issues in one go. draw() method can now be applied to any node, not just the Stage and Layers. drag events now bubble 2013-03-22 00:46:41 -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
Eric Rowell
46f71d283f added clipping functionality to containers. Currently, the clipping function can only be applied to layers and groups. The clipping region is also subject to the containers transforms, which means that you can also create transformed clipping regions. 2013-02-15 18:20:34 -08:00
Eric Rowell
b1038e99bf pulled Node config params and Shape config params into a textfile, and now using token replacement to auto fill Node and Shape config params throughout the code base. In this way, if I need to make changes to the Node or Shape configs, those changes are propagated to all of the other constructors 2013-01-26 20:42:19 -08:00
Eric Rowell
b6ba1a503c ids and names hashes used for node selection via get() has moved to Global in order to greatly simplify the selection logic. This means that node ids and names are shared across all stages. If two stages each have a node with the same id, only the last id set will be accessibile (similar to DOM) 2013-01-13 11:10:49 -08:00
Eric Rowell
ed579e4843 added new destroy Node method which removes and destroys a node. remove() now simply removes a node from the stage. You can re add the node at a later time with add(). getDOM() changed to getContent(). stage.remove() now correctly removes content node 2013-01-12 22:01:12 -08:00
Eric Rowell
66a7e2ac39 layer.toDataURL() now directly returns layer canvas data url if position and size are not specificed. updated unit tests and docs 2013-01-02 22:02:00 -08:00
Eric Rowell
cb8d36c393 fixed several bugs with toImage(). toImage() can now also accept x and y params. added extensive caching unit test. removed drawBuffer logic as it is no longer needed 2012-12-11 00:08:59 -08:00
Eric Rowell
ab19b442a0 wrapped all modules with anonymous func. moved Canvas to root dir because it's now coupled to KineticJS logic. removed whitelisting arrays from Global. Did some prep work for AMD and Node support 2012-12-01 12:04:10 -08:00
Eric Rowell
27d5031665 further decoupled scene, hit, and buffer graph drawing. To define a custom hit draw function, you now need to set the drawHitFunc attr. 2012-11-18 19:50:50 -08:00
Eric Rowell
bb78dacddf made various low level performance enhancements with Container 2012-11-14 00:18:49 -08:00
Eric Rowell
3d0cb26e6d updated build file to also minify modules separately for custom builds. Started work on decoupling Animation and DragAndDrop logic from other modules 2012-10-14 18:46:04 -07:00
ericdrowell
432533ae4a greatly improved the OO design for draw logic. removed unecessary _draw() and __draw() methods 2012-10-07 19:14:14 -07:00
David Johansson
8e03a97d46 Improved get method to inlude get by shapeType. Also improved the oo-design. 2012-10-06 23:35:46 +02:00
ericdrowell
a97d3ad01f refactored toJSON() method to work for any node, not just the stage. Improved the OO design following David Johanssons lead, and also added another unit test 2012-10-03 19:38:12 -07:00
ericdrowell
f235ea032d improved OO design for remove() and add() 2012-09-26 19:26:53 -07:00