MCPcopy Create free account
hub / github.com/BloombergGraphics/whatiscode / mouseover

Function mouseover

modules/tree/tree.js:231–246  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

229 }
230
231 function mouseover(d) {
232
233 d3.select(this).select("rect")
234 .attr("x", function(d) { return hoverCoef * -nodeSize/2; })
235 .attr("y", function(d) { return hoverCoef * -nodeSize/2; })
236 .attr("width", function(d) { return hoverCoef * nodeSize; })
237 .attr("height", function(d) { return hoverCoef * nodeSize; });
238
239 d.iframe
240 .classed("hover", true)
241 .style("z-index", 3)
242 .style("border-width", "2px")
243 .style("transform", function(d) { return "translate(-50%,-50%) scale(" + (hoverCoef * .2) + ")"; })
244 .style("-webkit-transform", function(d) { return "translate(-50%,-50%) scale(" + (hoverCoef * .2) + ")"; })
245 .style("-moz-transform", function(d) { return "translate(-50%,-50%) scale(" + (hoverCoef * .2) + ")"; });
246 }
247
248 function mouseout(d) {
249

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected