General.Web/wwwroot/assets/module/CircleProgress.js
(开头部分) 22KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*!
* Circle Progress - v0.0.0 - 2019-07-13
* https://tigrr.github.io/circle-progress
* Copyright (c) Tigran Sargsyan
* Licensed MIT
*/
layui.define(function (exports) {
"use strict";
function _classCallCheck(a, b) {
if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
}
var _extends = Object.assign || function (a) {
for (var b = 1; b < arguments.length; b++) {
var c = arguments[b];
for (var d in c) Object.prototype.hasOwnProperty.call(c, d) && (a[d] = c[d])
}
return a
}, _createClass = function () {
function a(a, b) {
for (var c = 0; c < b.length; c++) {
var d = b[c];
d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(a, d.key, d)
}
}
return function (b, c, d) {
return c && a(b.prototype, c), d && a(b, d), b
}
}(), _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (a) {
return typeof a
} : function (a) {
return a && "function" == typeof Symbol && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a
}, CircleProgress = function () {
SVGElement.prototype.hasOwnProperty("innerHTML") || Object.defineProperty(SVGElement.prototype, "innerHTML", {
get: function () {
var a, b, c, d, e, f;
for (c = document.createElement("div"), b = this.cloneNode(!0), f = b.childNodes, d = 0, e = f.length; e > d; d++) a = f[d], c.appendChild(a);
return c.innerHTML
}, set: function (a) {
for (var b, c, d, e, f, g, h; this.firstChild;) this.firstChild.parentNode.removeChild(this.firstChild);
for (a = "<svg id='wrapper' xmlns='http://www.w3.org/2000/svg'>" + a + "</svg>", b = document.createElement("div"), b.innerHTML = a, d = b.querySelector("svg#wrapper"), g = d.childNodes, h = [], e = 0, f = g.length; f > e; e++) c = g[e], h.push(this.appendChild(c));
return h
}, enumerable: !1, configurable: !0
});
var a = function () {
var a, b, c, d;
return a = function (a, c, d, e) {
var f, g;
return e = e || document, g = Object.create(b), "string" == typeof a && (a = e.querySelector(a)), a ? (f = e.createElementNS("http://www.w3.org/2000/svg", "svg"), f.setAttribute("version", "1.1"), c && f.setAttribute("width", c), d && f.setAttribute("height", d), c && d && f.setAttribute("viewBox", "0 0 " + c + " " + d), a.appendChild(f), g.svg = f, g) : void 0
}, b = {
element: function (a, b, d, e) {
var f;
return f = c(this, a, b, e), d && (f.el.innerHTML = d), f
}, _shortcutElement: function (a, b) {
var c, d, e = {};
switch (a) {
case"rect":
后面还有 327 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
