403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/temp/code/es-modules/mixins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/temp/code/es-modules/mixins/draw-point.js
var isFn = function (x) {
    return typeof x === 'function';
};

/**
 * draw - Handles the drawing of a point.
 * TODO: add type checking.
 *
 * @param  {object} params Parameters.
 * @return {undefined} Returns undefined.
 */
var draw = function draw(params) {
    var point = this,
        graphic = point.graphic,
        animate = params.animate,
        attr = params.attr,
        onComplete = params.onComplete,
        css = params.css,
        group = params.group,
        renderer = params.renderer,
        shape = params.shapeArgs,
        type = params.shapeType;

    if (point.shouldDraw()) {
        if (!graphic) {
            point.graphic = graphic = renderer[type](shape).add(group);
        }
        graphic.css(css).attr(attr).animate(animate, undefined, onComplete);
    } else if (graphic) {
        graphic.animate(animate, undefined, function () {
            point.graphic = graphic = graphic.destroy();
            if (isFn(onComplete)) {
                onComplete();
            }
        });
    }
    if (graphic) {
        graphic.addClass(point.getClassName(), true);
    }
};

export default draw;

Youez - 2016 - github.com/yon3zu
LinuXploit