Commit Graph

37 Commits

Author SHA1 Message Date
Eric Rowell
032eb9e4db updated docs 2013-05-08 09:44:03 -07:00
Eric Rowell
e66e147274 Animations can now be tied to multiple layers. Removed Transition and Tween class from the build. Unhooked transition unit and manual tests for now. Added new animation setLayers() and getLayers() methods 2013-05-05 20:57:31 -07:00
Eric Rowell
43256d0916 added skew transform courtesy of danielkur #188 2013-05-01 10:56:01 -07:00
Eric Rowell
1dc323305b all attrs that have x and y components now have individual component setters. i.e. you can use setScale() and pass in an object, or setScaleX() and setScaleY() individually 2013-04-27 20:50:42 -07:00
Eric Rowell
8a78b62cad added matrix transform caching, and optimized the clear() method. This has improved rendering performance by about 17% 2013-04-21 22:42:25 -07:00
Eric Rowell
90a2820e5b toDataURL and toImage now work correctly on devices with a pixel ratio != 1 2013-04-14 09:41:59 -07:00
Eric Rowell
793e43b0db removed apply() Collection method. Added new mapMethods() Collection method, which is used internally to map node methods to collection methods 2013-03-25 22:43:35 -07:00
Eric Rowell
8a393cb6be created new testJSON method which makes testing JSON comparisons really easy to debug. Also fixed small logic problem with new Image width and height getters. Reinabled all serialization/deserialization unit tests 2013-03-24 16:30:43 -07:00
Eric Rowell
46c7b89e06 created new test method, testDataUrl, which makes it super easy to identify data url comparison failures that resulted from Chrome upgrades. Begain integrating. fixed all synchronous unit test data url comparison failures 2013-03-24 14:12:00 -07:00
Eric Rowell
b5aaab3584 began updating the data url strings to match recent Chrome changes 2013-03-24 13:32:52 -07:00
Eric Rowell
542f675522 added getNodeType() and getShapeType() methods 2013-03-24 00:14:42 -07:00
Eric Rowell
9db24812bd removed simulate method. refactoring also fixed bug in which if you fire a custom event that has not been registered, the script no longer fails 2013-03-21 19:43:17 -07:00
Eric Rowell
69f9374c8e first pass at removing setDefaultAttrs logic to speed up node instantation performance 2013-03-15 08:33:05 -07:00
Eric Rowell
5c590bb88f moved TextPath, RegularPolygon, and Star shapes to the plugins directory. updated all tests 2013-03-13 22:24:55 -07:00
Eric Rowell
6cd7ab135f moved some manual tests to unit tests and greatly refactored the manual test suite 2013-01-27 16:27:17 -08:00
Eric Rowell
8ed84f474a fixed several memory issues with transition logic. Heavily refactored Transition module. New Animation isRunning method. destroy() method now correctly stops currently running transitions. added several transition and destroy related unit tests 2013-01-13 19:59:35 -08:00
Eric Rowell
b6ba1a503c ids and names hashes used for node selection via get() has moved to Global in order to greatly simplify the selection logic. This means that node ids and names are shared across all stages. If two stages each have a node with the same id, only the last id set will be accessibile (similar to DOM) 2013-01-13 11:10:49 -08:00
Eric Rowell
5cda46be69 drag and drop layer is now created on stage instantiation, and is removed and added as needed 2013-01-12 23:39:56 -08:00
Eric Rowell
ed579e4843 added new destroy Node method which removes and destroys a node. remove() now simply removes a node from the stage. You can re add the node at a later time with add(). getDOM() changed to getContent(). stage.remove() now correctly removes content node 2013-01-12 22:01:12 -08:00
Eric Rowell
4136ddb398 added new dragOnTop property which allows you to define whether or not a node is automatically moved to a temp top layer when dragging 2013-01-09 23:45:30 -08:00
Eric Rowell
7cb4c4269f huge changes to Text shape. Skinnied it up by removing rectangle rendering component. textFill is now fill, textStroke is now stroke, textShadow is now shadow, and textStrokeWidth is now strokeWidth 2012-12-31 12:45:32 -08:00
Eric Rowell
206f7bf8d0 fixed up group drag and drop 2012-12-31 01:47:49 -08:00
Eric Rowell
83bf1740a6 flattened shadow object into shadowColor, shadowBlur, shadowOpacity, and shadowOffset attrs 2012-12-31 00:45:38 -08:00
Eric Rowell
16f81f6204 fixed up stage toImage() translation problem 2012-12-11 00:21:43 -08:00
Eric Rowell
cb8d36c393 fixed several bugs with toImage(). toImage() can now also accept x and y params. added extensive caching unit test. removed drawBuffer logic as it is no longer needed 2012-12-11 00:08:59 -08:00
Eric Rowell
291583148b moved all rendering logic into the Canvas renderer modules. Shape draw funcs are now passed a renderer object, not a canvas context. The context is accessible via canvas.getContext() 2012-12-09 09:52:33 -08:00
Eric Rowell
94670aeeda changed createImageBuffer to createImageHitRegion for consistency 2012-11-28 23:18:17 -08:00
Eric Rowell
48e014fe01 bug fix #29 bug fix #143 when node.remove() is called, parent property is unset. Also migrated remove tests from containerTests to nodeTests. 2012-11-24 23:19:16 -08:00
Eric Rowell
94c3c913cb cleaned up unit test data urls. All unit tests now pass with no warnings 2012-11-24 22:48:23 -08:00
Eric Rowell
0e6eb3ffe4 fixed up some text shadow issues 2012-11-24 09:15:02 -08:00
Eric Rowell
7f68dafb5c fixed up Image hit draw func 2012-11-23 23:55:20 -08:00
Eric Rowell
144e95ad42 preparation work for new Renderer inheritance pattern 2012-11-20 23:03:24 -08:00
Eric Rowell
27d5031665 further decoupled scene, hit, and buffer graph drawing. To define a custom hit draw function, you now need to set the drawHitFunc attr. 2012-11-18 19:50:50 -08:00
Eric Rowell
e04b979063 improved drag and drop performance by skipping buffer redraws on drag move 2012-11-17 22:29:07 -08:00
Eric Rowell
feb1c83aac added unit test for group to image 2012-11-15 22:22:38 -08:00
Eric Rowell
2115920ab8 fixed up Canvas type bug. The Canvas constructor can now also take an optional isBuffer param. If not defined, default value is scene 2012-11-13 22:16:36 -08:00
Eric Rowell
a5e23c426d restructured unit tests and created a unit test build target which concatenates source test files 2012-11-13 21:37:28 -08:00