MCPcopy Create free account
hub / github.com/idank/explainshell / redraw

Function redraw

explainshell/web/static/js/d3.v3.js:7604–7608  ·  view source on GitHub ↗
(g)

Source from the content-addressed store, hash-verified

7602 });
7603 }
7604 function redraw(g) {
7605 g.selectAll(".resize").attr("transform", function(d) {
7606 return "translate(" + extent[+/e$/.test(d)][0] + "," + extent[+/^s/.test(d)][1] + ")";
7607 });
7608 }
7609 function redrawX(g) {
7610 g.select(".extent").attr("x", extent[0][0]);
7611 g.selectAll(".extent,.n>rect,.s>rect").attr("width", extent[1][0] - extent[0][0]);

Callers 2

brushFunction · 0.85
brushmoveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected