Commit Graph

68 Commits

Author SHA1 Message Date
Eric Rowell
7e2c6c97f8 changed drawFunc to sceneFunc and drawHitFunc to hitFunc 2014-01-04 23:34:01 -08:00
Eric Rowell
d3eb9990bd removed Sprite afterFrame func. The same functionality can be achieved by listening to indexChange event 2013-12-15 12:55:01 -08:00
Eric Rowell
fe7b4daebc factor methods now also build overloaded attr functions. i.e. instead of setScaleX(5), you can use scaleX(5). Instead of getScaleX(), you can use scaleX() 2013-12-13 11:02:07 -08:00
Eric Rowell
e8b479e89f optmized buffer canvas requirement logic 2013-09-29 13:01:13 -07:00
Eric Rowell
6e8a5b74b9 fixed 2013-09-25 07:58:35 -07:00
Eric Rowell
a2a4c6df2b promoted to v4.7.1, and improved Shape docs 2013-09-16 22:05:28 -07:00
Eric Rowell
9141953569 migrated more plugin tests, and continued working on context tracer 2013-09-07 20:55:03 -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
64d6c79a6a moved factory logic out of Node.js to Factory.js 2013-08-10 21:11:34 -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
37a15817b5 removed setDrawFuncs dependency from leaf node classes. It's handled in Shape now 2013-07-22 21:49:30 -07:00
Eric Rowell
9324c366ea standardized init method names with underscores 2013-07-22 21:41:41 -07:00
Eric Rowell
98dff50c93 fixed all jshint errors except for Path, Mask, and Blur 2013-06-01 22:17:18 -07:00
Eric Rowell
5d1a78589a updated class config param doc include replacements with grunt 2013-06-01 10:27:44 -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
4d682529b6 added more example docs 2013-05-17 15:35:21 -07:00
Eric Rowell
70f5c405a9 finished the major doc updates 2013-05-16 00:28:49 -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
8f06f1eb67 heavily updated documentation 2013-05-07 10:19:54 -07:00
Eric Rowell
e66e147274 Animations can now be tied to multiple layers. Removed Transition and Tween class from the build. Unhooked transition unit and manual tests for now. Added new animation setLayers() and getLayers() methods 2013-05-05 20:57:31 -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
25ff34bdde fixes 2013-04-02 22:07:04 -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
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
bba5c7b101 really cool new feature that... wait, no, just more docmentation 2013-01-02 23:55:56 -08:00
Eric Rowell
e9d56dafba added new Blob shape. removed double quotes from all shapes. made it easier for shapes to extend other shapes 2013-01-01 00:41:13 -08:00
Eric Rowell
36584a3ce2 cleaned up docs, and beefed up individual shape docs. moved corner radius attr to Rect shape 2012-12-22 23:08:03 -08:00
Eric Rowell
291583148b moved all rendering logic into the Canvas renderer modules. Shape draw funcs are now passed a renderer object, not a canvas context. The context is accessible via canvas.getContext() 2012-12-09 09:52:33 -08:00
Eric Rowell
9bbd5e41ec decided to totally revert the pull request. the frame width and height should be used to define the width and height of the sprite frame, not the shape level width and height. This is because the frame height and width can change for different frames 2012-12-06 20:23:18 -08:00
Eric Rowell
bec7f5450b removed unecessary rect draw in sprite scene graph draw func, and changed width and height logic in sprite hit graph draw func 2012-12-06 20:16:52 -08:00
Eric Rowell
df63558686 changed around the logic from the previous pull, and also added spriteTests to the unit test build 2012-12-06 20:11:14 -08:00
Taylan
33c7d1f2f6 Update src/shapes/Sprite.js
Sprites now scale to their width and height correctly in the same way as images
2012-12-05 18:43:58 +00: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
047e26382e added new wedge shape. cleaned up shape comments. added degToRad and radToDeg helper in Type utility 2012-11-29 20:15:01 -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
9f80402dd1 improved functional test layout, and started work on drawBufferFunc support 2012-11-14 21:55:16 -08:00
Eric Rowell
5be1802729 fix 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
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
ericdrowell
b025767a27 updated jsdocs. TextPath setText() now calls Text setText(). Polygon setPoints() method now has data conversion logic similar to Line 2012-10-07 21:12:45 -07:00
Eric Rowell
5e6c8774e8 the Sprite afterFrame function should only execute once 2012-08-26 00:24:38 -07:00
Eric Rowell
1ad2530889 removed john resig's Class class because it was really slowing down node instantiations. Created a custom solution that's much lighter weight, and about 50% faster 2012-08-22 23:35:21 -07:00
Eric Rowell
6a58830df3 draw methods now draw on both the front and back buffer by default, unless a canvas is passed as an argument. continued fixing up unit tests. Image width and height are now synced whenever the image object changes. 2012-08-15 23:13:50 -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
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
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