(line, height)
| 38 | // Update the height of a line, propagating the height change |
| 39 | // upwards to parent nodes. |
| 40 | export function updateLineHeight(line, height) { |
| 41 | let diff = height - line.height |
| 42 | if (diff) for (let n = line; n; n = n.parent) n.height += diff |
| 43 | } |
| 44 | |
| 45 | // Given a line object, find its line number by walking up through |
| 46 | // its parent links. |
no outgoing calls
no test coverage detected