Showing 207 of 537 total issues
Function index
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function index() {
var radius = null,
dx = 1,
dy = 1,
padding = constantZero;
Function keydowned
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function keydowned() {
switch (exports.event.keyCode) {
case 16: { // SHIFT
shifting = signX && signY;
break;
Function rotationPhiGamma
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function rotationPhiGamma(deltaPhi, deltaGamma) {
var cosDeltaPhi = cos$1(deltaPhi),
sinDeltaPhi = sin$1(deltaPhi),
cosDeltaGamma = cos$1(deltaGamma),
sinDeltaGamma = sin$1(deltaGamma);
Function apply
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function apply(quad, x1, _, x2) {
if (!quad.value) return true;
var x = quad.x - node.x,
y = quad.y - node.y,
Function bounds
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function bounds(feature) {
var i, n, a, b, merged, deltaMax, delta;
if (deltaSum) deltaSum.reset();
else deltaSum = adder();
Function exports
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(svg, getRandom) {
var width = svg.attr('width');
var height = svg.attr('height');
// Find out how many circles.
var numCirlces = getRandom(Math.floor(width / 48)) + 1;
Function variance
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function variance(array, f) {
var n = array.length,
m = 0,
a,
d,
Function 5
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],5:[function(require,module,exports){
'use strict';
var d3 = require('d3');
var seed = require('seed-random');
Function exports
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(svg, getRandom) {
var width = svg.attr('width');
var height = svg.attr('height');
// Find out how many circles.
var numCirlces = getRandom(Math.floor(width / 48)) + 1;
Function center$1
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function center$1(x, y) {
var nodes;
if (x == null) x = 0;
if (y == null) y = 0;
Function tickFormat
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tickFormat(domain, count, specifier) {
var start = domain[0],
stop = domain[domain.length - 1],
step = tickStep(start, stop, count == null ? 10 : count),
precision;
Function custom
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var resquarify = (function custom(ratio) {
function resquarify(parent, x0, y0, x1, y1) {
if ((rows = parent._squarify) && (rows.ratio === ratio)) {
var rows,
Function partition
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function partition(i, j, value, x0, y0, x1, y1) {
if (i >= j - 1) {
var node = nodes[i];
node.x0 = x0, node.y0 = y0;
node.x1 = x1, node.y1 = y1;
Function intersect
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function intersect(x0, y0, x1, y1, x2, y2, x3, y3) {
Function cornerTangents
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
Function partition
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function partition(i, j, value, x0, y0, x1, y1) {
Function bindKey
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function bindKey(parent, group, enter, update, exit, data, key) {
Function bezierCurveTo
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
bezierCurveTo: function(x1, y1, x2, y2, x, y) {
Function decompose
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function decompose(a, b, c, d, e, f) {
Function squarifyRatio
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function squarifyRatio(ratio, parent, x0, y0, x1, y1) {