mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
config redirect
This commit is contained in:
192
node_modules/d3-axis/dist/d3-axis.js
generated
vendored
Normal file
192
node_modules/d3-axis/dist/d3-axis.js
generated
vendored
Normal file
@@ -0,0 +1,192 @@
|
||||
// https://d3js.org/d3-axis/ v3.0.0 Copyright 2010-2021 Mike Bostock
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
||||
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.d3 = global.d3 || {}));
|
||||
}(this, (function (exports) { 'use strict';
|
||||
|
||||
function identity(x) {
|
||||
return x;
|
||||
}
|
||||
|
||||
var top = 1,
|
||||
right = 2,
|
||||
bottom = 3,
|
||||
left = 4,
|
||||
epsilon = 1e-6;
|
||||
|
||||
function translateX(x) {
|
||||
return "translate(" + x + ",0)";
|
||||
}
|
||||
|
||||
function translateY(y) {
|
||||
return "translate(0," + y + ")";
|
||||
}
|
||||
|
||||
function number(scale) {
|
||||
return d => +scale(d);
|
||||
}
|
||||
|
||||
function center(scale, offset) {
|
||||
offset = Math.max(0, scale.bandwidth() - offset * 2) / 2;
|
||||
if (scale.round()) offset = Math.round(offset);
|
||||
return d => +scale(d) + offset;
|
||||
}
|
||||
|
||||
function entering() {
|
||||
return !this.__axis;
|
||||
}
|
||||
|
||||
function axis(orient, scale) {
|
||||
var tickArguments = [],
|
||||
tickValues = null,
|
||||
tickFormat = null,
|
||||
tickSizeInner = 6,
|
||||
tickSizeOuter = 6,
|
||||
tickPadding = 3,
|
||||
offset = typeof window !== "undefined" && window.devicePixelRatio > 1 ? 0 : 0.5,
|
||||
k = orient === top || orient === left ? -1 : 1,
|
||||
x = orient === left || orient === right ? "x" : "y",
|
||||
transform = orient === top || orient === bottom ? translateX : translateY;
|
||||
|
||||
function axis(context) {
|
||||
var values = tickValues == null ? (scale.ticks ? scale.ticks.apply(scale, tickArguments) : scale.domain()) : tickValues,
|
||||
format = tickFormat == null ? (scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments) : identity) : tickFormat,
|
||||
spacing = Math.max(tickSizeInner, 0) + tickPadding,
|
||||
range = scale.range(),
|
||||
range0 = +range[0] + offset,
|
||||
range1 = +range[range.length - 1] + offset,
|
||||
position = (scale.bandwidth ? center : number)(scale.copy(), offset),
|
||||
selection = context.selection ? context.selection() : context,
|
||||
path = selection.selectAll(".domain").data([null]),
|
||||
tick = selection.selectAll(".tick").data(values, scale).order(),
|
||||
tickExit = tick.exit(),
|
||||
tickEnter = tick.enter().append("g").attr("class", "tick"),
|
||||
line = tick.select("line"),
|
||||
text = tick.select("text");
|
||||
|
||||
path = path.merge(path.enter().insert("path", ".tick")
|
||||
.attr("class", "domain")
|
||||
.attr("stroke", "currentColor"));
|
||||
|
||||
tick = tick.merge(tickEnter);
|
||||
|
||||
line = line.merge(tickEnter.append("line")
|
||||
.attr("stroke", "currentColor")
|
||||
.attr(x + "2", k * tickSizeInner));
|
||||
|
||||
text = text.merge(tickEnter.append("text")
|
||||
.attr("fill", "currentColor")
|
||||
.attr(x, k * spacing)
|
||||
.attr("dy", orient === top ? "0em" : orient === bottom ? "0.71em" : "0.32em"));
|
||||
|
||||
if (context !== selection) {
|
||||
path = path.transition(context);
|
||||
tick = tick.transition(context);
|
||||
line = line.transition(context);
|
||||
text = text.transition(context);
|
||||
|
||||
tickExit = tickExit.transition(context)
|
||||
.attr("opacity", epsilon)
|
||||
.attr("transform", function(d) { return isFinite(d = position(d)) ? transform(d + offset) : this.getAttribute("transform"); });
|
||||
|
||||
tickEnter
|
||||
.attr("opacity", epsilon)
|
||||
.attr("transform", function(d) { var p = this.parentNode.__axis; return transform((p && isFinite(p = p(d)) ? p : position(d)) + offset); });
|
||||
}
|
||||
|
||||
tickExit.remove();
|
||||
|
||||
path
|
||||
.attr("d", orient === left || orient === right
|
||||
? (tickSizeOuter ? "M" + k * tickSizeOuter + "," + range0 + "H" + offset + "V" + range1 + "H" + k * tickSizeOuter : "M" + offset + "," + range0 + "V" + range1)
|
||||
: (tickSizeOuter ? "M" + range0 + "," + k * tickSizeOuter + "V" + offset + "H" + range1 + "V" + k * tickSizeOuter : "M" + range0 + "," + offset + "H" + range1));
|
||||
|
||||
tick
|
||||
.attr("opacity", 1)
|
||||
.attr("transform", function(d) { return transform(position(d) + offset); });
|
||||
|
||||
line
|
||||
.attr(x + "2", k * tickSizeInner);
|
||||
|
||||
text
|
||||
.attr(x, k * spacing)
|
||||
.text(format);
|
||||
|
||||
selection.filter(entering)
|
||||
.attr("fill", "none")
|
||||
.attr("font-size", 10)
|
||||
.attr("font-family", "sans-serif")
|
||||
.attr("text-anchor", orient === right ? "start" : orient === left ? "end" : "middle");
|
||||
|
||||
selection
|
||||
.each(function() { this.__axis = position; });
|
||||
}
|
||||
|
||||
axis.scale = function(_) {
|
||||
return arguments.length ? (scale = _, axis) : scale;
|
||||
};
|
||||
|
||||
axis.ticks = function() {
|
||||
return tickArguments = Array.from(arguments), axis;
|
||||
};
|
||||
|
||||
axis.tickArguments = function(_) {
|
||||
return arguments.length ? (tickArguments = _ == null ? [] : Array.from(_), axis) : tickArguments.slice();
|
||||
};
|
||||
|
||||
axis.tickValues = function(_) {
|
||||
return arguments.length ? (tickValues = _ == null ? null : Array.from(_), axis) : tickValues && tickValues.slice();
|
||||
};
|
||||
|
||||
axis.tickFormat = function(_) {
|
||||
return arguments.length ? (tickFormat = _, axis) : tickFormat;
|
||||
};
|
||||
|
||||
axis.tickSize = function(_) {
|
||||
return arguments.length ? (tickSizeInner = tickSizeOuter = +_, axis) : tickSizeInner;
|
||||
};
|
||||
|
||||
axis.tickSizeInner = function(_) {
|
||||
return arguments.length ? (tickSizeInner = +_, axis) : tickSizeInner;
|
||||
};
|
||||
|
||||
axis.tickSizeOuter = function(_) {
|
||||
return arguments.length ? (tickSizeOuter = +_, axis) : tickSizeOuter;
|
||||
};
|
||||
|
||||
axis.tickPadding = function(_) {
|
||||
return arguments.length ? (tickPadding = +_, axis) : tickPadding;
|
||||
};
|
||||
|
||||
axis.offset = function(_) {
|
||||
return arguments.length ? (offset = +_, axis) : offset;
|
||||
};
|
||||
|
||||
return axis;
|
||||
}
|
||||
|
||||
function axisTop(scale) {
|
||||
return axis(top, scale);
|
||||
}
|
||||
|
||||
function axisRight(scale) {
|
||||
return axis(right, scale);
|
||||
}
|
||||
|
||||
function axisBottom(scale) {
|
||||
return axis(bottom, scale);
|
||||
}
|
||||
|
||||
function axisLeft(scale) {
|
||||
return axis(left, scale);
|
||||
}
|
||||
|
||||
exports.axisBottom = axisBottom;
|
||||
exports.axisLeft = axisLeft;
|
||||
exports.axisRight = axisRight;
|
||||
exports.axisTop = axisTop;
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
})));
|
||||
2
node_modules/d3-axis/dist/d3-axis.min.js
generated
vendored
Normal file
2
node_modules/d3-axis/dist/d3-axis.min.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
// https://d3js.org/d3-axis/ v3.0.0 Copyright 2010-2021 Mike Bostock
|
||||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).d3=t.d3||{})}(this,(function(t){"use strict";function n(t){return t}var e=1e-6;function r(t){return"translate("+t+",0)"}function i(t){return"translate(0,"+t+")"}function a(t){return n=>+t(n)}function o(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),e=>+t(e)+n}function u(){return!this.__axis}function c(t,c){var l=[],s=null,f=null,d=6,m=6,h=3,p="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,g=1===t||4===t?-1:1,x=4===t||2===t?"x":"y",y=1===t||3===t?r:i;function k(r){var i=null==s?c.ticks?c.ticks.apply(c,l):c.domain():s,k=null==f?c.tickFormat?c.tickFormat.apply(c,l):n:f,M=Math.max(d,0)+h,_=c.range(),b=+_[0]+p,v=+_[_.length-1]+p,A=(c.bandwidth?o:a)(c.copy(),p),w=r.selection?r.selection():r,F=w.selectAll(".domain").data([null]),V=w.selectAll(".tick").data(i,c).order(),z=V.exit(),H=V.enter().append("g").attr("class","tick"),C=V.select("line"),P=V.select("text");F=F.merge(F.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),V=V.merge(H),C=C.merge(H.append("line").attr("stroke","currentColor").attr(x+"2",g*d)),P=P.merge(H.append("text").attr("fill","currentColor").attr(x,g*M).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),r!==w&&(F=F.transition(r),V=V.transition(r),C=C.transition(r),P=P.transition(r),z=z.transition(r).attr("opacity",e).attr("transform",(function(t){return isFinite(t=A(t))?y(t+p):this.getAttribute("transform")})),H.attr("opacity",e).attr("transform",(function(t){var n=this.parentNode.__axis;return y((n&&isFinite(n=n(t))?n:A(t))+p)}))),z.remove(),F.attr("d",4===t||2===t?m?"M"+g*m+","+b+"H"+p+"V"+v+"H"+g*m:"M"+p+","+b+"V"+v:m?"M"+b+","+g*m+"V"+p+"H"+v+"V"+g*m:"M"+b+","+p+"H"+v),V.attr("opacity",1).attr("transform",(function(t){return y(A(t)+p)})),C.attr(x+"2",g*d),P.attr(x,g*M).text(k),w.filter(u).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),w.each((function(){this.__axis=A}))}return k.scale=function(t){return arguments.length?(c=t,k):c},k.ticks=function(){return l=Array.from(arguments),k},k.tickArguments=function(t){return arguments.length?(l=null==t?[]:Array.from(t),k):l.slice()},k.tickValues=function(t){return arguments.length?(s=null==t?null:Array.from(t),k):s&&s.slice()},k.tickFormat=function(t){return arguments.length?(f=t,k):f},k.tickSize=function(t){return arguments.length?(d=m=+t,k):d},k.tickSizeInner=function(t){return arguments.length?(d=+t,k):d},k.tickSizeOuter=function(t){return arguments.length?(m=+t,k):m},k.tickPadding=function(t){return arguments.length?(h=+t,k):h},k.offset=function(t){return arguments.length?(p=+t,k):p},k}t.axisBottom=function(t){return c(3,t)},t.axisLeft=function(t){return c(4,t)},t.axisRight=function(t){return c(2,t)},t.axisTop=function(t){return c(1,t)},Object.defineProperty(t,"__esModule",{value:!0})}));
|
||||
Reference in New Issue
Block a user