Вход Регистрация
Файл: CloudBox-main/CloudBox/admin_assets/js/jquery.easypiechart.min.js
Строк: 225
<?php
/**!
 * easyPieChart
 * Lightweight plugin to render simple, animated and retina optimized pie charts
 *
 * @license
 * @author Robert Fleischmann <rendro87@gmail.com> (http://robert-fleischmann.de)
 * @version 2.1.5
 **/
!function (ab) {
    
"object" == typeof exports module.exports b(require("jquery")) : "function" == typeof define && define.amd define(["jquery"], b) : b(a.jQuery)
}(
this, function (a) {
    var 
= function (ab) {
        var 
cdocument.createElement("canvas");
        
a.appendChild(d), "undefined" != typeof G_vmlCanvasManager && G_vmlCanvasManager.initElement(d);
        var 
d.getContext("2d");
        
d.width d.height b.size;
        var 
1;
        
window.devicePixelRatio && (window.devicePixelRatiod.style.width d.style.height = [b.size"px"].join(""), d.width d.height b.size fe.scale(ff)), e.translate(b.size 2b.size 2), e.rotate((-0.5 b.rotate 180) * Math.PI);
        var 
= (b.size b.lineWidth) / 2;
        
b.scaleColor && b.scaleLength && (-= b.scaleLength 2), Date.now Date.now || function () {
            return+new 
Date
        
};
        var 
= function (abc) {
            
Math.min(Math.max(-1|| 0), 1);
            var 
>= ? !: !1;
            
e.beginPath(), e.arc(00g0Math.PI cd), e.strokeStyle ae.lineWidth be.stroke()
        }, 
= function () {
            var 
ac;
            
e.lineWidth 1e.fillStyle b.scaleColore.save();
            for (var 
240; --d)=== ? (b.scaleLength0) : (.6 b.scaleLengthb.scaleLength c), e.fillRect(-b.size a0c1), e.rotate(Math.PI 12);
            
e.restore()
        }, 
= function () {
            return 
window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function (a) {
                
window.setTimeout(a1e3 60)
            }
        }(), 
= function () {
            
b.scaleColor && i(), b.trackColor && h(b.trackColorb.lineWidth1)
        };
        
this.getCanvas = function () {
            return 
d
        
}, this.getCtx = function () {
            return 
e
        
}, this.clear = function () {
            
e.clearRect(b.size / -2b.size / -2b.sizeb.size)
        }, 
this.draw = function (a) {
            
b.scaleColor || b.trackColor e.getImageData && e.putImageData e.putImageData(c00) : (k(), e.getImageData(00b.size fb.size f)) : (this.clear(), k()) : this.clear(), e.lineCap b.lineCap;
            var 
d;
            
"function" == typeof b.barColor b.barColor(a) : b.barColorh(db.lineWidth100)
        }.
bind(this), this.animate = function (ac) {
            var 
Date.now();
            
b.onStart(ac);
            var 
= function () {
                var 
Math.min(Date.now() - db.animate.duration), b.easing(thisfaab.animate.duration);
                
this.draw(g), b.onStep(acg), >= b.animate.duration b.onStop(ac) : j(e)
            }.
bind(this);
            
j(e)
        }.
bind(this)
    }, 
= function (ac) {
        var 
= {barColor"#ef1e25"trackColor"#f9f9f9"scaleColor"#dfe0e0"scaleLength5lineCap"round"lineWidth3size110rotate0animate: {duration1e3enabled: !0}, easing: function (abcde) {
            return 
/= 2: -* (--* (2) - 1) + c
        
}, onStart: function () {
        }, 
onStep: function () {
        }, 
onStop: function () {
        }};
        if (
"undefined" != typeof b)d.renderer b; else {
            if (
"undefined" == typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");
            
d.renderer SVGRenderer
        
}
        var 
= {}, 0= function () {
            
this.el athis.options e;
            for (var 
b in d)d.hasOwnProperty(b) && (e[b] = && "undefined" != typeof c[b] ? c[b] : d[b], "function" == typeof e[b] && (e[b] = e[b].bind(this)));
            
e.easing "string" == typeof e.easing && "undefined" != typeof jQuery && jQuery.isFunction(jQuery.easing[e.easing]) ? jQuery.easing[e.easing] : d.easing"number" == typeof e.animate && (e.animate = {duratione.animateenabled: !0}), "boolean" != typeof e.animate || e.animate || (e.animate = {duration1e3enablede.animate}), this.renderer = new e.renderer(ae), this.renderer.draw(f), a.dataset && a.dataset.percent this.update(parseFloat(a.dataset.percent)) : a.getAttribute && a.getAttribute("data-percent") && this.update(parseFloat(a.getAttribute("data-percent")))
        }.
bind(this);
        
this.update = function (a) {
            return 
parseFloat(a), e.animate.enabled this.renderer.animate(fa) : this.renderer.draw(a), athis
        
}.bind(this), this.disableAnimation = function () {
            return 
e.animate.enabled = !1this
        
}, this.enableAnimation = function () {
            return 
e.animate.enabled = !0this
        
}, g()
    };
    
a.fn.easyPieChart = function (b) {
        return 
this.each(function () {
            var 
d;
            
a.data(this"easyPieChart") || (a.extend({}, ba(this).data()), a.data(this"easyPieChart", new c(thisd)))
        })
    }
});
?>
Онлайн: 3
Реклама