Showing 207 of 537 total issues
Function stack
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function stack() {
var keys = constant$1([]),
order = none$1,
offset = none,
value = stackValue;
Function interpolateZoom
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function interpolateZoom(p0, p1) {
var ux0 = p0[0], uy0 = p0[1], w0 = p0[2],
ux1 = p1[0], uy1 = p1[1], w1 = p1[2],
dx = ux1 - ux0,
dy = uy1 - uy0,
Function stratify
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function stratify(data) {
var d,
i,
n = data.length,
root,
Function Diagram
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Diagram(sites, extent) {
var site = sites.sort(lexicographic).pop(),
x,
y,
circle;
Function keyupped
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function keyupped() {
switch (exports.event.keyCode) {
case 16: { // SHIFT
if (shifting) {
lockX = lockY = shifting = false;
Function interpolateString
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function interpolateString(a, b) {
var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b
am, // current match in a
bm, // current match in b
bs, // string preceding current number in b, if any
Function apportion
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function apportion(v, w, ancestor) {
if (w) {
var vip = v,
vop = v,
vim = w,
Function binary
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function binary(parent, x0, y0, x1, y1) {
var nodes = parent.children,
i, n = nodes.length,
sum, sums = new Array(n + 1);
Function cornerTangents
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
var x01 = x0 - x1,
y01 = y0 - y1,
lo = (cw ? rc : -rc) / Math.sqrt(x01 * x01 + y01 * y01),
ox = lo * y01,
Function continuous
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function continuous(deinterpolate$$, reinterpolate) {
var domain = unit,
range = unit,
interpolate$$ = interpolate,
clamp = false,
Consider simplifying this complex logical expression. Open
Open
if (c = value.charCodeAt(i), (48 < c && c < 58)
|| (type === "x" && 96 < c && c < 103)
|| (type === "X" && 64 < c && c < 71)) {
valueNegative = true;
break;
Consider simplifying this complex logical expression. Open
Open
else if (x0 > x || x > x1 || y0 > y || y > y1) {
var z = x1 - x0,
node = this._root,
parent,
i;
Function 3
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"../helpers/colors":4}],3:[function(require,module,exports){
'use strict';
var getColor = require('../helpers/colors');
var d3 = require('d3');
Function voronoi
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function voronoi() {
var x = x$4,
y = y$4,
extent = null;
Function ticks
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
scale.ticks = function(count) {
var d = domain(),
u = d[0],
v = d[d.length - 1],
r;
Function quantize$1
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function quantize$1() {
var x0 = 0,
x1 = 1,
n = 1,
domain = [0.5],
Function start
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function start(elapsed) {
var i, j, n, o;
for (i in schedules) {
o = schedules[i];
Function area
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function area(data) {
var i,
j,
k,
n = data.length,
Function move
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
brush.move = function(group, selection) {
if (group.selection) {
group
.on("start.brush", function() { emitter(this, arguments).beforestart().start(); })
.on("interrupt.brush end.brush", function() { emitter(this, arguments).end(); })
Function bindKey
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function bindKey(parent, group, enter, update, exit, data, key) {
var i,
node,
nodeByKeyValue = {},
groupLength = group.length,