Showing 840 of 1,637 total issues
Avoid deeply nested control flow statements. Open
Open
for (var subkey in par) if (par[has](subkey)) {
params[subkey] = par[subkey];
}
Function matrix
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
R.matrix = function (a, b, c, d, e, f) {
Avoid deeply nested control flow statements. Open
Open
for (key in e) if (e[has](key)) {
splice.push(e[key]);
}
Function animateWith
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
elproto.animateWith = function (el, anim, params, ms, easing, callback) {
Avoid deeply nested control flow statements. Open
Open
if (onlystart) {return sp;}
Avoid deeply nested control flow statements. Open
Open
if (o._.arrows) {
"startString" in o._.arrows && addArrow(o, o._.arrows.startString);
"endString" in o._.arrows && addArrow(o, o._.arrows.endString, 1);
}
Function q2c
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
q2c = function (x1, y1, ax, ay, x2, y2) {
Function drag
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
elproto.drag = function (onmove, onstart, onend, move_scope, start_scope, end_scope) {
Function runAnimation
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function runAnimation(anim, element, percent, status, totalOrigin, times) {
Avoid deeply nested control flow statements. Open
Open
for (j = 0, jj = e.f.length; j < jj; j++) if (e.f[j] == f) {
e.f.splice(j, 1);
break;
}
Avoid deeply nested control flow statements. Open
Open
if (pj[0] == "C") {
bez2 = [x2, y2].concat(pj.slice(1));
x2 = bez2[6];
y2 = bez2[7];
} else {
Avoid deeply nested control flow statements. Open
Open
if (justCount) {
res += intr;
} else {
for (var k = 0, kk = intr.length; k < kk; k++) {
intr[k].segment1 = i;
Avoid deeply nested control flow statements. Open
Open
switch (availableAnimAttrs[attr]) {
case nu:
now = +from[attr] + pos * ms * diff[attr];
break;
case "colour":
Function rect
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
R._engine.rect = function (svg, x, y, w, h, r) {
Function CubicBezierAtTime
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function CubicBezierAtTime(t, p1x, p1y, p2x, p2y, duration) {
Function image
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
R._engine.image = function (svg, src, x, y, w, h) {
Avoid deeply nested control flow statements. Open
Open
if (stop) {
break;
}
Avoid deeply nested control flow statements. Open
Open
} else if (command == "s") {
if (tlen == 2 || tlen == 3) {
bb = bb || el.getBBox(1);
m.scale(t[1], t[tlen - 1], bb.x + bb.width / 2, bb.y + bb.height / 2);
sx *= t[1];
Avoid deeply nested control flow statements. Open
Open
if (path) {
var clip = R._g.doc.getElementById(path.replace(/(^url\(#|\)$)/g, E));
clip && clip.parentNode.removeChild(clip);
$(node, {"clip-path": E});
delete o.clip;
Avoid deeply nested control flow statements. Open
Open
if (gradient) {
stops = gradient.getElementsByTagName("stop");
$(stops[stops.length - 1], {"stop-opacity": value});
}