Showing 840 of 1,637 total issues
Function _refreshValue
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_refreshValue: function() {
var lastValPercent, valPercent, value, valueMin, valueMax,
oRange = this.options.range,
o = this.options,
that = this,
Function d3_geom_voronoiAddBeach
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_geom_voronoiAddBeach(site) {
var x = site.x, directrix = site.y, lArc, rArc, dxl, dxr, node = d3_geom_voronoiBeaches._;
while (node) {
dxl = d3_geom_voronoiLeftBreakPoint(node, directrix) - x;
if (dxl > ε) node = node.L; else {
Function drawXAxis
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Line.prototype.drawXAxis = function() {
var drawLabel, l, labels, prevAngleMargin, prevLabelMargin, row, ypos, _i, _len, _results,
_this = this;
ypos = this.bottom + this.options.padding / 2;
prevLabelMargin = null;
Function event
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
brush.event = function(g) {
g.each(function() {
var event_ = event.of(this, arguments), extent1 = {
x: xExtent,
y: yExtent,
Function d3_geom_clipLine
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_geom_clipLine(x0, y0, x1, y1) {
return function(line) {
var a = line.a, b = line.b, ax = a.x, ay = a.y, bx = b.x, by = b.y, t0 = 0, t1 = 1, dx = bx - ax, dy = by - ay, r;
r = x0 - ax;
if (!dx && r > 0) return;
Function Time
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Rickshaw.Graph.Axis.Time = function(args) {
var self = this;
this.graph = args.graph;
Function _fnSetObjectDataFn
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnSetObjectDataFn( mSource )
{
if ( mSource === null )
{
/* Nothing to do when the data source is null */
Function bind
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function bind(group, groupData) {
var i, n = group.length, m = groupData.length, n0 = Math.min(n, m), updateNodes = new Array(m), enterNodes = new Array(m), exitNodes = new Array(n), node, nodeData;
if (key) {
var nodeByKeyValue = new d3_Map(), dataByKeyValue = new d3_Map(), keyValues = [], keyValue;
for (i = -1; ++i < n; ) {
Function drag
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.behavior.drag = function() {
var event = d3_eventDispatch(drag, "drag", "dragstart", "dragend"), origin = null, mousedown = dragstart(d3_noop, d3.mouse, "mousemove", "mouseup"), touchstart = dragstart(touchid, touchposition, "touchmove", "touchend");
function drag() {
this.on("mousedown.drag", mousedown).on("touchstart.drag", touchstart);
}
Function interPathHelper
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function interPathHelper(path1, path2, justCount) {
path1 = R._path2curve(path1);
path2 = R._path2curve(path2);
var x1, y1, x2, y2, x1m, y1m, x2m, y2m, bez1, bez2,
res = justCount ? 0 : [];
Function remove
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
remove: function( elem, types, handler, selector, mappedTypes ) {
var j, handleObj, tmp,
origCount, t, events,
special, handlers, type,
namespaces, origType,
Function animateClass
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.animateClass = function( value, duration, easing, callback ) {
var o = $.speed( duration, easing, callback );
return this.queue( function() {
var animated = $( this ),
Function fnInnerSorting
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var fnInnerSorting = function () {
var iColumn, iNextSort;
/* If the shift key is pressed then we are multiple column sorting */
if ( e.shiftKey )
Consider simplifying this complex logical expression. Open
Open
if (params[has](att)) {
if (!R._availableAttrs[has](att)) {
continue;
}
var value = params[att];
Function CubicBezierAtTime
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function CubicBezierAtTime(t, p1x, p1y, p2x, p2y, duration) {
var cx = 3 * p1x,
bx = 3 * (p2x - p1x) - cx,
ax = 1 - cx - bx,
cy = 3 * p1y,
Function unbind
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
eve.off = eve.unbind = function (name, f) {
var names = name.split(separator),
e,
key,
splice,
Function d3_interpolateTransform
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_interpolateTransform(a, b) {
var s = [], q = [], n, A = d3.transform(a), B = d3.transform(b), ta = A.translate, tb = B.translate, ra = A.rotate, rb = B.rotate, wa = A.skew, wb = B.skew, ka = A.scale, kb = B.scale;
if (ta[0] != tb[0] || ta[1] != tb[1]) {
s.push("translate(", null, ",", null, ")");
q.push({
Function Hover
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Morris.Hover = (function() {
Hover.defaults = {
"class": 'morris-hover morris-default-style'
};
Function d3_transitionNode
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_transitionNode(node, i, id, inherit) {
var lock = node.__transition__ || (node.__transition__ = {
active: 0,
count: 0
}), transition = lock[id];
Function d3_scale_linear
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_scale_linear(domain, range, interpolate, clamp) {
var output, input;
function rescale() {
var linear = Math.min(domain.length, range.length) > 2 ? d3_scale_polylinear : d3_scale_bilinear, uninterpolate = clamp ? d3_uninterpolateClamp : d3_uninterpolateNumber;
output = linear(domain, range, uninterpolate, interpolate);