MCPcopy
hub / github.com/dhotson/springy / getTextHeight

Function getTextHeight

springyui.js:143–147  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

141 };
142
143 var getTextHeight = function(node) {
144 return 16;
145 // In a more modular world, this would actually read the font size, but I think leaving it a constant is sufficient for now.
146 // If you change the font size, I'd adjust this too.
147 };
148
149 var getImageWidth = function(node) {
150 var width = (node.data.image.width !== undefined) ? node.data.image.width : nodeImages[node.data.image.src].object.width;

Callers 1

springyui.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected