Commit Graph

511 Commits

Author SHA1 Message Date
Eric Rowell
0e514f7810 fixed up text path draw func 2012-11-24 00:05:37 -08:00
Eric Rowell
7f68dafb5c fixed up Image hit draw func 2012-11-23 23:55:20 -08:00
Eric Rowell
b67cc4b589 Text shape now depends on Rect for rect drawing func 2012-11-23 22:21:19 -08:00
Eric Rowell
318d03feb7 finished up new Scene and Hit Renderers. added new textShadow attrs for more flexibility. Added new fillStroke() method which encapsulates shadow application logic 2012-11-23 14:54:32 -08:00
Eric Rowell
144e95ad42 preparation work for new Renderer inheritance pattern 2012-11-20 23:03:24 -08:00
Eric Rowell
c121e4b941 you can now pass in custom drawFuncs and drawHitFuncs via shape constructors 2012-11-18 20:28:55 -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
e04b979063 improved drag and drop performance by skipping buffer redraws on drag move 2012-11-17 22:29:07 -08:00
Eric Rowell
feb1c83aac added unit test for group to image 2012-11-15 22:22:38 -08:00
Eric Rowell
383a039def applyFilter() method now takes in a required filter function, and an optional config and callback function, rather than a config object 2012-11-15 21:51:33 -08:00
Eric Rowell
0db40018af prepend tests with a ! to omit a particular test from the test suite 2012-11-15 21:33:39 -08:00
Eric Rowell
1913fed33b Kinetic.Animation constructor now just requires a function and optional node. No more config object 2012-11-15 21:30:58 -08:00
Eric Rowell
694ced6b7a added custom buffer drawing function functional tests. Added an index page with links to all of the KineticJS tests inside the tests directory 2012-11-14 22:14:15 -08:00
Eric Rowell
9f80402dd1 improved functional test layout, and started work on drawBufferFunc support 2012-11-14 21:55:16 -08:00
Eric Rowell
bb78dacddf made various low level performance enhancements with Container 2012-11-14 00:18:49 -08:00
Eric Rowell
38d78cc53a added local cached variables to improve performance for Node and Shape 2012-11-14 00:07:59 -08:00
Eric Rowell
914ee2fb4b after doing some more performance testing, decided to remove class level cache in favor of local method variable caching only 2012-11-13 23:48:30 -08:00
Eric Rowell
3c3351ec6f removed ATTRS class level variable cache from Shape. added class level variable cache to Node. Made several low level optimizations. 2012-11-13 23:22:56 -08:00
Eric Rowell
429f28964a wrapped Shape module with anonymous function, added variable cache, and reduced object attr access calls 2012-11-13 22:54:08 -08:00
Eric Rowell
2115920ab8 fixed up Canvas type bug. The Canvas constructor can now also take an optional isBuffer param. If not defined, default value is scene 2012-11-13 22:16:36 -08:00
Eric Rowell
8486cb943f updated .gitignore file to ignore unitTests.js 2012-11-13 21:43:08 -08:00
Eric Rowell
178c4d7d42 removing unitTests.js from project because it is no longer a source file 2012-11-13 21:42:02 -08:00
Eric Rowell
a5e23c426d restructured unit tests and created a unit test build target which concatenates source test files 2012-11-13 21:37:28 -08:00
Eric Rowell
5be1802729 fix #149 began decoupling scene graph draw and buffer graph draw logic. This will enable more flexibility for developers to define custom buffer draw functions, and it also improves draw performance for both the scene and buffer graphs, because each function can be optimized for its purpose. Also moved text drawing logic to the Text shape 2012-11-12 19:59:19 -08:00
Eric Rowell
a30d6730fe documented Filters namespace, filters, and Transform class, and cleaned up jsdoc warnings 2012-11-11 17:08:16 -08:00
Eric Rowell
753971247d fix #146 used standard object notation in thorfile to hopefully prevent older versions of Ruby from failing 2012-11-10 18:08:32 -08:00
Eric Rowell
908fa24b8e fix 149 cleaned up Kinetic.Canvas usage 2012-11-10 17:05:35 -08:00
Eric Rowell
4cc505446a updated docs 2012-11-05 07:33:54 -08:00
Eric Rowell
bb26f948f2 Merge pull request #144 from BlackScorp/master
Ignore IDE Files
2012-11-05 07:31:58 -08:00
BlackScorp
f1573fb7e2 ignore IDE Files 2012-11-05 09:13:05 +01:00
Eric Rowell
356c302ac3 added shapeType property to Sprite which fixes a bug related to cloning Sprites. Also added more unit tests 2012-11-04 18:15:29 -08:00
Eric Rowell
2e31d9f2b6 updated Filter comments 2012-11-04 11:35:17 -08:00
Eric Rowell
656a7a63e4 added Invert filter which inverts image colors 2012-11-04 11:30:40 -08:00
Eric Rowell
b76cc09742 added Brighten filter 2012-11-04 10:52:33 -08:00
Eric Rowell
921d9f0caa improved unit test for setDrawFunc() 2012-11-04 08:54:32 -08:00
Eric Rowell
1a53757d2e added comment for IE9 Windows7 64bit bug 2012-11-04 08:08:32 -08:00
Eric Rowell
b3e7e26248 console.warn() was failing in IE9 running on Windows7 64bit. changed check to window.console 2012-11-04 08:07:09 -08:00
Eric Rowell
32e72176ca isListening() method now takes into account ancestor listening 2012-11-03 22:20:46 -07:00
Eric Rowell
257497755b added defensive coding to _handleEvent() method which fixes a bug related to canceling stage drag and drop while dragging 2012-11-03 21:49:20 -07:00
Eric Rowell
9c1f32d341 added dist files to ignore file and updated Thorfile. Dist files should no longer be checked into the repo 2012-11-03 21:14:27 -07:00
Eric Rowell
fb1186883a purging dist files 2012-11-03 20:59:18 -07:00
Eric Rowell
0748692c1d added new fire() method which fires synthetic events and custom events. Simulate() now simulates user events with event bubbling 2012-11-03 17:19:21 -07:00
Eric Rowell
df829e1e89 fixed up toImage() docs 2012-11-03 16:08:29 -07:00
Eric Rowell
78668b0d38 greatly improved animation, transition, and drag and drop performance by dynamically switching between fixed and dynamic frame rates, and also created a single source of truth for the animation frame object 2012-11-03 11:16:33 -07:00
Eric Rowell
1ad12bbbf1 updated readme 2012-11-02 10:03:29 -07:00
ericdrowell
35876c854c Merge pull request #138 from pavelpower/master
use function simulate for user event
2012-11-02 09:12:07 -07:00
Pavel Akhmetchanov
4536f3cdef Update src/Node.js
replace function simulate. Added event attribute.
2012-11-02 17:59:17 +06:00
Eric Rowell
d0ebbc939a added setAttrs() method back in because I realized that it wasn't hurting performance that much 2012-10-28 22:45:37 -07:00
Eric Rowell
fb90709b3a greatly improved transition performance by directly setting attr properties for each frame, and also removing unecessary redraws when transition finishes 2012-10-28 22:41:13 -07:00
Eric Rowell
f1e2503873 added tests for configurator combinations 2012-10-19 23:31:26 -07:00