Eric Rowell
|
793e43b0db
|
removed apply() Collection method. Added new mapMethods() Collection method, which is used internally to map node methods to collection methods
|
2013-03-25 22:43:35 -07:00 |
|
Eric Rowell
|
ffe11a4539
|
refactored and optimized Image.js and Type.js
|
2013-03-24 13:12:33 -07:00 |
|
Eric Rowell
|
c8e83dfacb
|
for event delegation, changed evt.node property to evt.targetNode
|
2013-03-24 10:38:05 -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
|
542f675522
|
added getNodeType() and getShapeType() methods
|
2013-03-24 00:14:42 -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
|
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
|
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
|
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 |
|
Alexander Ruliov
|
9b5d33325d
|
chainable .on/.off and Layer.(before/after)Draw. closes #279
|
2013-03-15 01:07:35 +03:00 |
|
Eric Rowell
|
66cc6cd98c
|
added support to define pixel ratio with Canvas constructor
|
2013-02-12 10:29:23 -08:00 |
|
Eric Rowell
|
5e65b4c596
|
refactored pixel ratio scale logic
|
2013-02-12 00:20:24 -08:00 |
|
Eric Rowell
|
79fecd2c13
|
dynamic drag layer setup now does deep copy of Groups and Layers when reconstructing ancestors
|
2013-01-28 21:27:08 -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
|
8ed84f474a
|
fixed several memory issues with transition logic. Heavily refactored Transition module. New Animation isRunning method. destroy() method now correctly stops currently running transitions. added several transition and destroy related unit tests
|
2013-01-13 19:59:35 -08:00 |
|
Eric Rowell
|
b6ba1a503c
|
ids and names hashes used for node selection via get() has moved to Global in order to greatly simplify the selection logic. This means that node ids and names are shared across all stages. If two stages each have a node with the same id, only the last id set will be accessibile (similar to DOM)
|
2013-01-13 11:10:49 -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
|
4136ddb398
|
added new dragOnTop property which allows you to define whether or not a node is automatically moved to a temp top layer when dragging
|
2013-01-09 23:45:30 -08:00 |
|
Eric Rowell
|
db4a972fb2
|
updated more docs
|
2013-01-03 00:00:10 -08:00 |
|
Eric Rowell
|
31ad5fca88
|
updated docs
|
2013-01-02 21:35:51 -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
|
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
|
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
|
aa05f90ea4
|
updated stage docs
|
2012-12-16 20:52:07 -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
|
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
|
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
|
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
|
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
|
27d5031665
|
further decoupled scene, hit, and buffer graph drawing. To define a custom hit draw function, you now need to set the drawHitFunc attr.
|
2012-11-18 19:50:50 -08:00 |
|
Eric Rowell
|
38d78cc53a
|
added local cached variables to improve performance for Node and Shape
|
2012-11-14 00:07:59 -08:00 |
|
Eric Rowell
|
914ee2fb4b
|
after doing some more performance testing, decided to remove class level cache in favor of local method variable caching only
|
2012-11-13 23:48:30 -08:00 |
|
Eric Rowell
|
3c3351ec6f
|
removed ATTRS class level variable cache from Shape. added class level variable cache to Node. Made several low level optimizations.
|
2012-11-13 23:22:56 -08:00 |
|
Eric Rowell
|
2115920ab8
|
fixed up Canvas type bug. The Canvas constructor can now also take an optional isBuffer param. If not defined, default value is scene
|
2012-11-13 22:16:36 -08:00 |
|
Eric Rowell
|
5be1802729
|
fix #149 began decoupling scene graph draw and buffer graph draw logic. This will enable more flexibility for developers to define custom buffer draw functions, and it also improves draw performance for both the scene and buffer graphs, because each function can be optimized for its purpose. Also moved text drawing logic to the Text shape
|
2012-11-12 19:59:19 -08:00 |
|
Eric Rowell
|
a30d6730fe
|
documented Filters namespace, filters, and Transform class, and cleaned up jsdoc warnings
|
2012-11-11 17:08:16 -08:00 |
|
Eric Rowell
|
4cc505446a
|
updated docs
|
2012-11-05 07:33:54 -08:00 |
|
Eric Rowell
|
32e72176ca
|
isListening() method now takes into account ancestor listening
|
2012-11-03 22:20:46 -07:00 |
|
Eric Rowell
|
257497755b
|
added defensive coding to _handleEvent() method which fixes a bug related to canceling stage drag and drop while dragging
|
2012-11-03 21:49:20 -07:00 |
|
Eric Rowell
|
0748692c1d
|
added new fire() method which fires synthetic events and custom events. Simulate() now simulates user events with event bubbling
|
2012-11-03 17:19:21 -07:00 |
|