Commit Graph

58 Commits

Author SHA1 Message Date
Лаврёнов Антон
c8ddd27c2c Alpha nodejs support 2014-02-27 19:55:39 +08:00
Лаврёнов Антон
098fabbfc1 merge 2014-02-27 09:13:55 +08:00
Лаврёнов Антон
eb16e29197 only lint errors fixes 2014-02-27 08:49:18 +08:00
Eric Rowell
26a267a457 skipping sprite tests because it fails sporadically 2014-02-26 10:54:21 -08:00
Eric Rowell
04b19e7d8a Merge pull request #786 from kzhdev/fix-setPixelRatio
fixed an issue where setPixelRatio changed canvas to wrong size
2014-02-26 08:03:00 -08:00
Eric Rowell
c2e138c6f4 for desktop browsers, always set pixel ratio to 1. When users have zoom enabled, it affects pixel ratio and causes artifacts. There doesn't appear to be a way to detect zoom level for modern browsers in order to adjust the pixel ratio 2014-02-26 07:57:05 -08:00
kzhdev
ed03702cd5 fixed an issue where setPixelRatio changed canvas to wrong size 2014-01-30 16:15:18 -06:00
Eric Rowell
659d0409b3 added Kinetic level pixelRatio property that can be used to override the detected pixel ratio. Also fixed up a pixel ratio related test for FF. added Kinetic.UA for user agent detection 2013-09-13 23:26:58 -07:00
Eric Rowell
3ba89d36e7 introduced new Context class. I've bumped up the next release to v4.7.0 because this is a relatively big mind shift in how the framework works, and it's a big enough API change to warrant a minor update. This is the first step towards enabling context tracing for stellar unit testing 2013-08-31 21:49:18 -07:00
Eric Rowell
2f0c889b1e created a proper utility function that handles defaults. Integrating the ntew get() method fixes a shadowBlur issue. fixed #587 2013-08-28 09:48:42 -07:00
Eric Rowell
4665a2d002 updated Canvas docs 2013-08-27 22:06:32 -07:00
Eric Rowell
c8936a4bc0 added getter and setter methods for pixel ratio. Also added unit tests 2013-08-27 21:51:54 -07:00
Eric Rowell
6663ec0652 clipping regions now work correctly when device pixel ratio != 1 2013-08-25 22:26:42 -07:00
Eric Rowell
d49ae15207 getStage() result is now cached. refactored caching system even further. 2013-08-11 20:34:54 -07:00
Eric Rowell
8654391de4 deprecated the clipFunc method. replaced it with clip, which has an x, y, width, and height 2013-08-10 22:00:29 -07:00
Eric Rowell
1c51d65a93 caching system now relies on attr change events to clear the appropriate cache attrs 2013-08-10 13:04:02 -07:00
Eric Rowell
86bd4ddfa9 reworked caching system 2013-08-10 11:24:24 -07:00
Eric Rowell
d902e6dca0 absolute transforms are now cached 2013-08-10 00:58:53 -07:00
Eric Rowell
1d5eff629a canvas left and top inline styles are now set to 0 2013-07-21 23:14:41 -07:00
Eric Rowell
77793aed60 lots of jshinting 2013-06-01 22:03:02 -07:00
Eric Rowell
3f67cc8b60 got started on jshint errors. still a lot to do 2013-06-01 16:23:31 -07:00
Eric Rowell
244273eb4c prevent default now occurs in the stage addEvent method 2013-05-31 23:11:21 -07:00
Eric Rowell
324d841ed4 mousedown and touchstart events now always call preventDefault 2013-05-31 23:04:07 -07:00
Eric Rowell
2ea5f83204 more docs, especially for Util and Tween 2013-05-18 10:40:05 -07:00
Eric Rowell
821138cc0a more documenting 2013-05-15 22:03:52 -07:00
Eric Rowell
76a399bfc0 major refactor of directory structure. Killed Util directory. Created Util.js file instead. Moved general purpose methods from Global to Util 2013-05-07 23:51:02 -07:00
Eric Rowell
2610851e4b fixed up radial gradients 2013-05-05 23:07:55 -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
9160b694ae transition call back is called using the nodes context. This means that you can access the node with the this keyword 2013-04-13 12:15:08 -07:00
Eric Rowell
8138d2d286 cleaned up Canvas 2013-04-12 23:45:22 -07:00
Eric Rowell
9cb3cb9d63 created new sub class called Canvas2D which extends Canvas, and a new GenericCanvas subclass which also extends Canvas. The GenericCanvas class will be used to instantiate non 2d canvas renderers. Also created new contextType property. Setup webgl unit test 2013-04-12 00:48:41 -07:00
Eric Rowell
0c80f6e223 rewrote dynamic drag and drop layer because the old implementation had too many problems. This resolves all of the dynamic drag and drop issues in one go. draw() method can now be applied to any node, not just the Stage and Layers. drag events now bubble 2013-03-22 00:46:41 -07:00
Eric Rowell
012e495a69 new strokeScaleEnabled property which enables you to configure if the stroke style of a shape should scale or not as the shape itself scales, or as its ancestors scale 2013-02-21 09:14:44 -08:00
Eric Rowell
46f71d283f added clipping functionality to containers. Currently, the clipping function can only be applied to layers and groups. The clipping region is also subject to the containers transforms, which means that you can also create transformed clipping regions. 2013-02-15 18:20:34 -08:00
Eric Rowell
b739d6edf7 replaced string literals with numbers where appropriate 2013-02-15 15:26:59 -08:00
Eric Rowell
ca0d3790b2 canvas elements now come with padding, margin, border, and background style resets 2013-02-15 15:18:02 -08:00
Eric Rowell
66cc6cd98c added support to define pixel ratio with Canvas constructor 2013-02-12 10:29:23 -08:00
Eric Rowell
26943f8245 implemented new pixel ratio logic, which covers all drawing cases using a canvas context. The new logic also has better performance than the previous 2013-02-12 09:58:47 -08:00
Eric Rowell
5e65b4c596 refactored pixel ratio scale logic 2013-02-12 00:20:24 -08:00
Eric Rowell
5ac8142f82 Kinetic.Text events now work property 2013-02-11 22:55:24 -08:00
Eric Rowell
322e88d454 new fillPriority attr which enables you to easily toggle between different fill types without having to null out fill attrs and reset other fill attrs 2013-01-30 09:50:36 -08:00
Eric Rowell
dde4235301 added line dash support for firefox and safari 2013-01-28 22:38:22 -08:00
Eric Rowell
c2e5f4c1b3 refactored stroke and fill logic to eliminate duplicated logic 2013-01-24 22:44:00 -08:00
Eric Rowell
624ec25c29 added enabler and disabler functions to toggle shape attrs that are either on or off, such as fill, stroke, shadow, and dashArray. Also fixed problem with shadows not being applied to non color filled shapes 2013-01-23 23:08:01 -08:00
Eric Rowell
203c3960e3 updated copyright year, and removed excessive dashArray warnings 2013-01-04 22:21:17 -08:00
Eric Rowell
bba5c7b101 really cool new feature that... wait, no, just more docmentation 2013-01-02 23:55:56 -08:00
Eric Rowell
a53db90d0a flattened fill attr, created new Node getter and setter generators that handle type conversions for points, sizes, and rotations 2013-01-01 23:54:02 -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