Showing 181 of 292 total issues
File raphael.js
has 5645 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// ┌────────────────────────────────────────────────────────────────────┐ \\
// │ Raphaël 2.1.2 - JavaScript Vector Library │ \\
// ├────────────────────────────────────────────────────────────────────┤ \\
// │ Copyright © 2008-2012 Dmitry Baranovskiy (http://raphaeljs.com) │ \\
// │ Copyright © 2008-2012 Sencha Labs (http://sencha.com) │ \\
File morris.js
has 1622 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
var $, Morris, minutesSpecHelper, secondsSpecHelper,
__slice = [].slice,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
Function Grid
has 422 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Morris.Grid = (function(_super) {
__extends(Grid, _super);
function Grid(options) {
Function Line
has 383 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Morris.Line = (function(_super) {
__extends(Line, _super);
function Line(options) {
Consider simplifying this complex logical expression. Open
Open
if (params.opacity != null ||
params["stroke-width"] != null ||
params.fill != null ||
params.src != null ||
params.stroke != null ||
Function setFillAndStroke
has 248 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setFillAndStroke = function (o, params) {
var node = o.node,
attrs = o.attrs,
vis = node.style.visibility;
node.style.visibility = "hidden";
Function setFillAndStroke
has 212 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setFillAndStroke = function (o, params) {
// o.paper.canvas.style.display = "none";
o.attrs = o.attrs || {};
var node = o.node,
a = o.attrs,
Function Bar
has 206 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Morris.Bar = (function(_super) {
__extends(Bar, _super);
function Bar(options) {
Function runAnimation
has 194 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function runAnimation(anim, element, percent, status, totalOrigin, times) {
percent = toFloat(percent);
var params,
isInAnim,
isInAnimSet,
Function Donut
has 143 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Morris.Donut = (function(_super) {
__extends(Donut, _super);
Donut.prototype.defaults = {
Function addArrow
has 137 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addArrow = function (o, value, isEnd) {
if (o.type == "path") {
var values = Str(value).toLowerCase().split("-"),
p = o.paper,
se = isEnd ? "end" : "start",
Function setData
has 134 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Grid.prototype.setData = function(data, redraw) {
var e, idx, index, maxGoal, minGoal, ret, row, step, total, y, ykey, ymax, ymin, yval;
if (redraw == null) {
redraw = true;
}
Function animation
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
animation = function () {
var Now = +new Date,
l = 0;
for (; l < animationElements.length; l++) {
var e = animationElements[l];
Function _path2curve
has 109 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
path2curve = R._path2curve = cacher(function (path, path2) {
var pth = !path2 && paths(path);
if (!path2 && pth.curve) {
return pathClone(pth.curve);
}
Function _pathToAbsolute
has 95 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
pathToAbsolute = R._pathToAbsolute = function (pathArray) {
var pth = paths(pathArray);
if (pth.abs) {
return pathClone(pth.abs);
}
Function Area
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Morris.Area = (function(_super) {
var areaDefaults;
__extends(Area, _super);
Function _extractTransform
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
extractTransform = R._extractTransform = function (el, tstr) {
if (tstr == null) {
return el._.transform;
}
tstr = Str(tstr).replace(/\.{3}|\u2026/g, el._.transform || E);
Function a2c
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
a2c = function (x1, y1, rx, ry, angle, large_arc_flag, sweep_flag, x2, y2, recursive) {
// for more information of where this math came from visit:
// http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes
var _120 = PI * 120 / 180,
rad = PI / 180 * (+angle || 0),
Function DonutSegment
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Morris.DonutSegment = (function(_super) {
__extends(DonutSegment, _super);
function DonutSegment(cx, cy, inner, outer, p0, p1, color, backgroundColor, index, raphael) {
Function addGradientFill
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addGradientFill = function (element, gradient) {
var type = "linear",
id = element.id + gradient,
fx = .5, fy = .5,
o = element.node,