Eric Rowell
|
eccd8b7e64
|
silky smooth animations. got rid of layer and event throttling, and instead created dragThrottling. The dynamic animation frame rates already handles optimized animation drawing, we just needed to add manual throttling to drag and drop. Animations are now very smooth, and drag and drop is still smooth
|
2012-07-26 23:26:58 -07:00 |
|
Eric Rowell
|
5f7b6018fa
|
finally got around to documenting the Node, Group, Stage, Shape, Layer, and Container constructors
|
2012-07-23 22:39:55 -07:00 |
|
Eric Rowell
|
3997d74317
|
updated more docs
|
2012-07-23 00:00:22 -07:00 |
|
Eric Rowell
|
3617d8ef5f
|
updated docs
|
2012-07-22 23:30:56 -07:00 |
|
Eric Rowell
|
781a2ebe60
|
fixed a few bugs discovered with integration testing. added some performance tweaks
|
2012-07-21 21:09:02 -07:00 |
|
Eric Rowell
|
f1cb695e1f
|
you can now cache regions of a node outside of the stage viewport. added more unit tests
|
2012-07-21 15:38:25 -07:00 |
|
Eric Rowell
|
d74ec8ab06
|
fixed new bug with stage toDataURL that was introduced with the new Canvas class, and added new filter unit tests
|
2012-07-21 13:29:22 -07:00 |
|
Eric Rowell
|
4b0b3a2a20
|
now that things are drawn onto arbitrary canvas elements wrapped with the Canvas class, it's now possible to create temp canvases on the fly, which enables correct-size image filtering, and no limits on node caching
|
2012-07-19 23:30:59 -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
|
20adf7e036
|
first pass at implementing filters. Still have a lot to work through.
|
2012-07-17 00:32:26 -07:00 |
|
Eric Rowell
|
384a686740
|
worked through some synchronous / asynchronous issues with toDataURL and toImage(). stage toDataURL() is now asynchronous, and all other node toDataURLs is still synchronous. toImage() is now asynchronous. Kinetic.Image once again only accepts image objects, and can no longer be instantiated with a data URL or image data due to asynchronous issues. It's much cleaner for the developer to load an image however they like, and then instantiate a Kinetic.Image shape synchronously
|
2012-07-15 20:12:18 -07:00 |
|
Eric Rowell
|
6dc7c685f0
|
new toImage() method to support node caching
|
2012-07-14 23:41:16 -07:00 |
|
Eric Rowell
|
4692c51c74
|
toDataURL() is now synchronous, and works with all nodes, including the stage, layers, groups, and shapes. This also sets things up nicely for node caching. You can now cache anything, including the whole stage, layers, groups, or shapes, manifested as Kinetic Images that were instantiated with data urls
|
2012-07-14 18:10:37 -07:00 |
|
Eric Rowell
|
d62df7ba5c
|
setup filters. saveImageData can now work for any nodes, including shapes, groups, layers, and the stage. images can now take image data as a parameter. This enables shape caching. New beforeAttrChange event which fires before an attr is changed
|
2012-07-14 16:25:56 -07:00 |
|
Eric Rowell
|
5bfcf3ffa8
|
the stage ids and names hashes are now updated correctly whenever a node's id or name changes
|
2012-07-13 21:24:38 -07:00 |
|
Eric Rowell
|
9a83d3dfdf
|
on attr change handler eent object now contains oldVal and newVal property
|
2012-07-13 20:06:28 -07:00 |
|
Vijai Ramcharan
|
41299d7f98
|
Moved center offset translation from drawing to getTransform()
This fixes an issue where getAbsolutePosition() would not work when
used with a parent that has a center offset applied.
|
2012-07-10 20:28:42 +02: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
|
30fd5c1fa7
|
greatly improved sprite animation performance by hooking into the global animation object
|
2012-07-07 21:39:03 -07:00 |
|
Eric Rowell
|
a8ab9a2533
|
implemented clone method (inspired by matteo78) and added thorough unit tests
|
2012-07-07 14:43:12 -07:00 |
|
Eric Rowell
|
7f7cd24838
|
attr change events no longer bubble. updated functional test data urls
|
2012-07-07 11:52:04 -07:00 |
|
Eric Rowell
|
014d4f198f
|
fixed mouseover / mouseout incorrectly firing when moving from one node to another node inside the same container
|
2012-07-06 00:27:55 -07:00 |
|
Eric Rowell
|
de7cab4cf3
|
moved animation logic into Animation.js. Global.js now only contains logic and properties that operate on stages
|
2012-07-03 23:00: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
|
17644fcb8f
|
made performance improvement for isVisible method, suggested by mysza
|
2012-07-03 12:59:31 -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 |
|
Eric Rowell
|
31566bff13
|
transition attr updates now fire the attr change event. Fixed problem with root level attrs not being fired when child level attr changed
|
2012-07-01 00:19:56 -07:00 |
|
Eric Rowell
|
6663b9e612
|
first pass at implementing auto word wrap. Still have a few edge cases to cover. Removed vertical align property as it is no longer relevant
|
2012-06-30 00:40:54 -07:00 |
|
Eric Rowell
|
07ef653441
|
completely rewrote the Text shape. Kinetic.Text is now a Group that's composed of a Rect and a custom shape that draws text. align and vertical align now apply to the text alignment inside the text box. box rounded corners are now possible since Text uses Rect. Shadow logic improved. Beefed up the text getter and setter unit tests
|
2012-06-27 19:50:32 -07:00 |
|
Eric Rowell
|
c1a08d8073
|
created new addSettersGetters method, further enhanced dynamic getters and setters
|
2012-06-23 18:09:10 -07:00 |
|
Eric Rowell
|
19750782c7
|
improved drawing speed by 7% by optimizing stroke(), fill(), and several other methods
|
2012-06-22 19:36:37 -07:00 |
|
Eric Rowell
|
422791a99a
|
cleaned up undefined, null, 0, and '' comparison operators. To unset a attribute, you can now set it to null, 0, or ''. Setting an attribute to undefined will have no effect
|
2012-06-22 13:15:29 -07:00 |
|
Eric Rowell
|
5765ab749b
|
converting arguments object into true array for setters, restored the original underscore.js methods, and moved radius conversion logic from the setAttrs method to a radiusChange event listener in Ellipse
|
2012-06-20 12:55:34 -07:00 |
|
Eric Rowell
|
ce5a8f3209
|
you can now cancel drag and drop with setDraggable(false) during a drag and drop operation
|
2012-06-19 17:06:31 -07:00 |
|
Eric Rowell
|
76c85a639e
|
changed listen property to listening, listen() to setListening(), and isListening() to getListening() for consistency
|
2012-06-18 23:12:56 -07:00 |
|
Eric Rowell
|
c8d8aa6028
|
changed draggable() to setDraggable(). added getDraggable(). added more unit tests and functional tests
|
2012-06-18 22:02:13 -07:00 |
|
Eric Rowell
|
fae1ff6cb7
|
removed Circle shape and replaced it with the more flexible Ellipse shape. If you define the radius with a number, the shape will be a circle. if you define the radius with an x and y component, it will be an oval
|
2012-06-17 16:50:04 -07:00 |
|
Eric Rowell
|
73ad904de6
|
updated jsdocs
|
2012-06-14 02:19:51 -07:00 |
|
Eric Rowell
|
2455000f5c
|
fixed set fill attr bug which occurred when instantiating the fill with a string color and then setting it later to a fill object such as a gradient or pattern. The fix will apply to any attr which can be a string or object
|
2012-06-12 09:57:29 -07:00 |
|
Eric Rowell
|
6d4738cd2b
|
all simple getters and setters are now dynamically created. This is the first step towards creating a code base that can unpack at run time to reduce file size
|
2012-06-10 13:07:09 -07:00 |
|
Eric Rowell
|
13105969b1
|
attr change events are now only fired on root level attr changes. changed centerOffset property to offset property for consistency. did additonal refactoring
|
2012-06-09 16:13:25 -07:00 |
|
Eric Rowell
|
bba1d0ad21
|
now leveraging the setAttrs method for all setters in Node class. utilizing draggableChange attr event to trigger drag and drop inits
|
2012-06-09 15:31:25 -07:00 |
|
Eric Rowell
|
e64024d3bd
|
refactored attr event change logic a bit. added delete operator in a couple places to fix memory leaks. added better event unit tests.
|
2012-06-09 10:53:47 -07:00 |
|
Eric Rowell
|
12b61b3621
|
attr change events are now triggered for any root attr so long as the attr is set with the setAttrs method
|
2012-06-09 01:47:41 -07:00 |
|
Eric Rowell
|
2cd24309ac
|
first step to exposing event driven architecture. Devs can subscribe to attr change events with the on method. e.g. shape.on('widthChange', function(){...})
|
2012-06-08 21:56:33 -07:00 |
|
Eric Rowell
|
440c3ac279
|
event simulation now correctly bubbles
|
2012-06-08 20:57:20 -07:00 |
|
Eric Rowell
|
e7699a588f
|
fixed mobile drag and drop bug. refactored _handleEvents(). added new functional test that has two drag and drop shapes
|
2012-06-08 00:42:48 -07:00 |
|
Eric Rowell
|
e74fa3a319
|
fixed stage drag and drop bug on tablets
|
2012-06-03 12:48:13 -07:00 |
|
Eric Rowell
|
8b22fb0690
|
updated Transition docs
|
2012-06-03 10:36:50 -07:00 |
|
Eric Rowell
|
91eb4ea371
|
isVisible() method now takes into account ancestor visibility. This fixes several bugs related to odd event detection behavior with clusters of visible and invisible nodes
|
2012-06-02 19:12:06 -07:00 |
|