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
|
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 |
|
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
|
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
|
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
|
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
|
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
|
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 |
|