Eric Rowell
|
d4f03e64b1
|
removed unecessary regex in Class file which was tripping up the JS minifier
|
2012-07-11 22:55:18 -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
|
5169c93219
|
fixed afterFrame index bug which caused the event to trigger on the wrong index
|
2012-07-08 19:15:23 -07:00 |
|
Eric Rowell
|
9baaee2440
|
getIntersections no longer returns visible shapes in the result set, and can also be called from any container
|
2012-07-06 21:45:18 -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
|
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
|
f8f46daafe
|
added work around for strange formatting error
|
2012-07-01 20:58:13 -07:00 |
|
Eric Rowell
|
c1a08d8073
|
created new addSettersGetters method, further enhanced dynamic getters and setters
|
2012-06-23 18:09:10 -07:00 |
|
ericdrowell
|
ca6e8f1d14
|
Merge pull request #32 from boatmeme/11a1662c0e3e8c9bd20db2ac8ff3f2572b337cb7
Calling stage.toJSON() prevents subsequent drawing on existing child layers
|
2012-06-21 21:35:01 -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 |
|
Jonathan Griggs
|
11a1662c0e
|
variable cleanAttrs is a reference to node.attrs, and setting cleanAttrs[key] = undefined alters the original node.attrs causing unintended consequences for existing stage instance after calling toJSON()
|
2012-06-19 20:13:07 -06: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
|
bf616d0d4d
|
fixed mousemove event bug, and added a very rigorous functional test to test all of the basic shape events for both desktop and mobile
|
2012-06-18 17:56:12 -07:00 |
|
Eric Rowell
|
9ec8c94701
|
refactored event bindings to expose content node events and enable true functional tests without a test framework like Selenium. Added new manualTests.html page for manual tests. One of the manual tests has already been converted to a functional test. Will add in image data url hashmaps soon so that I can compare screenshots before and after a series of actions in the functional tests
|
2012-06-15 11:47:55 -07:00 |
|
Eric Rowell
|
9b76f650f7
|
exposed content event bindings so that we can simulate mouse and touch events for the purpose of internal and external functional tests
|
2012-06-14 23:46:52 -07:00 |
|
Eric Rowell
|
838c719c0e
|
made a better fix for the mobile alternating drag and drop bug
|
2012-06-14 20:29:07 -07:00 |
|
Eric Rowell
|
73ad904de6
|
updated jsdocs
|
2012-06-14 02:19:51 -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
|
9697af530c
|
stage now listens for dimension changes, and updates the DOM dimensions if the widthChange or heightChange event is triggered
|
2012-06-09 11:24:35 -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
|
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
|
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
|
e842cdf8ac
|
stage setSize() method now converts inputs to integers. added a lot of setSize unit tests
|
2012-06-02 21:27:26 -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 |
|
Eric Rowell
|
9f243d4a2e
|
garbage collecting empty arrays in _removeName method to free up space
|
2012-06-02 00:39:17 -07:00 |
|
Eric Rowell
|
1b333bc800
|
new simulate() method to simulate node events. e.g. shape.simulate('click')
|
2012-06-02 00:21:49 -07:00 |
|
Eric Rowell
|
ba796f4cc3
|
new tap event. touchmove no longer incorrectly fires onmousemove event. dbltap now correctly bubbles. cleaned up some other event handling logic.
|
2012-06-01 00:44:38 -07:00 |
|
Eric Rowell
|
a29d1520ae
|
applying event throttling logic to mousemove and touchmove only
|
2012-05-28 12:12:26 -07:00 |
|
Eric Rowell
|
a2defa4bed
|
turns out there was no performance problems with the path (made a dumb mistake with implementation). However, during the analysis, I ended up adding event detection throttling which is pretty handy. It cuts down unecessary mousemove event handling dramatically and greatly improves performance when you have thousands of shapes
|
2012-05-27 23:41:05 -07:00 |
|
Eric Rowell
|
4488f22c32
|
added drag and drop support for the stage. This essentially enables stage panning
|
2012-05-27 00:07:36 -07:00 |
|
Eric Rowell
|
af31e1ee83
|
refactored stage.reset method. Now storing node default attrs as an object which can be used by the stage to reset itself
|
2012-05-26 18:40:43 -07:00 |
|
Eric Rowell
|
44ba6f7e5b
|
bug fix - when setting a custom attr that points to self, the setAttrs method no longer gets stuck in a recursive loop throwing a stack overflow error. Also, objects that were instantiated from a class (non-literal objects) are no longer serializable
|
2012-05-26 18:31:13 -07:00 |
|
Eric Rowell
|
fd6bdb570c
|
refactored get() and add() node methods. much cleaner now.
|
2012-05-26 16:49:58 -07:00 |
|
Eric Rowell
|
0bb158c0fb
|
hooked setAttrs into setPosition and setScale for more flexibility. Added in depth position and scale unit tests. add() and remove() methods are now chainable
|
2012-05-25 20:18:05 -07:00 |
|
Eric Rowell
|
61d325d383
|
fixed up some issues with serialization and deserialization and updated unit tests
|
2012-05-20 16:42:37 -07:00 |
|
Eric Rowell
|
e26575a6c8
|
fixed flickering when a node was added to the stage, updated, and redraw due to throttling
|
2012-05-20 15:30:32 -07:00 |
|
Eric Rowell
|
e60eb8be6e
|
tons of refactoring to make the code base even more elegant and flexibile. In particular, the setAttrs() method is much more powerful now, and serves as a really convenient way for setting a bunch of node properties at once
|
2012-05-19 21:14:04 -07:00 |
|
Eric Rowell
|
7be0e5f577
|
refactored _getXY utility and usage
|
2012-05-13 10:46:49 -07:00 |
|
Eric Rowell
|
1146919d3d
|
modified setDefaultAttrs() so that it doesn't overwrite attrs defaulted in a custom class that extends a Kinetic class
|
2012-05-12 15:15:42 -07:00 |
|
Eric Rowell
|
ff31dcb0ae
|
fixed small bug related to animations - if you called .start() multiple times, multiple animation instances would be created. This wasn't desirable. Also beefed up animation unit tests
|
2012-04-28 18:33:05 -07:00 |
|
Eric Rowell
|
e8dcb8e584
|
fixed glitchy flash on transitions when applying multiple transitions to the same node at different times
|
2012-04-28 17:45:13 -07:00 |
|
Eric Rowell
|
bd17b54aa8
|
added stage.reset() method so that you can reset the stage to its original state. hooked this in with stage.load() so that the stage starts when a clean slate when loading json
|
2012-04-28 13:57:43 -07:00 |
|
Eric Rowell
|
9cc380608e
|
fixed drawing bug related to new throttle feature
|
2012-04-28 13:46:54 -07:00 |
|
Eric Rowell
|
8dce92c2fd
|
introduced new setDefaultAttrs() method which greatly simplifies the logic required inside node constructors. This will also make plugin creation much easier
|
2012-04-28 12:55:18 -07:00 |
|
Eric Rowell
|
9f6381aef3
|
stage.setSize() now correctly sets the content node dimensions. Also refactored object and DOM node sizing
|
2012-04-28 12:23:23 -07:00 |
|