From 15dde408db57009e1e4e26d969b9b3e6c1e0c255 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Fri, 4 Mar 2016 19:10:04 +0100 Subject: nms: Remove redundant files speedometer probably doesn't work now anyway until it's heavily updated. --- .../speedometer/c3-master/src/api.show.js | 50 ---------------------- 1 file changed, 50 deletions(-) delete mode 100644 web/nms.gathering.org/speedometer/c3-master/src/api.show.js (limited to 'web/nms.gathering.org/speedometer/c3-master/src/api.show.js') diff --git a/web/nms.gathering.org/speedometer/c3-master/src/api.show.js b/web/nms.gathering.org/speedometer/c3-master/src/api.show.js deleted file mode 100644 index 08e99e1..0000000 --- a/web/nms.gathering.org/speedometer/c3-master/src/api.show.js +++ /dev/null @@ -1,50 +0,0 @@ -c3_chart_fn.show = function (targetIds, options) { - var $$ = this.internal, targets; - - targetIds = $$.mapToTargetIds(targetIds); - options = options || {}; - - $$.removeHiddenTargetIds(targetIds); - targets = $$.svg.selectAll($$.selectorTargets(targetIds)); - - targets.transition() - .style('opacity', 1, 'important') - .call($$.endall, function () { - targets.style('opacity', null).style('opacity', 1); - }); - - if (options.withLegend) { - $$.showLegend(targetIds); - } - - $$.redraw({withUpdateOrgXDomain: true, withUpdateXDomain: true, withLegend: true}); -}; - -c3_chart_fn.hide = function (targetIds, options) { - var $$ = this.internal, targets; - - targetIds = $$.mapToTargetIds(targetIds); - options = options || {}; - - $$.addHiddenTargetIds(targetIds); - targets = $$.svg.selectAll($$.selectorTargets(targetIds)); - - targets.transition() - .style('opacity', 0, 'important') - .call($$.endall, function () { - targets.style('opacity', null).style('opacity', 0); - }); - - if (options.withLegend) { - $$.hideLegend(targetIds); - } - - $$.redraw({withUpdateOrgXDomain: true, withUpdateXDomain: true, withLegend: true}); -}; - -c3_chart_fn.toggle = function (targetIds, options) { - var that = this, $$ = this.internal; - $$.mapToTargetIds(targetIds).forEach(function (targetId) { - $$.isTargetToShow(targetId) ? that.hide(targetId, options) : that.show(targetId, options); - }); -}; -- cgit v1.2.3