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

Function mouseout

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

Source from the content-addressed store, hash-verified

246 }
247
248 function mouseout(d) {
249
250 d3.select(this).select("rect")
251 .attr("x", function(d) { return -nodeSize/2; })
252 .attr("y", function(d) { return -nodeSize/2; })
253 .attr("width", function(d) { return nodeSize; })
254 .attr("height", function(d) { return nodeSize; });
255
256 d.iframe
257 .classed("hover", false)
258 .style("z-index", 2)
259 .style("border-width", "10px")
260 .style("transform", function(d) { return "translate(-50%,-50%) scale(.2)"; })
261 .style("-webkit-transform", function(d) { return "translate(-50%,-50%) scale(.2)"; })
262 .style("-moz-transform", function(d) { return "translate(-50%,-50%) scale(.2)"; });
263 }
264
265 function appendIframe(d) {
266 d.iframe = sel.select(".svg-container")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected