Commit Graph

133 Commits

Author SHA1 Message Date
Лаврёнов Антон
012db6594c Merge branch 'get-intersection-cache' of git://github.com/vmichnowicz/KineticJS into vmichnowicz-get-intersection-cache
Conflicts:
	src/Container.js
	src/Shape.js
2014-05-17 13:16:45 +08:00
Victor Michnowicz
70564cc1e4 Update clearing of getImageData cache 2014-05-17 00:06:46 -04:00
Лаврёнов Антон
f99975441e fix typo of shouldDrawHit 2014-05-09 17:08:14 +08:00
Лаврёнов Антон
f648852975 improve shouldDrawHit behaviour 2014-05-06 16:21:25 +08:00
Лаврёнов Антон
224790f7c9 Merge branch 'fix-cache-hit-before-added-to-layer' of git://github.com/kzhdev/KineticJS into kzhdev-fix-cache-hit-before-added-to-layer 2014-05-04 11:55:43 +08:00
Eric Rowell
2df46b4ace striped out br tags from the docs 2014-04-03 20:17:09 -07:00
Eric Rowell
59a571c635 refactored cache method to work better with containers and also fast layers 2014-03-22 00:13:05 -07:00
Лаврёнов Антон
62e28dbd3c some docs improvements 2014-03-14 13:20:39 +08:00
Лаврёнов Антон
2bcb7bdab2 Merge branch 'master' of git://github.com/vmichnowicz/KineticJS into vmichnowicz-master 2014-03-14 12:56:14 +08:00
Victor Michnowicz
0898c24b7a add() now can add multiple layers or nodes 2014-03-13 23:30:46 -04:00
Eric Rowell
c623666206 deprecated transformsEnabled property. Continued developing the new FastLayer class 2014-03-09 12:41:16 -07:00
Лаврёнов Антон
86178185bc optional filter callback for getChildren function. close #313 2014-03-02 09:25:22 +08:00
Лаврёнов Антон
3a5b6eb766 Faster removeChildren and destroyChildren methods 2014-03-02 08:21:11 +08:00
Лаврёнов Антон
74060ce935 add function takes care about parent existence. fix #426, #434 2014-03-02 07:50:51 +08:00
Лаврёнов Антон
eb16e29197 only lint errors fixes 2014-02-27 08:49:18 +08:00
kzhdev
a3cebbb147 draw cache hit only when the shape was listening and visible 2014-01-22 11:25:16 -06:00
kzhdev
5fac5b5cb3 Fixed an issue where hit didn't cached if a shape was cached before added to a layer. Fix #758 2014-01-22 11:24:12 -06:00
Eric Rowell
9579d4b2f6 Merge pull request #739 from lavrton/docImprove
Doc improve
2014-01-19 21:57:48 -08:00
Eric Rowell
f1b1c58166 all methods are now copied to Collection prototype so that you don't have to use the each() method all the time 2014-01-19 21:35:28 -08:00
Лаврёнов Антон
1db2a43657 hasChildren returns Boolean 2014-01-13 01:07:57 +08:00
Лаврёнов Антон
90dd146c47 find returns Collection 2014-01-13 01:07:06 +08:00
Лаврёнов Антон
a8adef8927 Container's add return this 2014-01-13 01:05:46 +08:00
Eric Rowell
f73baa1a4e cutting down Factory by creating a addComponentsGetterSetter method which all component attrs will use 2014-01-08 23:13:50 -08:00
Eric Rowell
2e97e20436 updated more overloaded docs 2014-01-05 20:52:09 -08:00
Eric Rowell
4d323c7b57 new drawHitFromCache Shape method replaces Image createImageHitRegion 2014-01-05 01:10:56 -08:00
Eric Rowell
12e7b06978 first pass at integrating filters into new caching mechanism. added group filter test. Removed blurX and blurY filters because I don't think they'll be needed in their current state. Commented out half filter blur test because it's not a common use case. other filter tests have been disabled for now. Working on enabling them with future commits 2013-12-31 13:04:05 -08:00
Eric Rowell
a47726eb2f added support for cached node with transformed ancestors 2013-12-29 21:40:37 -08:00
Eric Rowell
0899cdb1a3 new graph caching mechanism now supports containers as well. added test 2013-12-29 19:30:44 -08:00
Eric Rowell
90b07cea05 refactored Container drawScene and drawHit methods, and cleaned up clipping logic. Clipping now correctly also clips the hit graph 2013-12-29 14:07:58 -08:00
Eric Rowell
4866acdf93 transformsEnabled property now accepts all, none, or position. Also started prelim work for new caching system 2013-12-19 23:29:23 -08:00
Eric Rowell
8b4deb004d added stage nestedTransformsEnabled flag 2013-12-09 22:46:58 -08:00
Eric Rowell
0bad22955a removed instances of hit graph enable caching. Too complex and error prone at the moment 2013-12-09 22:15:26 -08:00
Eric Rowell
1f4ff9f1d7 cleaned up isListening API. introduced new enableHitGraph config that can be used to disable the hit graph 2013-12-09 10:07:08 -08:00
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