Commit Graph

788 Commits

Author SHA1 Message Date
Eric Rowell
a47726eb2f added support for cached node with transformed ancestors 2013-12-29 21:40:37 -08:00
Eric Rowell
c39726101f added unit test for layer caching 2013-12-29 19:46:53 -08:00
Eric Rowell
0899cdb1a3 new graph caching mechanism now supports containers as well. added test 2013-12-29 19:30:44 -08:00
Eric Rowell
90b07cea05 refactored Container drawScene and drawHit methods, and cleaned up clipping logic. Clipping now correctly also clips the hit graph 2013-12-29 14:07:58 -08:00
Eric Rowell
264f24e241 added cache perf test. refactored Star.js to better incorporate getters 2013-12-28 13:52:03 -08:00
Eric Rowell
b5165fa8fb first pass at new drawing caching mechanism 2013-12-28 13:25:15 -08:00
Eric Rowell
4866acdf93 transformsEnabled property now accepts all, none, or position. Also started prelim work for new caching system 2013-12-19 23:29:23 -08:00
Eric Rowell
d3eb9990bd removed Sprite afterFrame func. The same functionality can be achieved by listening to indexChange event 2013-12-15 12:55:01 -08:00
Eric Rowell
b273c29aee removed old test directory. added getter setter overloaders to Shape. Began redoing documentation on Node 2013-12-13 21:33:40 -08:00
Eric Rowell
9accc00cf3 fixed up Ring shape init method because the drawFunc API slightly changed 2013-12-13 11:15:29 -08:00
Eric Rowell
9e05e81f50 Merge pull request #720 from binoculars/master
Added Ring Shape
2013-12-13 11:11:24 -08:00
Eric Rowell
fe7b4daebc factor methods now also build overloaded attr functions. i.e. instead of setScaleX(5), you can use scaleX(5). Instead of getScaleX(), you can use scaleX() 2013-12-13 11:02:07 -08:00
Barrett Harber
27532e1d05 Added Ring Shape
Ring shape—circle with hollow center.
2013-12-13 02:07:16 -05:00
Eric Rowell
4e526eb3da changed AnnularSection to Arc 2013-12-12 21:20:29 -08:00
Barrett Harber
2a0f5421c9 Added Shape AnnularSection
AnnularSection is a section of an annulus (ring)
http://en.wikipedia.org/wiki/Annulus_%28mathematics%29
2013-12-12 22:42:30 -05:00
Eric Rowell
f31254bb87 improved transformsEnabled logic and added tests 2013-12-11 22:34:02 -08:00
Eric Rowell
cd1ae9141e visible attr can now be inherit, true, or false, like listening 2013-12-11 07:46:49 -08:00
Eric Rowell
6d31f6ed08 new transformsEnabled property which yields absolute best rendering performance 2013-12-10 23:28:46 -08:00
Eric Rowell
ecfd77fa7a updated perf tests 2013-12-09 23:00:26 -08:00
Eric Rowell
8b4deb004d added stage nestedTransformsEnabled flag 2013-12-09 22:46:58 -08:00
Eric Rowell
37c3ce1b47 added layer hitGraphEnabled flag 2013-12-09 22:31:18 -08:00
Eric Rowell
0bad22955a removed instances of hit graph enable caching. Too complex and error prone at the moment 2013-12-09 22:15:26 -08:00
Eric Rowell
1f4ff9f1d7 cleaned up isListening API. introduced new enableHitGraph config that can be used to disable the hit graph 2013-12-09 10:07:08 -08:00
ippo615
0c552cc96e Merge branch 'master' of https://github.com/ericdrowell/KineticJS 2013-12-07 12:38:18 -05:00
ippo615
827caaa451 Added more Polar effects and corrected documentation. 2013-12-07 12:36:48 -05:00
ippo615
2397712f6e Improved Colorization filter.
- Looks better (brightness of original is preserved)
 - Improved speed (2-6 times faster than original)
 - Reduced code
