Eric Rowell
|
c1a08d8073
|
created new addSettersGetters method, further enhanced dynamic getters and setters
|
2012-06-23 18:09:10 -07:00 |
|
Eric Rowell
|
6b36c7ed93
|
cleaned up shadow logic and defaults in _applyShadow
|
2012-06-22 19:58:36 -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
|
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
|
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
|
6b70e1b18f
|
now using setAttrs for all Shape and shapes setters
|
2012-06-10 00:02:16 -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
|
9f243d4a2e
|
garbage collecting empty arrays in _removeName method to free up space
|
2012-06-02 00:39:17 -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
|
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
|
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
|
c6040ebf9d
|
a bit of refactoring here and there, added some getters and setters that i missed in Kinetic.Sprite
|
2012-05-13 14:04:29 -07:00 |
|
Eric Rowell
|
7f8a174b51
|
fixed bug with _setSize()
|
2012-05-13 11:32:26 -07:00 |
|
Eric Rowell
|
7be0e5f577
|
refactored _getXY utility and usage
|
2012-05-13 10:46:49 -07:00 |
|
Eric Rowell
|
e4f5e11792
|
finished up pattern fill support
|
2012-05-13 10:27:40 -07:00 |
|
Eric Rowell
|
9e3475f37a
|
setup support for pattern fills
|
2012-05-12 18:18:06 -07:00 |
|
Eric Rowell
|
51258531bf
|
fixed bug with getTextSize() which was throwing a JS error if used before adding text to the stage
|
2012-05-12 15:32:27 -07:00 |
|
Eric Rowell
|
28f7fc246d
|
changed shadowFillStroke() to applyStyles(). Took applyLineJoin() out of shape draw functions and moved it to the Shape._draw() method.
|
2012-05-09 22:31:55 -07:00 |
|
Eric Rowell
|
2993191fe6
|
improved shadow logic such that it first attempts to apply shadows to a shape's fill if it's defined, otherwise it will attempt to apply the shadow to the stroke
|
2012-05-09 19:15:49 -07:00 |
|
Eric Rowell
|
16c251bb97
|
added drawFunc property to layer so that layers can easily draw non-node background graphics
|
2012-05-09 18:53:20 -07:00 |
|
Eric Rowell
|
a27741ce03
|
added shadow support. changed fillStroke method to shadowFillStroke
|
2012-05-08 23:06:13 -07:00 |
|
Eric Rowell
|
f2976e7dd1
|
added support for linear gradients and radial gradients using the fill property
|
2012-05-03 14:20:50 -07:00 |
|
Eric Rowell
|
1dbe93a232
|
added new Line Shape
|
2012-04-28 21:12:01 -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
|
c661cff85a
|
fill, stroke, and strokeWidth values of undefined, null, '', or 0 are now correctly handled
|
2012-04-28 12:30:14 -07:00 |
|
Eric Rowell
|
9fef9e54d9
|
added new stage.getIntersects() method which allows you to obtain all the shapes that intersect a given point. Also enhanced all methods that require an x or y by allowing either two arguments to be passed in or an object to be passed in. Example foo(100, 50) or foo({x:100, y:50});
|
2012-04-27 23:57:01 -07:00 |
|
Eric Rowell
|
2879c0763f
|
changed isPointInShape() to intersects(). Currently the method accepts a point object, but I may extend this to also accept another shape object
|
2012-04-27 20:54:49 -07:00 |
|
Eric Rowell
|
70df77f9fa
|
enhanced setAttrs() logic to allow custom node properties and functions
|
2012-04-27 19:42:04 -07:00 |
|
Eric Rowell
|
78e4022126
|
made isPointInShape() a public method for the purpose of collision detection
|
2012-04-15 09:18:30 -07:00 |
|
Eric Rowell
|
c698005adc
|
refactored fillStroke() method
|
2012-04-14 21:53:00 -07:00 |
|
Eric Rowell
|
a908c59769
|
fixed center offset + drag and drop bug by fixing a root problem with the getAbsoluteTransform() method. This method no longer takes into account the center offset. Center offset transforms are now applied separately
|
2012-04-14 18:27:06 -07:00 |
|
Eric Rowell
|
df8df63400
|
refactored setAbsolutePosition() method and Shape _draw method
|
2012-04-14 16:27:00 -07:00 |
|
Eric Rowell
|
3a520376e5
|
fixed stage.hide() bug, created new isVisible() method, and moved visible check to container
|
2012-04-14 12:04:45 -07:00 |
|
Eric Rowell
|
c17029d38e
|
fixed up fillStroke() logic in the Shape class
|
2012-04-14 10:47:52 -07:00 |
|
Eric Rowell
|
63c8dde6d5
|
no longer auto clearing shape data. added new shape.clearData() method instead
|
2012-04-08 20:25:31 -07:00 |
|
Eric Rowell
|
3243e5f8ff
|
added support for image de-serialization and cleaned up some of the Shape attr default logic
|
2012-04-07 19:08:16 -07:00 |
|
Eric Rowell
|
0a94c75e22
|
decided that the developer should be responsible for setting custom drawing functions, images, and event handlers via selectors rather than a hash map passed into the load() method
|
2012-04-07 18:40:44 -07:00 |
|
Eric Rowell
|
1a40e50622
|
finished custom shape serialization with new attrs structure
|
2012-04-07 15:03:19 -07:00 |
|
Eric Rowell
|
58eb778e9a
|
re-integrated simple serialization and deserialization with new attrs structure
|
2012-04-07 14:39:31 -07:00 |
|
Eric Rowell
|
6d618b97b5
|
first phase of new attrs architecture to better represent Node states
|
2012-04-05 23:48:58 -07:00 |
|