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
|
70df77f9fa
|
enhanced setAttrs() logic to allow custom node properties and functions
|
2012-04-27 19:42:04 -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 |
|
Eric Rowell
|
5c7b969974
|
new setAttrs() method which enables you to set attributes in bulk
|
2012-04-12 23:02:55 -07:00 |
|
Eric Rowell
|
b7f14ca821
|
dynamically set drag time interval to determine the optimal dragging performance. Makes dragging and dropping even smoother and responsive
|
2012-04-12 21:33:40 -07:00 |
|
Eric Rowell
|
328f457512
|
updated docs
|
2012-04-08 21:37:10 -07:00 |
|
Eric Rowell
|
b8516b1b0c
|
moved .get() method to Container so that all containers can use it, not just stage. This allows you to select nodes within other nodes
|
2012-04-08 21:26:13 -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
|
30e8973956
|
added setX and setY methods for convenience
|
2012-04-08 18:22:04 -07:00 |
|
Eric Rowell
|
4f36b27199
|
refined global object temp nodes has removal when removing nodes from container. Also added another unit test
|
2012-04-08 17:50:46 -07:00 |
|
Eric Rowell
|
2035d188c8
|
added hash cleanup logic when nodes are moved from a container. Also added unit tests
|
2012-04-08 17:37:49 -07:00 |
|
Eric Rowell
|
3c17e59eb0
|
moved ids and names hashes to the stage level
|
2012-04-08 11:01:31 -07:00 |
|
Eric Rowell
|
8c70333472
|
added simple selector support by id (#) or by name (.). Selecting by name is similar to selecting by class in other DOM libraries
|
2012-04-07 20:32:24 -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
|
d3b025254a
|
new getAttrs() method
|
2012-04-07 18:50:53 -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
|
ff896a4946
|
unit tests and functional tests now passing. Next up, re-integrate serialization with new attrs structure
|
2012-04-07 14:04:15 -07:00 |
|
Eric Rowell
|
6d618b97b5
|
first phase of new attrs architecture to better represent Node states
|
2012-04-05 23:48:58 -07:00 |
|
Eric Rowell
|
15bd27562e
|
continued work on serialization/de-serialization
|
2012-04-05 20:38:12 -07:00 |
|
Eric Rowell
|
350f7b7496
|
implemented stage.load() which allows you to deserialize a json string
|
2012-04-05 00:06:00 -07:00 |
|
Eric Rowell
|
bf86dacb59
|
setup simple serialization
|
2012-04-04 22:57:36 -07:00 |
|
Eric Rowell
|
f5b6b3c06f
|
fixed _modifyPathContext optimization problem
|
2012-04-04 20:46:58 -07:00 |
|
Eric Rowell
|
0ac84408e9
|
fixed bug with mouseout / mouseover events with nodes on the edge of the stage
|
2012-04-04 20:19:53 -07:00 |
|
Eric Rowell
|
dc45f5e2d6
|
when using pixel detection, clear shape data whenever shape is drawn
|
2012-04-04 19:53:11 -07:00 |
|
Eric Rowell
|
2dff730081
|
added functional test that tests all of the transition easing functions
|
2012-04-03 23:46:59 -07:00 |
|
Eric Rowell
|
602220bdce
|
finished new animation, transitions, and tweens functionality
|
2012-04-03 23:00:35 -07:00 |
|
Eric Rowell
|
f953e4694f
|
tons of refactoring. Now have separate Transition and Tween classes
|
2012-04-03 22:23:13 -07:00 |
|
Eric Rowell
|
9e3baf69c1
|
added first phase of transition event subscription
|
2012-04-03 14:08:06 -07:00 |
|
Eric Rowell
|
a6b526ee76
|
added new animation stop logic
|
2012-04-03 13:44:48 -07:00 |
|
Eric Rowell
|
fc5825e61e
|
got the unit tests and functional tests passing. Have a few things left to do, and a bit more testing before I merge the transitions rewrite back into the trunk
|
2012-04-02 23:38:14 -07:00 |
|
Eric Rowell
|
d5834c8351
|
more new transition architecture integration
|
2012-04-02 22:54:05 -07:00 |
|
Eric Rowell
|
77aea95e7a
|
round 1 of animation + transition rewrite, while combing Xaric's Tween port
|
2012-04-02 21:03:59 -07:00 |
|
Eric Rowell
|
6ce9d5489c
|
reworked pixel detection. I now require the dev to use shape.save() to save the pixel data for performance reasons
|
2012-04-01 19:38:30 -07:00 |
|
Eric Rowell
|
72c0555d0b
|
pixel detection performance was horrible for large amounts of shapes. Added some optimizations which require knowledge of a shape's perceivable position and size based on transforms. This will be added in later. For the time being, only Kinetic.Images will have access to the detectionType property. Image cannot be transformed or offset with the center offset. Support for these will come soon as well.
|
2012-04-01 17:18:01 -07:00 |
|
Eric Rowell
|
313c6a1541
|
fixed drag and drop bug related to drag constraints and positioned containers. Just needed to move the drag constraint logic after the matrix unravel
|
2012-04-01 15:59:12 -07:00 |
|