Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
YUI.add('anim-xy', function (Y, NAME) {
2
 
3
/**
4
 * Adds support for the <code>xy</code> property in <code>from</code> and
5
 * <code>to</code> attributes.
6
 * @module anim
7
 * @submodule anim-xy
8
 */
9
 
10
var NUM = Number;
11
 
12
Y.Anim.behaviors.xy = {
13
    set: function(anim, att, from, to, elapsed, duration, fn) {
14
        anim._node.setXY([
15
            fn(elapsed, NUM(from[0]), NUM(to[0]) - NUM(from[0]), duration),
16
            fn(elapsed, NUM(from[1]), NUM(to[1]) - NUM(from[1]), duration)
17
        ]);
18
    },
19
    get: function(anim) {
20
        return anim._node.getXY();
21
    }
22
};
23
 
24
 
25
 
26
}, '3.18.1', {"requires": ["anim-base", "node-screen"]});