Commit Graph

562 Commits

Author SHA1 Message Date
Eric Rowell
e44f369bf1 improved Spline docs 2012-12-31 20:34:50 -08:00
Eric Rowell
176e805e58 decided to make an actual Spline shape. Will create a Blob shape soon, which will be an enclosed spline 2012-12-31 20:30:00 -08:00
Eric Rowell
f3a1e9a247 new spline attr for the Line shape which enables splines 2012-12-31 19:24:35 -08:00
Eric Rowell
b97a7ab1ba cleaned up Path docs 2012-12-31 15:12:52 -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
356661ecff updated unit tests with new shadow API 2012-12-31 10:46:23 -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
9cd0df651c leveraged new eachAncestorReverse() method where possible 2012-12-30 23:48:46 -08:00
Eric Rowell
7ba40a6a68 drag and drop operatons now dynamically generate a temporary top layer for high performance drag and drop. When completed, the top layer is removed. Also cleaned up a bit of drag and drop logic 2012-12-30 23:14:23 -08:00
Eric Rowell
36584a3ce2 cleaned up docs, and beefed up individual shape docs. moved corner radius attr to Rect shape 2012-12-22 23:08:03 -08:00
Eric Rowell
375c64a332 added counter pixel ratio method so that drawings aren't double scaled when using toDataUrl and toImage 2012-12-21 22:51:57 -08:00
Eric Rowell
03834db910 updated readme and Animation docs 2012-12-21 07:53:26 -08:00
Eric Rowell
aa05f90ea4 updated stage docs 2012-12-16 20:52:07 -08:00
Eric Rowell
ff93a18b0e updated Shape and Wedge docs 2012-12-16 12:56:30 -08:00
Eric Rowell
7876949ef1 updated Canvas docs 2012-12-16 12:41:41 -08:00
Eric Rowell
f18bf604de added pixel ratio optimization to sharpen renderings for devices with a pixel ratio > 1 2012-12-13 21:53:39 -08:00
Eric Rowell
5e16b3d7d0 fix bug 169 when removing a node, be sure to also remove the drag and drop reference 2012-12-13 00:01:24 -08:00
Eric Rowell
3fb9576672 each animation now has its own frame object. This fixes issues that were seen when using multiple animations simultaneously 2012-12-11 22:34:58 -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
9b7f0ea8ff updated .gitignore and added more performance tests around image cropping and scaling in order to understand the value of a SpriteSheet plugin 2012-12-09 20:13:17 -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
9be03d6eab moved dashArray attr to Shape level and hooked into native setLineDash method now that it's in the spec. This enables dashed lines for any type of stroke, not just straight lines 2012-12-08 10:21:52 -08:00
Eric Rowell
c316edb418 added transform property normalization in setFill() method and also added fill transform unit tests 2012-12-08 09:26:16 -08:00
Eric Rowell
01c5f4f7ca fill patterns can now be translated, rotated, scaled, and offset like nodes 2012-12-07 23:25:33 -08:00
Eric Rowell
9bbd5e41ec decided to totally revert the pull request. the frame width and height should be used to define the width and height of the sprite frame, not the shape level width and height. This is because the frame height and width can change for different frames 2012-12-06 20:23:18 -08:00
Eric Rowell
bec7f5450b removed unecessary rect draw in sprite scene graph draw func, and changed width and height logic in sprite hit graph draw func 2012-12-06 20:16:52 -08:00
Eric Rowell
df63558686 changed around the logic from the previous pull, and also added spriteTests to the unit test build 2012-12-06 20:11:14 -08:00
Eric Rowell
9392756dcf Merge pull request #184 from soulBit/master
Sprites not respecting width and height
2012-12-06 20:00:10 -08:00
Taylan
33c7d1f2f6 Update src/shapes/Sprite.js
Sprites now scale to their width and height correctly in the same way as images
2012-12-05 18:43:58 +00:00
Eric Rowell
71eacd85d3 adjusted testing subtitle size 2012-12-03 20:12:38 -08:00
Eric Rowell
fb25a1c503 improved Testing README 2012-12-03 20:11:31 -08:00
Eric Rowell
5705d909e5 changed test to warn for node and shape selector unit test, and added more info in the README Testing section 2012-12-03 19:54:58 -08:00
Eric Rowell
266026c76f setup test for require.js support 2012-12-01 18:44:13 -08:00
Eric Rowell
ab19b442a0 wrapped all modules with anonymous func. moved Canvas to root dir because it's now coupled to KineticJS logic. removed whitelisting arrays from Global. Did some prep work for AMD and Node support 2012-12-01 12:04:10 -08:00
Eric Rowell
8e5297033b optimized line shape drawing logic, and also added image cropping performance tests 2012-11-30 21:59:48 -08:00
Eric Rowell
8a195618cf cleaned up some cropping logic in Image, and added a cropping unit test 2012-11-30 20:01:10 -08:00
Eric Rowell
047e26382e added new wedge shape. cleaned up shape comments. added degToRad and radToDeg helper in Type utility 2012-11-29 20:15:01 -08:00
Eric Rowell
44e454d740 changed other instances of imageBuffer to imageHitRegion 2012-11-28 23:28:24 -08:00
Eric Rowell
94670aeeda changed createImageBuffer to createImageHitRegion for consistency 2012-11-28 23:18:17 -08:00
Eric Rowell
6ae7a932f8 updated test framework CSS 2012-11-28 23:04:23 -08:00
Eric Rowell
424e86bd2b added warning check for toDataURL, and also improved image buffer unit tests 2012-11-28 22:19:49 -08:00
Eric Rowell
8958fbffc6 new applyShadow method for shape. Images with transparent pixels can now have shadows applied to them again. Fixed image stroke buffer rendering issue 2012-11-28 20:50:33 -08:00
Eric Rowell
e6eb647462 fix #164 prepend # to colorKey so that events work again in non webit browsers 2012-11-27 19:43:33 -08:00
Eric Rowell
393a9687dc adjusted anonymous function wrapper for Node and Shape so that jsdocs wouldn't get tripped up 2012-11-26 20:42:01 -08:00
Eric Rowell
511e4618ba improved Node documentation 2012-11-26 19:12:02 -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
60db1a2d43 cleaned up functional test data urls. Functional tests now pass with no warnings 2012-11-24 23:00:14 -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