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
|
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
|
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
|
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
|
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
|
f144c67264
|
resolved conflicts
|
2013-08-31 21:53:42 -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
|
d49ae15207
|
getStage() result is now cached. refactored caching system even further.
|
2013-08-11 20:34:54 -07:00 |
|
Eric Rowell
|
64d6c79a6a
|
moved factory logic out of Node.js to Factory.js
|
2013-08-10 21:11:34 -07:00 |
|
Eric Rowell
|
7700ecc70b
|
draw events no longer bubble. It was causing too much of a performance hit, and didn't provide a whole lot of value. Now, only layers fire draw events
|
2013-08-09 20:22:51 -07:00 |
|
Eric Rowell
|
3eea92d72e
|
added validation for add(). An error is thrown if an invalid node is added
|
2013-07-22 22:47:13 -07:00 |
|
Eric Rowell
|
1fc57bed4c
|
removed createAttrs method and cleaned up init logic
|
2013-07-22 22:05:21 -07:00 |
|
Eric Rowell
|
9324c366ea
|
standardized init method names with underscores
|
2013-07-22 21:41:41 -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
|
ffc33a7676
|
removeChildren now removes all descendants. returned this for all applicable methods in Node, Layer, Stage, and Shape
|
2013-06-06 22:45:31 -07:00 |
|
Eric Rowell
|
77793aed60
|
lots of jshinting
|
2013-06-01 22:03:02 -07:00 |
|
Eric Rowell
|
c7816642d7
|
fixes #414
|
2013-05-20 22:12:43 -07:00 |
|
Eric Rowell
|
2ea5f83204
|
more docs, especially for Util and Tween
|
2013-05-18 10:40:05 -07:00 |
|
Eric Rowell
|
3433086079
|
changed getIntersections() to getAllIntersections() to indicate that the method returns more than may be needed. Updatee docs, and clarified the differences between intersects(), getIntersection(), and getAllIntersections()
|
2013-05-17 15:50:53 -07:00 |
|
Eric Rowell
|
b1025be75e
|
updated docs in prep for jsdoc3 migration
|
2013-05-15 09:27:22 -07:00 |
|
Eric Rowell
|
032eb9e4db
|
updated docs
|
2013-05-08 09:44:03 -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
|
e2d6993c89
|
added Global.addMethods() method and defined core constructors in Global
|
2013-05-07 23:17:57 -07:00 |
|
Eric Rowell
|
11f269868f
|
added batchDraw which enables you to call batchDraw() as many times as you want, and let Kinetic automatically combine layer draws together asynchronously
|
2013-05-05 22:09:32 -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
|
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
|
bfbd42b232
|
extended getIntersection method for Layer to improve flexibility. Replaced instances of Math.round to bitwise round via | 0 for a small performance gain
|
2013-04-11 23:51:21 -07:00 |
|
Eric Rowell
|
6f61b07500
|
some refactoring proposed by pavelpower
|
2013-04-07 10:00:55 -07:00 |
|
Eric Rowell
|
d57842126a
|
fixes #353
|
2013-04-04 23:17:20 -07:00 |
|
Eric Rowell
|
13c540b969
|
removed beforeDraw and afterDraw methods. you can now subscribe to draw events with .on('draw') or .on('beforeDraw'). Draw events also bubble
|
2013-03-24 01:05:37 -07:00 |
|
Eric Rowell
|
b5c1bc633a
|
removed dynamic drag and drop layer all together. In the end, the performance benefits (small) did not out weigh the complexity consequences
|
2013-03-23 21:47:15 -07:00 |
|
Eric Rowell
|
966ebf2a32
|
lots of refactoring, and code hardening. Also fixed bug in which dragend events were being fired before mouseup/touchend events
|
2013-03-23 20:02:11 -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
|
2c237aa708
|
Merge pull request #329 from Rulexec/master
Thorfile typo fix and chainable on/off.
|
2013-03-20 10:01:04 -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 |
|
Alexander Ruliov
|
9b5d33325d
|
chainable .on/.off and Layer.(before/after)Draw. closes #279
|
2013-03-15 01:07:35 +03: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
|
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
|
b1038e99bf
|
pulled Node config params and Shape config params into a textfile, and now using token replacement to auto fill Node and Shape config params throughout the code base. In this way, if I need to make changes to the Node or Shape configs, those changes are propagated to all of the other constructors
|
2013-01-26 20:42:19 -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
|
a283286803
|
fixed up clearBeforeDraw() documentation
|
2013-01-07 20:03:44 -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
|
66a7e2ac39
|
layer.toDataURL() now directly returns layer canvas data url if position and size are not specificed. updated unit tests and docs
|
2013-01-02 22:02:00 -08:00 |
|
Eric Rowell
|
31ad5fca88
|
updated docs
|
2013-01-02 21:35:51 -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
|
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 |
|