MCPcopy Index your code
hub / github.com/plotly/plotly.js / handleSlicesExit

Function handleSlicesExit

src/traces/treemap/plot_one.js:466–488  ·  view source on GitHub ↗
(slices, onPathbar, refRect, size, pathSlice)

Source from the content-addressed store, hash-verified

464 };
465
466 var handleSlicesExit = function(slices, onPathbar, refRect, size, pathSlice) {
467 var width = size[0];
468 var height = size[1];
469
470 if(hasTransition) {
471 slices.exit().transition()
472 .each(function() {
473 var sliceTop = d3.select(this);
474
475 var slicePath = sliceTop.select('path.surface');
476 slicePath.transition().attrTween('d', function(pt2) {
477 var interp = makeExitSliceInterpolator(pt2, onPathbar, refRect, [width, height]);
478 return function(t) { return pathSlice(interp(t)); };
479 });
480
481 var sliceTextGroup = sliceTop.select('g.slicetext');
482 sliceTextGroup.attr('opacity', 0);
483 })
484 .remove();
485 } else {
486 slices.exit().remove();
487 }
488 };
489
490 var strTransform = function(d) {
491 var transform = d.transform;

Callers 3

draw_ancestors.jsFile · 0.85

Calls 2

pathSliceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…