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

Function redrawKeyboard

modules/keyboard/keyboard.js:179–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177
178 d3.select(window).on('resize.keyboard', redrawKeyboard)
179 function redrawKeyboard() {
180 xScale = d3.scale.linear().range(["0px", (module.sel.node().offsetWidth / keyboardWidth)+"px"]);
181 keyboard.selectAll(".key")
182 .style("width", _.compose(xScale, ƒ('dx')))
183 .style("height", xScale.range()[1]);
184 }
185
186 function typeKey(e) {
187 // Get the key code

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected