diff options
author | 2019-09-03 10:17:22 +0800 | |
---|---|---|
committer | 2019-09-03 10:18:08 +0800 | |
commit | 3c3840524ee11c1385045e9801918bcb05b71fb5 (patch) | |
tree | a159deba4778f796d084b2e3b8d75444244f086d /usecaseui-common/src/main/webapp/app/fusion/external/d3/js/fisheye.js | |
parent | 19abe2af19ba49073949f8254aec897afe7bb303 (diff) |
feat: delete useless modules and update tomcat version
Change-Id: I38d0c0b65cf210074c7222a535f1b3d7c150f53d
Issue-ID: USECASEUI-307
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-common/src/main/webapp/app/fusion/external/d3/js/fisheye.js')
-rw-r--r-- | usecaseui-common/src/main/webapp/app/fusion/external/d3/js/fisheye.js | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/usecaseui-common/src/main/webapp/app/fusion/external/d3/js/fisheye.js b/usecaseui-common/src/main/webapp/app/fusion/external/d3/js/fisheye.js deleted file mode 100644 index e1addd7b..00000000 --- a/usecaseui-common/src/main/webapp/app/fusion/external/d3/js/fisheye.js +++ /dev/null @@ -1,86 +0,0 @@ -(function() { - d3.fisheye = { - scale: function(scaleType) { - return d3_fisheye_scale(scaleType(), 3, 0); - }, - circular: function() { - var radius = 200, - distortion = 2, - k0, - k1, - focus = [0, 0]; - - function fisheye(d) { - var dx = d.x - focus[0], - dy = d.y - focus[1], - dd = Math.sqrt(dx * dx + dy * dy); - if (!dd || dd >= radius) return {x: d.x, y: d.y, z: 1}; - var k = k0 * (1 - Math.exp(-dd * k1)) / dd * .75 + .25; - return {x: focus[0] + dx * k, y: focus[1] + dy * k, z: Math.min(k, 10)}; - } - - function rescale() { - k0 = Math.exp(distortion); - k0 = k0 / (k0 - 1) * radius; - k1 = distortion / radius; - return fisheye; - } - - fisheye.radius = function(_) { - if (!arguments.length) return radius; - radius = +_; - return rescale(); - }; - - fisheye.distortion = function(_) { - if (!arguments.length) return distortion; - distortion = +_; - return rescale(); - }; - - fisheye.focus = function(_) { - if (!arguments.length) return focus; - focus = _; - return fisheye; - }; - - return rescale(); - } - }; - - function d3_fisheye_scale(scale, d, a) { - - function fisheye(_) { - var x = scale(_), - left = x < a, - v, - range = d3.extent(scale.range()), - min = range[0], - max = range[1], - m = left ? a - min : max - a; - if (m == 0) m = max - min; - return (left ? -1 : 1) * m * (d + 1) / (d + (m / Math.abs(x - a))) + a; - } - - fisheye.distortion = function(_) { - if (!arguments.length) return d; - d = +_; - return fisheye; - }; - - fisheye.focus = function(_) { - if (!arguments.length) return a; - a = +_; - return fisheye; - }; - - fisheye.copy = function() { - return d3_fisheye_scale(scale.copy(), d, a); - }; - - fisheye.nice = scale.nice; - fisheye.ticks = scale.ticks; - fisheye.tickFormat = scale.tickFormat; - return d3.rebind(fisheye, scale, "domain", "range"); - } -})(); |