(node)
| 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; |