2013-12-07 11:31:38 -05:00
Eric Rowell
50b3220812 migrated old manual test to new testing system. fixed tweening issues 2013-12-05 23:10:42 -08:00
Eric Rowell
c7bb7d90ad reenabled all tests 2013-12-05 22:30:54 -08:00
Eric Rowell
eb6d4dbe8f Merge branch 'master' of github.com:ericdrowell/KineticJS 2013-12-05 22:30:18 -08:00
Eric Rowell
422a6b305b implemented enableNestedTransforms flag which forces the rendering engine to skip nested transform calculations when they aren't needed 2013-12-05 22:29:50 -08:00
ippo615
2c3a29681e Updated some filters and tests. 2013-12-05 18:20:00 -05:00
ippo615
52f96c540b Merge branch 'master' of https://github.com/ericdrowell/KineticJS 2013-12-04 19:10:08 -05:00
ippo615
a680d33c40 Added Gaussian Blur back, put QuickBlur in separate file 2013-12-04 19:03:20 -05:00
Eric Rowell
95d3f3fe45 Merge branch 'master' of github.com:ericdrowell/KineticJS 2013-12-04 10:57:42 -08:00
Eric Rowell
13a98a350c all unit tests are now passing 2013-12-04 10:55:50 -08:00
Eric Rowell
89de3030af all unit tests are now passing except for filter tests 2013-12-04 09:55:17 -08:00
Eric Rowell
f217200ed7 reverted factory methods but removed data type processing 2013-12-04 09:10:24 -08:00
Eric Rowell
5d5a378375 more tweaks 2013-12-04 08:56:21 -08:00
Eric Rowell
c98a9d76a9 all shape and plugin tests are now passing again 2013-12-04 08:37:28 -08:00
Eric Rowell
fb25ba7c59 Factory getters now require function defaults which return an object literal because objects can be modified by reference 2013-12-03 22:54:16 -08:00
Eric Rowell
acd9518ab9 fixed up Circle and Ellipse tests 2013-12-03 22:01:22 -08:00
ippo615
21b0bb8574 Made filters (Levels, Noise, Threshold) tweenable 2013-12-03 19:59:43 -05:00
ippo615
b1b4eca375 Fixed bug in Flip filter, works on single buffer 2013-12-03 19:20:34 -05:00
ippo615
cfa6641d1a Improved color stretch filter 2013-12-03 19:12:17 -05:00
ippo615
632b81137a Added tweening to HSV filter 2013-12-03 18:34:24 -05:00
Eric Rowell
8c8cf0492c shape tests are now passing. all factor setters now return this 2013-12-02 22:16:58 -08:00
Eric Rowell
411b337efe layer tests are now passing 2013-12-02 21:32:46 -08:00
Eric Rowell
a57d6c6106 more unit tests working, more refactoring 2013-12-02 21:25:20 -08:00
Eric Rowell
86686eb590 image unit tests are now passing 2013-12-02 10:51:05 -08:00
Eric Rowell
790a50d438 fixed up line tests 2013-12-02 00:09:42 -08:00
Eric Rowell
f966758bce removed before event emitter for attr changes to improve performance. I don't think it's really needed 2013-12-02 00:06:27 -08:00
Eric Rowell
722ae82f21 Rect tests are now passing 2013-12-01 23:47:24 -08:00
Eric Rowell
9c3be4bb05 all unit tests are no passing 2013-12-01 23:17:20 -08:00
Eric Rowell
a7740ba96e copying over chunks of code from arrays branch 2013-12-01 23:08:15 -08:00
ippo615
26e7aeeba4 Pixelate is tweenable and works with images. 2013-12-01 22:37:17 -05:00
ippo615
4d16ccfe70 Merge branch 'master' of https://github.com/binoculars/KineticJS into binoculars-master
Conflicts:
	Gruntfile.js
	test/runner.html
