Commit Graph

69 Commits

Author SHA1 Message Date
lavrton
a7863fbf83 strokeScaleEnabled set to false for Line not create correct hit graph 2015-01-22 17:50:57 +07:00
lavrton
4dfc65dba4 limit corner radius 2015-01-22 15:46:53 +07:00
Eric Rowell
2df46b4ace striped out br tags from the docs 2014-04-03 20:17:09 -07:00
Лаврёнов Антон
eb16e29197 only lint errors fixes 2014-02-27 08:49:18 +08:00
Лаврёнов Антон
2055e864a6 ellipse code example is added to docs 2014-02-25 08:30:11 +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
Eric Rowell
4d8ee45f71 Sprite animations keys are now set to arrays of integers, not array of object literals containing x y width and height. changed index attr to frameIndex 2014-01-07 00:43:31 -08:00
Eric Rowell
7e2c6c97f8 changed drawFunc to sceneFunc and drawHitFunc to hitFunc 2014-01-04 23:34: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
1dec988c27 adding jshintrc file 2013-11-27 10:13:34 -08:00
Eric Rowell
a2a4c6df2b promoted to v4.7.1, and improved Shape docs 2013-09-16 22:05:28 -07:00
Eric Rowell
c802935208 changed fillStroke() to fillStrokeShape() for consistency 2013-09-02 11:09:30 -07:00
Eric Rowell
fe551c1ece added more pass through methods for the new context class, and added more unit tests 2013-09-01 13:28:52 -07:00
Eric Rowell
8c3a53dc9d started working on context tracing. Added first context trace unit test 2013-09-01 01:13:52 -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
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
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
7c03f56ae9 added lots of constructor example docs 2013-05-17 15:09:57 -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
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
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
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
0ae50ba523 merge trunk 2012-10-10 19:25:50 -07:00
Eric Rowell
2426c2bd2c moved width and height attrs to node level. This enables us to get and set shape dimensions via width and height. For example, if you have a circle with radius 50, getWidth() will return 100. Not all shapes width and height methods have been implemented yet 2012-10-10 18:48:08 -07: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
ericdrowell
fcd4b345fc moved cornerRadius proprty to Shape level 2012-10-06 15:55:10 -07:00
ericdrowell
0353214fb6 first pass at rewriting the setAttrs logic in Node. In order to have a cleaner OO design, the data type logic needs to exist within each respective module, such that the setter methods are the source of truth.
the setAttrs method now simply calls setter methods.  Also added _clone
and _merge utility methods in Type.  The refactor greatly improves
decoupling and will enable much cleaner OO design in the near future.
2012-09-24 20:34:23 -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
d48aa321f4 removed resig's Class dependency to test performance gain 2012-08-22 23:13:09 -07:00
Eric Rowell
ce3b98ee9c added some performance tweaks and polished up code here and there 2012-07-26 22:58:38 -07:00
Eric Rowell
d8bbbf6353 new Canvas class to decouple layer and canvas, providing more flexibility. drawing operations now require a canvas object rather than an optional layer which contained a canvas. fixed some transformation issues introduced with a pull request that I pulled in last week 2012-07-18 23:28:45 -07:00
Eric Rowell
780d5568db updated the documentation for all methods to reflect the new inhertiance changes. And yes, if you're curious, it took forever. 2012-07-08 21:56:52 -07:00
Eric Rowell
6126c73a84 moved data type logic into new utility files Type.js and renamed GlobalObject to Global 2012-07-03 22:08:59 -07:00
Eric Rowell
3d4d2d20c0 now utilizing John Resig's mashup of Base.js and protototype.js inheritiance Class so that it's easy for developers to extend KineticJS objects with extend() or to simply tack on new methods and properties that's available to all children classes. Moved getter and setter logic to Node. Moved transition class to root directory and created Tween class 2012-07-03 12:07:27 -07:00