Commit Graph

172 Commits

Author SHA1 Message Date
Eric Rowell
b1025be75e updated docs in prep for jsdoc3 migration 2013-05-15 09:27:22 -07:00
Eric Rowell
8c9d2b5459 setAttr() is now a public method that can be used to set Kinetic attrs, or custom attrs 2013-05-14 22:37:33 -07:00
Eric Rowell
032eb9e4db updated docs 2013-05-08 09:44:03 -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
8f06f1eb67 heavily updated documentation 2013-05-07 10:19:54 -07:00
Eric Rowell
d67f1d2c1d exposed getRandomColor() method 2013-05-06 00:17:10 -07:00
Eric Rowell
2610851e4b fixed up radial gradients 2013-05-05 23:07:55 -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
790b45ec87 added new get*RGB(), get*R(), get*G(), and get*B() methods for fill, stroke, and shadowColor. Also added new Kinetic.Type.getRGB() utility 2013-04-29 23:12:28 -07:00
Eric Rowell
1dc323305b all attrs that have x and y components now have individual component setters. i.e. you can use setScale() and pass in an object, or setScaleX() and setScaleY() individually 2013-04-27 20:50:42 -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
ad0ecd9fe9 fixes #388 unregister shape color key on destroy, not remove 2013-04-12 01:14:31 -07:00
Eric Rowell
bfbd42b232 extended getIntersection method for Layer to improve flexibility. Replaced instances of Math.round to bitwise round via | 0 for a small performance gain 2013-04-11 23:51:21 -07:00
Eric Rowell
542f675522 added getNodeType() and getShapeType() methods 2013-03-24 00:14:42 -07: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
012e495a69 new strokeScaleEnabled property which enables you to configure if the stroke style of a shape should scale or not as the shape itself scales, or as its ancestors scale 2013-02-21 09:14:44 -08:00
Eric Rowell
5e65b4c596 refactored pixel ratio scale logic 2013-02-12 00:20:24 -08:00
Eric Rowell
5ac8142f82 Kinetic.Text events now work property 2013-02-11 22:55:24 -08:00
Eric Rowell
582ed89a02 updated docs 2013-01-30 10:05:58 -08:00
Eric Rowell
322e88d454 new fillPriority attr which enables you to easily toggle between different fill types without having to null out fill attrs and reset other fill attrs 2013-01-30 09:50:36 -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
6a73f4dcfb added enabler / disabler tests for Text. added more documentation 2013-01-26 19:35:53 -08:00
Eric Rowell
c2e5f4c1b3 refactored stroke and fill logic to eliminate duplicated logic 2013-01-24 22:44:00 -08:00
Eric Rowell
624ec25c29 added enabler and disabler functions to toggle shape attrs that are either on or off, such as fill, stroke, shadow, and dashArray. Also fixed problem with shadows not being applied to non color filled shapes 2013-01-23 23:08:01 -08:00
Eric Rowell
a7466a0b87 updated docs 2013-01-06 09:04:10 -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
c675f19e52 updated docs 2013-01-02 22:43:12 -08:00
Eric Rowell
31ad5fca88 updated docs 2013-01-02 21:35:51 -08:00
Eric Rowell
a53db90d0a flattened fill attr, created new Node getter and setter generators that handle type conversions for points, sizes, and rotations 2013-01-01 23:54:02 -08:00
Eric Rowell
83bf1740a6 flattened shadow object into shadowColor, shadowBlur, shadowOpacity, and shadowOffset attrs 2012-12-31 00:45:38 -08:00
Eric Rowell
7ba40a6a68 drag and drop operatons now dynamically generate a temporary top layer for high performance drag and drop. When completed, the top layer is removed. Also cleaned up a bit of drag and drop logic 2012-12-30 23:14:23 -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
ff93a18b0e updated Shape and Wedge docs 2012-12-16 12:56:30 -08:00
Eric Rowell
f18bf604de added pixel ratio optimization to sharpen renderings for devices with a pixel ratio > 1 2012-12-13 21:53:39 -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
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
9be03d6eab moved dashArray attr to Shape level and hooked into native setLineDash method now that it's in the spec. This enables dashed lines for any type of stroke, not just straight lines 2012-12-08 10:21:52 -08:00
Eric Rowell
c316edb418 added transform property normalization in setFill() method and also added fill transform unit tests 2012-12-08 09:26:16 -08:00
Eric Rowell
8a195618cf cleaned up some cropping logic in Image, and added a cropping unit test 2012-11-30 20:01:10 -08:00
Eric Rowell
8958fbffc6 new applyShadow method for shape. Images with transparent pixels can now have shadows applied to them again. Fixed image stroke buffer rendering issue 2012-11-28 20:50:33 -08:00
Eric Rowell
393a9687dc adjusted anonymous function wrapper for Node and Shape so that jsdocs wouldn't get tripped up 2012-11-26 20:42: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
38d78cc53a added local cached variables to improve performance for Node and Shape 2012-11-14 00:07:59 -08:00