~bac/juju-gui/trunkcopy

« back to all changes in this revision

Viewing changes to lib/yui/build/anim-xy/anim-xy-debug.js

  • Committer: kapil.foss at gmail
  • Date: 2012-07-13 18:45:59 UTC
  • Revision ID: kapil.foss@gmail.com-20120713184559-2xl7be17egsrz0c9
reshape

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
YUI 3.5.1 (build 22)
3
 
Copyright 2012 Yahoo! Inc. All rights reserved.
4
 
Licensed under the BSD License.
5
 
http://yuilibrary.com/license/
6
 
*/
7
 
YUI.add('anim-xy', function(Y) {
8
 
 
9
 
/**
10
 
 * Adds support for the <code>xy</code> property in <code>from</code> and 
11
 
 * <code>to</code> attributes.
12
 
 * @module anim
13
 
 * @submodule anim-xy
14
 
 */
15
 
 
16
 
var NUM = Number;
17
 
 
18
 
Y.Anim.behaviors.xy = {
19
 
    set: function(anim, att, from, to, elapsed, duration, fn) {
20
 
        anim._node.setXY([
21
 
            fn(elapsed, NUM(from[0]), NUM(to[0]) - NUM(from[0]), duration),
22
 
            fn(elapsed, NUM(from[1]), NUM(to[1]) - NUM(from[1]), duration)
23
 
        ]);
24
 
    },
25
 
    get: function(anim) {
26
 
        return anim._node.getXY();
27
 
    }
28
 
};
29
 
 
30
 
 
31
 
 
32
 
}, '3.5.1' ,{requires:['anim-base', 'node-screen']});