Eric Rowell
|
40a92a9988
|
added unit tests for Jonathan\'s toJSON() fix
|
2012-06-21 21:46:52 -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
|
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
|
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
|
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 |
|
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
|
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
|
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
|
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 |
|
Eric Rowell
|
2331222459
|
linear and radial gradients can now have any number of color stops
|
2012-05-20 11:12:07 -07:00 |
|
Eric Rowell
|
4ba2818f97
|
improved shadow code quality and added support for text fill and stroke shadows
|
2012-05-20 10:47:28 -07:00 |
|
Eric Rowell
|
7fcf5f156a
|
added support for shadow alpha property
|
2012-05-19 22:11:33 -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
|
2ac2c2856c
|
transitions can now operate on ANY numeric value for any Node object, regardless of the property's depth in a config object tree
|
2012-05-13 18:59:10 -07:00 |
|
Eric Rowell
|
9944b897c4
|
added support for heigt and width properties inside an object config property to be transition-able
|
2012-05-13 17:04:15 -07:00 |
|
Eric Rowell
|
ec415c55de
|
added _setPoints so that points setter methods could leverage the same logic that was in the setAttrs() method
|
2012-05-13 11:58:40 -07:00 |
|
Eric Rowell
|
7f8a174b51
|
fixed bug with _setSize()
|
2012-05-13 11:32:26 -07:00 |
|