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 |
|
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
|
81df49e75d
|
pulled out _setPointAttr from Node and moved it to the GlobalObject as _setXY, which enables x,y property setting for any object, not just attrs. also added _setSize which has similar logic for height width properties
|
2012-05-12 18:37:07 -07:00 |
|
Eric Rowell
|
9e3475f37a
|
setup support for pattern fills
|
2012-05-12 18:18:06 -07:00 |
|
Eric Rowell
|
92919058b2
|
after a bit more thought, I've decided to change the maxWidth property to width, to make it even more similar to CSS sizing rules. If you set the width of the text box to a certain value, and the text string width is longer than that width, the text will be clipped
|
2012-05-12 17:49:01 -07:00 |
|
Eric Rowell
|
05df078295
|
reworked text max width logic to use clipping rather than native max width functionality which scales the text (what was w3c thinking? no idea)
|
2012-05-12 17:11:57 -07:00 |
|
Eric Rowell
|
502115fad7
|
Kinetic.Line detection type is now defaulted to pixel since this is the expected detection strategy
|
2012-05-12 15:45:04 -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
|
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
|
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
|
622278a510
|
point properties can now be set with an array of points or an array of numbers for convenience
|
2012-05-08 22:11:37 -07:00 |
|
Eric Rowell
|
40ebb21033
|
implemented dashed and dotted line styling for Kinetic.Line based on method written by Phrogz
|
2012-05-08 19:11:19 -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
|
7d92a2099e
|
fixed animation race condition bug that sometimes produced multiple requestAnimFrame calls, and also changed throttle property to be in fps (it used to be in ms). This will make it more consistent with other properties related to frame rates
|
2012-05-03 12:05:54 -07:00 |
|
Eric Rowell
|
3585e000b6
|
added new Kinetic.Sprite shape that enables you to easily add animated sprites to the stage
|
2012-05-02 00:35:32 -07:00 |
|
Eric Rowell
|
7bcd34ec47
|
added new beforeDraw() and afterDraw() event handlers for Layer
|
2012-04-28 23:03:58 -07:00 |
|
Eric Rowell
|
1dbe93a232
|
added new Line Shape
|
2012-04-28 21:12:01 -07:00 |
|
Eric Rowell
|
ffd9924511
|
tweaked throttling algo and added unit tests
|
2012-04-28 19:52:45 -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
|
6bed850042
|
added defensive coding when removing node from container in case it has not yet been added to the container
|
2012-04-28 13:06:22 -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
|
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 |
|
Eric Rowell
|
3ac0e5592e
|
added throttling unit tests
|
2012-04-28 11:41:58 -07:00 |
|
Eric Rowell
|
3200a9063a
|
identified a couple public methods in the global object which are actually private
|
2012-04-28 11:23:47 -07:00 |
|
Eric Rowell
|
222aea4e2e
|
removed .onContent() and replaced with .getDOM()
|
2012-04-28 00:07:44 -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
|
192681374d
|
added new selector capability to .get() method. You can now select all nodes by type inside of a container, such as by Shape, Group, or Layer
|
2012-04-27 22:54:39 -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
|
c02e7a0cee
|
adding prod build
|
2012-04-27 19:42:49 -07:00 |
|
Eric Rowell
|
508bfb7a9b
|
rewrote cropping logic from last pull request, fixed serialization issue in unit test, added new unit tests, and added getX() and getY() methods
|
2012-04-27 19:08:45 -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
|
47b8a8e0d6
|
new setDetectionType() and getDetectionType() methods to enable path and pixel detection swapping
|
2012-04-14 21:46:38 -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
|
5e46018012
|
discovered that the slow drag and drop behavior with Google Chrome is only effecting my Windows 7 test machine, not Mac. I've removed the drag and drop optimizing code for now
|
2012-04-14 12:15:01 -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
|
fb9f324cfb
|
exposed absolute positioning logic inside the _prepareDrag method so that developers have access to it via the setAbsolutePosition() method
|
2012-04-14 10:40:54 -07:00 |
|
Eric Rowell
|
2108736df7
|
added chrome specific logic to improve the drag and drop performance until the chrome bug is fixed
|
2012-04-14 10:13:07 -07:00 |
|
Eric Rowell
|
1c8669eb7a
|
undoing optimized drag and drop for now because I added it in due to Google Chrome's latest release which made drag and drop very slow (while other browsers are still fast), and the changes that I made to help work around it were slightly effecting the experience in other browsers. I'll file a ticket with Google Chrome instead
|
2012-04-14 10:04:17 -07:00 |
|