ericdrowell
d522b9d9d0
now that the attrs engine has been rewritten, we can cleanly hide and show the layer canvas whenever the layer is hidden or shown via instantiation or with setters. Also improved layer hide and show unit test
2012-09-25 12:22:22 -07:00
ericdrowell
74bef1e108
unrecognized selector should return an empty array. also formatted unit tests
2012-09-25 12:12:27 -07:00
ericdrowell
9bfe5f5e52
refactored get() method
2012-09-25 12:06:02 -07:00
David Johansson
869e420099
Corrected Kinetic.Path.getPointOnLine() to work in negative x direction. Including Unit test.
2012-09-25 08:56:15 +02: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
David Johansson
16c7cd2708
Re-added Kinetic.Collection to _getNodes and a test confirming its necessity.
2012-09-24 22:31:06 +02:00
ericdrowell
a349fa488c
fix #96 setting text to integer data types no longer fails
2012-09-23 18:41:05 -07:00
ericdrowell
24e3aa2c03
added isListening and isDraggable aliases for consistency
2012-09-23 16:06:44 -07:00
David Johansson
45d61a0eb6
Corrected behaviour of the collections apply method.
...
Changed collections each-method to use same syntax as jQuery - function(index, element) and also being able to use 'this' to get the element.
Added test for apply('on',...) since it needs more than one argument.
2012-09-24 00:05:34 +02:00
ericdrowell
9f5d0fe351
created Collection class to handle iterating over arrays returned from get()
2012-09-23 10:53:23 -07:00
ericdrowell
8d6103d1e0
get() now returns a Node.Array array which has node methods. This means that you can do stuff like layer.get('.shape').setX(300)
2012-09-22 21:27:44 -07:00
Eric Rowell
d0a1b2870e
when calling layer.hide() or show(), the physical canvas element is hidden and shown rather than clearing and redrawing the layer. This greatly improves hide and show performance for layers
2012-09-18 09:25:16 -07:00
Eric Rowell
0f2cee5499
merged davonium's pull request which enables deep cloning
2012-09-17 23:20:23 -07:00
Eric Rowell
01c2b28a6c
it turns out that there was only a problem with moveDown. refactored logic proposed by Adam
2012-09-17 22:49:24 -07:00
David Johansson
580e52689c
Deep cloning. Cloning also clones children. Also added unit test to confirm that it's working as expected.
2012-09-02 23:44:00 +02:00
Eric Rowell
8883e80bfe
cleaned up _getContentPosition() method and fixed event detections for stages below the fold on mobile devices
2012-08-26 22:42:54 -07:00
Eric Rowell
1de5bce6e5
multi line text now correctly supports shadows
2012-08-26 18:49:05 -07:00
Eric Rowell
c01c08d557
now removing color key from shapes hash when a shape is removed from the stage
2012-08-26 18:25:51 -07:00
Eric Rowell
79a1029adb
fixed getIntersections bug
2012-08-26 11:00:18 -07:00
Eric Rowell
6eda6d2607
decided to split Circle and Ellipse shapes because it was causing too many issues related to the mixed data type of radius, which could be a number or object with x and y properties
2012-08-25 23:56:39 -07:00
Eric Rowell
ddfcab2d55
layer reordering now correctly reorders scene canvases
2012-08-25 22:26:25 -07:00
Eric Rowell
39957fba73
just run rectangle instantiation test for now
2012-08-22 23:15:46 -07:00
Eric Rowell
7b4ec5e6c8
changed bufferImage property to imageBuffer
2012-08-21 19:42:29 -07:00
Eric Rowell
9093d9a512
refactored draw, _draw, and _drawChildren methods in such a way that isVisible and getListening logic resides in one place, therefore improving code quality
2012-08-19 20:44:45 -07:00
Eric Rowell
e99312ece2
refactored filtering logic
2012-08-19 13:09:27 -07:00
Eric Rowell
e19dae3402
rewrote intersects method, which now leverages the new getIntersection method. fixed up unit tests. also fixed bug with getIntersection method
2012-08-18 22:42:37 -07:00
Eric Rowell
f944409a1e
new hit detection algo works with images that contain transparent pixels. Devs will need to use the createImageBuffer() method to create a higher precision buffer image
2012-08-18 22:02:16 -07:00
Eric Rowell
f53c43d4f7
added drawScene() method which only redraws the scene and not the buffer
2012-08-16 23:22:07 -07:00
Eric Rowell
e6e488025e
hit detection color mapping now takes into account anti-aliasing color variations, which was causing issues when moving the mouse from one shape into another shape which were inside the same group. created getIntersections() method which returns an object with shape and pixel data
2012-08-16 23:03:28 -07:00
Eric Rowell
9cdbadc4fd
refactored ancestor comparison logic to ensure that container handlers aren't incorrectly executed for mouseover mouseout. Fixed up functional tests
2012-08-16 22:03:39 -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
bae57488cf
added support for image hit detection with new color mapping algo
2012-08-14 23:52:53 -07:00
Eric Rowell
02c6c7276f
continued prep work for v4.0.0. removed detectionType property because new event engine uses one strategy. added new drawBuffer method so that you can redraw the buffer without redrawing the visible canvas. changed alpha to opacity.
2012-08-13 23:06:29 -07:00
Eric Rowell
468f8ef2d3
checking in first phase of new hit detection algo, which enables high performance event detections even if there are hundreds of thousands of shapes. This is a giant improvement over the previous algo, and is a fairly big architectural change. Since the Animation architecture and API is also changing, I feel that these changes are big enough to warrant a new major version, v4.0.0
2012-08-11 16:22:01 -07:00
Eric Rowell
0f1a424840
prototyping back buffer hit detection algo
2012-08-10 22:33:22 -07:00
Eric Rowell
8c147ee2b5
added new performance test in preparation for new hit detection algo investigation
2012-08-10 20:48:42 -07:00
Jason Follas
1d6acca8f3
Fixed flaw in Stage.toDataURL where JPEG layers were hiding lower layers due to the use of black instead of transparent.
2012-08-09 22:39:34 -04:00
Eric Rowell
e5d195f9b4
temporarily disabled serialization unit tests
2012-08-09 11:13:20 -07:00
Eric Rowell
66ba99f9bc
hooked drag and drop into animation engine
2012-08-09 00:01:21 -07:00
Eric Rowell
b6db65301c
rewrote Animation API to improve flexibility. Animations are no longer tied to the stage. You can now instantiate as many individual animations as you like, and manage them however you like
2012-08-04 00:23:56 -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
d5eee80c0e
changed tempNodes array into a hash to improve performance
2012-07-31 21:35:04 -07:00
Eric Rowell
ed8c5ab6b8
changing the font size now correctly updates the text data
2012-07-31 21:13:25 -07:00
Eric Rowell
75b20573cd
removed plugins directory because Kinetic will be using a configurator in the near future
2012-07-31 20:36:36 -07:00
Eric Rowell
87182d704c
fixed bug with stage.remove(layer). layer canvas context is now correctly removed from the dom
2012-07-28 22:16:29 -07:00
Eric Rowell
e69c7a9ac1
moved Path back to the plugins, and added Geometry utility methods to the Path namespace so that they can be called as a utility methods without instantiating a Path shape
2012-07-28 17:37:24 -07:00
Eric Rowell
4ea094f459
moved path parsing logic to Geometry class
2012-07-28 16:29:37 -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
5b323bea40
merged with jfollas's TextPath updates, fixed remaining unit, manual, and performance tests, and fixed stroking logic
2012-07-28 09:55:21 -07:00
Jason Follas
8d535556d7
Changed namespace for "plugin" shapes to Kinetic.Plugins. *This is a breaking change!*
...
Fixed unit tests. Extracted Path parsing logic into PathHelper so that it's not tied to a particular shape.
2012-07-27 22:51:18 -04:00
Eric Rowell
1585cc3620
fixed tests
2012-07-27 18:41:15 -07:00
Jason Follas
5d77471f7e
TextPath extends Shape instead of Path. Extracted common path functions into PathHelper.js. Updated unit tests.
2012-07-27 12:25:36 -04:00
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
ce3b98ee9c
added some performance tweaks and polished up code here and there
2012-07-26 22:58:38 -07:00
Eric Rowell
c26a1ae5d5
merged jfollas's new TextPath shape, and moved non-primative shapes to the plugins folder as shape plugins
2012-07-24 23:18:46 -07:00
Eric Rowell
da7429fb7b
fixed bug with setSize method in Image object, and tweaked shape caching performance test to demonstrate a 4x drawing performance boost
2012-07-22 17:05:45 -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
acc6b6e14e
updated unit tests
2012-07-15 00:06:35 -07:00
Eric Rowell
6dc7c685f0
new toImage() method to support node caching
2012-07-14 23:41:16 -07:00
Eric Rowell
864938ed33
added data url support for Kinetic.Image, and added unit tests
2012-07-14 18:32:00 -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
2548e3c2ef
added performance test suite with two sample performance tests
2012-07-14 09:57:21 -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
Jason Follas
63a1ed1ad5
Enabled all tests
2012-07-12 18:38:17 -04:00
Jason Follas
e6031e1bf8
Fix for Scientific Notation bug in Path
2012-07-12 18:35:51 -04:00
Vijai Ramcharan
474d6aaab5
Added unit test for getAbsolutePosition and center offset
...
This unit test demonstrates the issue where getAbsolutePosition() is
not working correctly if a center offset is used.
2012-07-10 20:22:38 +02:00
Jason Follas
0b1ddbd530
Added TextPath shape (extension of Path shape, but renders text along path instead of stroking/filling the path)
2012-07-09 09:08:30 -04: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
d0f37f7c88
rewrote text array algo in Text. added newline support. now handling edge case in which the text box width is smaller than a character width. if a line is not able to wrap via space or dash, the word itself is wrapped.
2012-07-08 13:59:43 -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
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
1f3d1cc905
added event bubbling functional test
2012-07-06 10:05:37 -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
e2e16d49c1
updated serialization/deserialization unit tests
2012-07-01 21:12:52 -07:00
Eric Rowell
caae5a5155
bug fix: ellipse radius change no longer fires duplicate attr change event
2012-07-01 15:30:51 -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
aa4b0955c0
added horizontal align logic back into the Text draw func
2012-06-30 20:05:27 -07:00
Eric Rowell
e279ea30b9
fixed up new Text wrap edge cases. Will add a bunch of unit tests soon
2012-06-30 19:43:52 -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
3b6dffe6e1
refactored Image event bindings and fixed radial gradient bug
2012-06-24 13:39:36 -07:00
Eric Rowell
a8c09516ba
trying out Image extending Rect so that Image has Rect properties and methods such as corner radius
2012-06-24 12:44:08 -07:00
Eric Rowell
80eb50a708
added new clearBeforeDraw Layer property which enables you to skip canvas clearing before each draw. Added new warn() method to test suite, and added error and warning colorings to the test counter
2012-06-23 16:11:58 -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
40a92a9988
added unit tests for Jonathan\'s toJSON() fix
2012-06-21 21:46:52 -07:00
Eric Rowell
ac3f512ab8
updated global object utilities
2012-06-21 12:47:15 -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
5679b1fb76
fixed bug with Path dataChange event subscription
2012-06-19 16:26:28 -07:00
Eric Rowell
667ee16aab
added more functional tests
2012-06-18 23:52:25 -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
dee78e86e2
added Circle backwards compatibility with Ellipse
2012-06-18 19:09:07 -07:00
Eric Rowell
2c0aabcb9c
removed timeouts from functional tests and uncommented image comparison tests
2012-06-18 18:02:44 -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
dc51d95eb1
image fills can now be scaled to simulate image cropping. Now that image fills can be offset and scaled, the Image Shape is now obsolute because any shape can now use regular images or cropped images.
2012-06-17 17:18:49 -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
a49fc610d6
moved several manual tests to the unit test page. Added another functional test. Added warning logs to the functional test framework
2012-06-16 01:21:35 -07:00
Eric Rowell
c1b9d44885
setup data url hash for functional tests so that we can compare the visual result before and after a series of simulated events
2012-06-16 00:02:55 -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
838c719c0e
made a better fix for the mobile alternating drag and drop bug
2012-06-14 20:29:07 -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
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
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
Jason Follas
f9342cb019
Tab to spaces; fixed tests (i.e., disabled "testonly")
2012-06-06 00:33:29 -04:00
Jason Follas
b61c688a83
Implemented "a", "A". Added unit test for SVG "tiger" path (the canonical SVG example)
2012-06-05 23:56:46 -04: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
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
385deb793d
remove() method now correctly removes node descendants
2012-06-01 23:56:01 -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
84e400e0f0
changed commands property to data per Jason's request. This provides a similar nomenclature to the SVG path data property
2012-05-29 21:34:04 -07:00
Jason Follas
59ee010050
Implemented 's' and 'S'
2012-05-29 16:14:58 -04:00
Jason Follas
90364408d7
implemented 'T' and 't'.
2012-05-29 15:22:06 -04:00
Jason Follas
90c07bdaa5
Implemented 'c', 'C', 'q', 'Q' paths
2012-05-29 14:41:23 -04:00
Jason Follas
d0acfb14e1
Added multi-point string handling to the path parser. Added support for 'm' and 'Z'.
2012-05-29 13:49:11 -04:00
Eric Rowell
89370bfee7
fixed bug with setScale method and _isNumber method. Added unit tests
2012-05-28 23:46:40 -07:00
Eric Rowell
9fa7949d27
fixed closePath bug with Path shape, added getters and setters, and added another path unit test
2012-05-28 16:11:43 -07:00
Eric Rowell
3c72f8240b
fixed up unit tests
2012-05-28 12:02:02 -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
cc35abd0f6
first round of new Path shape. Despite multiple optimizations, the path performance isn't as good as a previous experiment done with v3.8.1. Will keep this as a separate branch until the performance issues are resolved
2012-05-27 21:46:03 -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
e075a725a1
rewrote shadow logic. Shadows can now be applied to images and sprites, even if they have transparent pixels
2012-05-26 20:34:36 -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
07edfbc765
hooked setAttrs into setCrop() method and made the _getSize() method more flexibile by accepting more variations of input. added unit tests
2012-05-26 16:37:37 -07:00
Eric Rowell
8c675327b9
hooked in the setAttrs method to the shadow setter and the pattern fill setter. added more unit tests
2012-05-26 10:57:56 -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