Commit Graph

721 Commits

Author SHA1 Message Date
Eric Rowell
c8e83dfacb for event delegation, changed evt.node property to evt.targetNode 2013-03-24 10:38:05 -07:00
Eric Rowell
a4d1dc8dab stage drag and drop works again. continued refactoring DragAndDrop.js 2013-03-24 02:31:39 -07:00
Eric Rowell
40979443e1 removed legacy temp drag layer operation 2013-03-24 01:28:06 -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
15a9f6165f updated spline tests 2013-03-24 00:15:15 -07:00
Eric Rowell
542f675522 added getNodeType() and getShapeType() methods 2013-03-24 00:14:42 -07:00
Eric Rowell
f0037ce9c6 cleaned up Stage.js 2013-03-23 23:50:51 -07:00
Eric Rowell
3a903d6c7c minor refactoring. fixed bug related to click mapping 2013-03-23 23:19:24 -07:00
Eric Rowell
ce793a4b25 refactored / cleaned up code in Node and DD 2013-03-23 22:56:22 -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
c31abf6be3 changed getUserPosition to getPointerPosition, and setUserPosition to setPointerPosition 2013-03-23 20:15:49 -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
0dbda82886 created _upperCase util method for function and event name generation, and did some refactoring 2013-03-21 20:24:03 -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
d010c5fa42 Merge branch 'master' of github.com:ericdrowell/KineticJS 2013-03-21 10:11:41 -07:00
Eric Rowell
aae0f5d3af updated Wedge docs 2013-03-21 10:10:21 -07:00
Eric Rowell
f0a64afa72 Update presentation-schedule.md 2013-03-21 09:25:05 -07:00
Eric Rowell
8a2f2e0456 Update presentation-schedule.md 2013-03-21 09:24:21 -07:00
Eric Rowell
68aeb8f558 added presentation markdown document to the source so people can make pull requests to update it 2013-03-20 22:47:15 -07:00
Eric Rowell
912cef43c6 fixed ContainerParams token in thorfile 2013-03-20 10:04:07 -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
5b3a87b98d changed wrapping attribute to wrap 2013-03-20 09:26:55 -07:00
Eric Rowell
809da97a45 merged and tweaked pull request 314 2013-03-20 09:17:21 -07:00
Eric Rowell
fb2d816817 updated text test 2013-03-20 09:02:18 -07:00
Eric Rowell
49112051d9 Merge pull request #328 from thulka/master
Some lines that speed up event handling (20 to 18 % time spent) and make code cleaner.
2013-03-19 10:35:22 -07:00
Eric Rowell
821aa7b872 Merge pull request #307 from Turbo87/patch-1
Text: Fixed DASH constant
2013-03-19 10:29:09 -07:00
Eric Rowell
0073c4cbb9 TextPath now uses Text to build the context.font value for consistency and code reuse. Type._getRandomColorKey now uses an or bitwise operation to round rgb values much faster 2013-03-19 10:17:09 -07:00
Eric Rowell
97db4fc053 fixed up TextPath tests 2013-03-19 09:40:48 -07:00
thulka
b043a2f931 Improvement of event handler performance in Stage
The event handler function was fetched upon every fired event. This is
now avoided by fetching the function once before adding the listener.
This is partly a refactoring but also changes the code, since changes of
the events in that[] are now considered only during the call of
_bindContentEvents. If an event is removed however, the previous code
would crash, since that['_' + event] would then be null. Performance
profiling showed slight advantage, from 20% spent to 18% spent inside
event handler. And the code is cleaner.
2013-03-19 17:15:24 +01:00
Eric Rowell
f3dd9286a9 changed Gauss to Blur 2013-03-19 09:03:18 -07:00
Eric Rowell
4036aa5fc7 label offset is now adjusted whenever the text is updated 2013-03-17 22:01:52 -07:00
Eric Rowell
e43c2fbeb4 fixed logic in Text that was accessing padding attr directly without using the getter 2013-03-17 21:16:08 -07:00
Eric Rowell
e0e390f760 added getWidth() and getHeight() methods to Label 2013-03-17 17:56:39 -07:00
Eric Rowell
b37f50ba69 moved Path to Plugins namespace 2013-03-17 17:32:35 -07:00
Eric Rowell
a1f934d26a changed label rect drawing from Polygon to Shape to support rounded corners soon. Also wrapped the text and rect inside of an inner group so that the label can be positioned based on the pointer tip 2013-03-17 17:20:06 -07:00
Eric Rowell
bb57810c9a added arrow support for new label plugin 2013-03-16 00:33:56 -07:00
Eric Rowell
8e17729cea first pass of new Label plugin 2013-03-15 23:35:40 -07:00
Eric Rowell
c9d6820dbf refactored transition logic and added getAttr method 2013-03-15 16:19:12 -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
Louis Jolibois
c58db11a2a refactored the whole _setTextData method of Kinetic.Text, added a 'wrapping' option.
Performances should improve.
Also, the text should not overflow anymore from the defined width like it sometimes did.
2013-03-15 15:40:30 +01:00
Alexander Ruliov
04ddd3213b fixed Thorfile containerParams.txt typo. closes #316 2013-03-15 01:09:56 +03:00
Alexander Ruliov
9b5d33325d chainable .on/.off and Layer.(before/after)Draw. closes #279 2013-03-15 01:07:35 +03:00
Louis Jolibois
5ca21992de Added a shared cached dummy canvas context that may be used by Kinetic.Text methods.
This greatly improves performances when creating lots of Kinetic.Text nodes, especially on mobile devices.
2013-03-14 19:34:35 +01: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
Tobias Bieniek
ac1578b6c6 Text: Fixed DASH constant
The DASH constant should obviously contain a dash instead of a newline character. I guess this was caused by a copy-paste error...
2013-03-08 11:57:31 +01: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
88e1c5fa08 Merge branch 'master' of github.com:ericdrowell/KineticJS 2013-02-20 21:31:10 -08:00
Eric Rowell
4a0087f72c gauss cleanup 2013-02-20 21:30:24 -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