2013-11-30 13:17:51 -05:00
Eric Rowell
4b62ecea7c combined Line, Spline, Blob, and Polygon into a single shape for more flexibility. converted allPoints property into cacheable getTensionPoints method 2013-11-30 00:24:47 -08:00
Eric Rowell
4fafde7451 added some new perf tests 2013-11-29 13:49:59 -08:00
Eric Rowell
ae5b76d332 fixed typo in unit test 2013-11-27 22:22:12 -08:00
Eric Rowell
24d41e5506 commented out offending unit test for now 2013-11-27 22:21:44 -08:00
Eric Rowell
658064b5ef improved event edge detection algo 2013-11-27 21:53:41 -08:00
Eric Rowell
aa78d632db fixed #382 #198 2013-11-27 21:32:36 -08:00
Eric Rowell
bc9bd291fc began refactoring layer getIntersection method and added unit tests 2013-11-27 16:05:35 -08:00
Eric Rowell
cbcd7d6c89 Merge pull request #688 from lavrton/getLayerFix
Get layer fix
2013-11-27 08:22:39 -08:00
Eric Rowell
93199a09ee Merge pull request #701 from minus71/master
Fix Path when rendering path with multiple closed path.
2013-11-27 08:18:06 -08:00
Eric Rowell
b3f18e9650 Merge pull request #684 from lavrton/toImageImprovement
toImage improvement
2013-11-27 08:08:25 -08:00
ippo615
22793dc93e Added new filter tests to the test runner. 2013-11-26 17:27:58 -05:00
ippo615
25dff7bd8b Added unit tests for new filters (and some old) 2013-11-26 17:21:53 -05:00
ippo615
036b85f920 Added unit test for color stretch filter 2013-11-26 16:27:14 -05:00
Barrett Harber
14570f7bed Added Sepia Filter
Add Sepia Filter from Pixastic Library
2013-11-25 20:39:08 -05:00
Mario Minutolo
e2f2c28b1b Move start position after a close path (z) to the starting node of the path (previous M). 2013-11-25 12:19:02 +01:00
Лаврёнов Антон
cf32e72b85 not this commit 2013-11-15 01:06:34 +08:00
Лаврёнов Антон
3c8c0831ab get layer fix 2013-11-15 01:02:21 +08:00
Лаврёнов Антон
d4b2892c13 toImage improvement 2013-11-12 18:57:58 +08:00
Eric Rowell
6bd0992dd8 fixed #673 2013-11-08 00:30:26 -08:00
Eric Rowell
9bc34d6abb reenabling all tests 2013-11-03 00:07:05 -07:00
Eric Rowell
224436aa18 fixed pixel ratio issue with createHitRegion 2013-11-02 23:48:39 -07:00
Eric Rowell
65166d7ddd added role=presentation to content node 2013-11-02 22:39:24 -07:00
Eric Rowell
f5d5e26e5e fixed pixel ratio issue with buffer canvas usage 2013-11-02 22:31:09 -07:00
Jason Follas
303117ca32 Fixed the assert with updated trace data 2013-10-07 21:36:58 -04:00
Jason Follas
0da4b98e91 Fixed #301: TextPath not responding to events (now rendering glyphs to hit canvas for event detection) 2013-10-07 21:28:08 -04:00
Eric Rowell
1965f61da2 added assertion counter to Mocha 2013-09-30 07:52:13 -07:00
Eric Rowell
5caea0c2a2 fixed up image unit test 2013-09-29 13:06:50 -07:00
Eric Rowell
0486904512 resolved conflicts 2013-09-29 13:02:54 -07:00
Eric Rowell
e8b479e89f optmized buffer canvas requirement logic 2013-09-29 13:01:13 -07:00
ippo615
5af658af66 Uncommented the funtional tests 2013-09-29 15:11:45 -04:00
ippo615
a9c0833a36 Added filter tests to runner.html 2013-09-29 15:09:15 -04:00
ippo615
9e7f27dfe3 Added convolve pack filter tests 2013-09-29 15:06:59 -04:00
ippo615
e98d31e18b Added mask filter test 2013-09-29 15:00:42 -04:00
ippo615
26885d18c1 Added hue shift filter test 2013-09-29 14:55:47 -04:00
ippo615
98fef5eb67 Added invert filter test 2013-09-29 14:51:49 -04:00
ippo615
e4db57355b Added transparent images to tests. 2013-09-29 14:49:19 -04:00
ippo615
ae13dc688a Added grayscale filter test 2013-09-29 14:44:40 -04:00
ippo615
2cc1cc7dcc Added color pack filter unit tests 2013-09-29 14:39:48 -04:00
ippo615
d0f805903d Added brighten filter unit test 2013-09-29 14:39:31 -04:00
ippo615
1770733b1c Added blur filter unit test 2013-09-29 14:39:10 -04:00
ippo615
8b7b3db9ef Merge branch 'master' of https://github.com/Ziriax/KineticJS
Fixed bug #527 - filters and cropping are now friends.
2013-09-29 14:00:51 -04:00
ippo615
de677846b4 Added blur filter unit tests. 2013-09-29 11:26:31 -04:00
Eric Rowell
e13a0b5fd8 fixed issue with stage panning. stage node type needs to be declared before calling super constructor 2013-09-28 21:55:57 -07:00
Eric Rowell
a8cbc2321d hooked opacity rendering into the buffer canvas logic used for shadows so that strokes and fill opacities aren't applied separately 2013-09-28 20:34:42 -07:00
Eric Rowell
6b69460d2c fixed #612 and added stage drag and drop unit tests 2013-09-26 22:40:23 -07:00
Eric Rowell
4cf15cedb8 rewrote shadow logic. fill and strokes are now both taken into account. shape and shadow opacities now work well together 2013-09-26 01:39:50 -07:00
Eric Rowell
63c6e9eea3 added functional tests. fixed line shadow bug 2013-09-25 23:32:44 -07:00
Eric Rowell
5bac5358a9 finished migrating DD tests to mocha. refactored functional test site directory 2013-09-25 23:25:59 -07:00
Eric Rowell
6e8a5b74b9 fixed #610 2013-09-25 07:58:35 -07:00
Eric Rowell
3204318a41 migrated events functional tests over to Mocha 2013-09-23 09:15:28 -07:00
Eric Rowell
10dfeb5ef1 fixed #609 and also made sure that layer.clear() also clears the hit context 2013-09-23 08:31:14 -07:00
Eric Rowell
e39bc36190 fixed #605 2013-09-22 22:15:46 -07:00
ericdrowell
a389fbc6f0 implemented stage content mobile events and added functional tests 2013-09-20 16:45:59 -07:00
ericdrowell
068cb1efc8 added new content events to clean up stage events. added first mocha functional test 2013-09-20 16:17:32 -07:00
ericdrowell
85db781630 deprecated the get() method and added find(). the change is backwards compatible 2013-09-20 14:08:51 -07:00
Eric Rowell
5c328b838f fixed regression bug with createImageHitRegion. setup node server. Upated README with new test instructions 2013-09-16 10:12:50 -07:00
Eric Rowell
ede6fb2e17 fixed save/restore regression introduced in context._stroke() method 2013-09-15 23:42:12 -07:00
Eric Rowell
f31ff0b9e8 getTrace() can now operate in strict and relaxed modes. with relaxed mode, we can now also do a basic context trace test on renderings that may have different parameters in different browsers 2013-09-15 22:59:09 -07:00
Eric Rowell
91fd14cc9f moved UA to Global namespace, and fixed scope issue in _drawChildren that was preventing nested draws from working correctly 2013-09-14 11:02:47 -07:00
Eric Rowell
6131385a4e refactored setLineDash a bit, added comments, and added a context trace assertion that tests line dash 2013-09-14 00:56:17 -07: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
a9496339d1 finished migrating all unit tests over to Mocha 2013-09-11 12:02:03 -07:00
Eric Rowell
25df441a8d removed text path test context trace test 2013-09-10 21:40:26 -07:00
Eric Rowell
dd6f8a754d migrated stage tests to Mocha 2013-09-10 21:38:26 -07:00
Eric Rowell
2fb34e3dc7 migrated TextPath and Shape tests to mocha 2013-09-10 21:17:56 -07:00
Eric Rowell
1ea9e68ff6 migrated Canvas, DragAndDrop, Global, and Tween tests to mocha 2013-09-09 10:08:16 -07:00
Eric Rowell
c40fc7cf38 removed Global namespace. global stuff is now just global, inside the Kinetic namespace. There was no reason to have a secondary level for global vars 2013-09-08 22:02:04 -07:00
Eric Rowell
400fae734d migrated unit tests to Mocha 2013-09-08 21:36:54 -07:00
Eric Rowell
1d586098dd removed label context trace assertion 2013-09-07 23:55:36 -07:00
Eric Rowell
976b88dea5 migrated path tests to Mocha, and also correctly fixed #567 2013-09-07 23:42:11 -07:00
Eric Rowell
9141953569 migrated more plugin tests, and continued working on context tracer 2013-09-07 20:55:03 -07:00
Eric Rowell
ee5f4c3e3b finished migrating all shape unit tests over to mocha. continued working on context tracing support 2013-09-07 17:57:48 -07:00
Eric Rowell
e5cdaff1d1 removed console log from runner 2013-09-04 09:06:18 -07:00
Eric Rowell
db43c1a694 added image unit tests. Added stage factory function to mocha runner 2013-09-04 09:05:19 -07:00
Eric Rowell
7ac45b7c4c migrated Ellipse test to Mocha, and finished up context wrapper methods 2013-09-02 21:16:26 -07:00
Eric Rowell
f298267bd7 migrated text tests. added more context wrapper methods and properties 2013-09-02 20:35:25 -07:00
Eric Rowell
18d36d9d77 migrated Rect and Blob tests to Mocha 2013-09-02 11:39:05 -07:00
Eric Rowell
159959a077 migrated all Circle tests from old unit test framework to Mocha 2013-09-01 14:08:21 -07:00
Eric Rowell
fe551c1ece added more pass through methods for the new context class, and added more unit tests 2013-09-01 13:28:52 -07:00
Eric Rowell
0fc44eb3ff finished up all of the context traces for a simple rectangle rendering, and added unit test 2013-09-01 02:03:24 -07:00
Eric Rowell
8c3a53dc9d started working on context tracing. Added first context trace unit test 2013-09-01 01:13:52 -07:00
Eric Rowell
4247553708 setup mocha-phantomjs, test runner, and a few Util tests 2013-08-28 23:19:29 -07:00