radar_parlamentar/static/files/codes/js/d3.js
File d3.js
has 3935 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function(){if (!Date.now) Date.now = function() {
return +new Date;
};
try {
document.createElement("div").style.setProperty("opacity", 0, "");
Function axis
has 146 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.svg.axis = function() {
var scale = d3.scale.linear(),
orient = "bottom",
tickMajorSize = 6,
tickMinorSize = 6,
Function brush
has 137 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.svg.brush = function() {
var event = d3.dispatch("brushstart", "brush", "brushend"),
x, // x-scale, optional
y, // y-scale, optional
extent = [[0, 0], [0, 0]]; // [x0, y0], [x1, y1]
Function axis
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function axis(selection) {
selection.each(function(d, i, j) {
var g = d3.select(this);
// If selection is a transition, create subtransitions.
Function data
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3_selectionPrototype.data = function(data, join) {
var enter = [],
update = [],
exit = [];
Function bind
has 72 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),
Function d3_transition
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_transition(groups, id, time) {
d3_arraySubclass(groups, d3_transitionPrototype);
var tweens = {},
event = d3.dispatch("start", "end"),
Function arc
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.svg.arc = function() {
var innerRadius = d3_svg_arcInnerRadius,
outerRadius = d3_svg_arcOuterRadius,
startAngle = d3_svg_arcStartAngle,
endAngle = d3_svg_arcEndAngle;
Function nest
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.nest = function() {
var nest = {},
keys = [],
sortKeys = [],
sortValues,
Function chord
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.svg.chord = function() {
var source = d3_svg_chordSource,
target = d3_svg_chordTarget,
radius = d3_svg_chordRadius,
startAngle = d3_svg_arcStartAngle,
Function d3_scale_ordinal
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_scale_ordinal(domain, ranger) {
var index,
range,
rangeBand;
Function interpolateString
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.interpolateString = function(a, b) {
var m, // current match
i, // current index
j, // current index (for coallescing)
s0 = 0, // start index of current string prefix
Function d3_svg_area
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_svg_area(projection) {
var x0 = d3_svg_lineX,
x1 = d3_svg_lineX,
y0 = 0,
y1 = d3_svg_lineY,
Function zoom
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.behavior.zoom = function() {
var xyz = [0, 0, 0],
event = d3.dispatch("zoom"),
extent = d3_behavior_zoomInfiniteExtent;
Function d3_scale_log
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_scale_log(linear, log) {
var pow = log.pow;
function scale(x) {
return linear(log(x));
Function d3_scale_linear
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_scale_linear(domain, range, interpolate, clamp) {
var output,
input;
function rescale() {
Function format
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.format = function(specifier) {
var match = d3_format_re.exec(specifier),
fill = match[1] || " ",
sign = match[3] || "",
zfill = match[5],
Function interpolateTransform
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.interpolateTransform = function(a, b) {
var s = [], // string constants and placeholders
q = [], // number interpolators
n,
A = d3.transform(a),
Function d3_rgb_parse
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_rgb_parse(format, rgb, hsl) {
var r = 0, // red channel; int in [0, 255]
g = 0, // green channel; int in [0, 255]
b = 0, // blue channel; int in [0, 255]
m1, // CSS color specification match
Function d3_svg_lineHermite
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_svg_lineHermite(points, tangents) {
if (tangents.length < 1
|| (points.length != tangents.length
&& points.length != tangents.length + 2)) {
return d3_svg_lineLinear(points);
Function d3_selection_classed
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_selection_classed(name, value) {
var re = new RegExp("(^|\\s+)" + d3.requote(name) + "(\\s+|$)", "g");
// If no value is specified, return the first value.
if (arguments.length < 2) {
Function drag
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.behavior.drag = function() {
var event = d3.dispatch("drag", "dragstart", "dragend"),
origin = null;
function drag() {
Function brush
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function brush(g) {
var resizes = x && y ? ["n", "e", "s", "w", "nw", "ne", "se", "sw"]
: x ? ["e", "w"]
: y ? ["n", "s"]
: [];
Function arc
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function arc() {
var r0 = innerRadius.apply(this, arguments),
r1 = outerRadius.apply(this, arguments),
a0 = startAngle.apply(this, arguments) + d3_svg_arcOffset,
a1 = endAngle.apply(this, arguments) + d3_svg_arcOffset,
Function attr
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3_selectionPrototype.attr = function(name, value) {
name = d3.ns.qualify(name);
// If no value is specified, return the first value.
if (arguments.length < 2) {
Function d3_scale_pow
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_scale_pow(linear, exponent) {
var powp = d3_scale_powPow(exponent),
powb = d3_scale_powPow(1 / exponent);
function scale(x) {
Function d3_scale_quantile
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_scale_quantile(domain, range) {
var thresholds;
function rescale() {
var k = 0,
Function d3_svg_lineMonotoneTangents
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_svg_lineMonotoneTangents(points) {
var tangents = [],
d,
a,
b,
Function timer
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.timer = function(callback, delay, then) {
var found = false,
t0,
t1 = d3_timer_queue;
Function d3_svg_line
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_svg_line(projection) {
var x = d3_svg_lineX,
y = d3_svg_lineY,
interpolate = "linear",
interpolator = d3_svg_lineInterpolators[interpolate],
Function extent
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
brush.extent = function(z) {
var x0, x1, y0, y1, t;
// Invert the pixel extent to data-space.
if (!arguments.length) {
Function diagonal
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.svg.diagonal = function() {
var source = d3_svg_chordSource,
target = d3_svg_chordTarget,
projection = d3_svg_diagonalProjection;
Function d3_svg_brushMove
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_svg_brushMove() {
if (d3_svg_brushOffset) {
var mouse = d3.svg.mouse(d3_svg_brushTarget),
g = d3.select(d3_svg_brushTarget);
Function d3_behavior_zoomTo
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_behavior_zoomTo(z, x0, x1) {
z = d3_behavior_zoomExtentClamp(z, 2);
var j = Math.pow(2, d3_behavior_zoomXyz[2]),
k = Math.pow(2, z),
K = Math.pow(2, (d3_behavior_zoomXyz[2] = z) - x1[2]),
Avoid deeply nested control flow statements. Open
Open
for (j = i + 1; j < n; ++j) q[j].i--;
Avoid deeply nested control flow statements. Open
Open
for (j = i + 1; j < n; ++j) q[j].i -= 2;
Avoid deeply nested control flow statements. Open
Open
for (j = i + 1; j < n; ++j) q[j].i--;
TODO found Open
Open
// TODO remove(selector)?
- Exclude checks
TODO found Open
Open
// TODO selectAll(function)
- Exclude checks
TODO found Open
Open
// TODO insert(function, string)?
- Exclude checks
TODO found Open
Open
// TODO append(node)?
- Exclude checks
TODO found Open
Open
// TODO insert(function, function)?
- Exclude checks
TODO found Open
Open
// TODO select(function)
- Exclude checks
TODO found Open
Open
// TODO Track touch points by identifier.
- Exclude checks
TODO found Open
Open
// TODO append(function)?
- Exclude checks
TODO found Open
Open
// TODO insert(node, function)?
- Exclude checks
TODO found Open
Open
// TODO fast singleton implementation!
- Exclude checks
TODO found Open
Open
// TODO Allow control point to be customized.
- Exclude checks
TODO found Open
Open
// TODO data(null) for clearing data?
- Exclude checks
TODO found Open
Open
// TODO align
- Exclude checks
TODO found Open
Open
fill = "0"; // TODO align = "=";
- Exclude checks
TODO found Open
Open
// TODO remove(node)?
- Exclude checks
TODO found Open
Open
// TODO remove(function)?
- Exclude checks
TODO found Open
Open
// TODO The `this` argument probably shouldn't be the first argument to the
- Exclude checks
TODO found Open
Open
// TODO cross-diagonal?
- Exclude checks
TODO found Open
Open
// TODO unbind zoom behavior?
- Exclude checks