MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / updateLineHeight

Function updateLineHeight

lib/web/CodeMirror/src/line/utils_line.js:40–43  ·  view source on GitHub ↗
(line, height)

Source from the content-addressed store, hash-verified

38// Update the height of a line, propagating the height change
39// upwards to parent nodes.
40export 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.

Callers 9

updateHeightsInViewportFunction · 0.90
estimateLineHeightsFunction · 0.90
clearMethod · 0.90
changedMethod · 0.90
markTextFunction · 0.90
clearMethod · 0.90
changedMethod · 0.90
addLineWidgetFunction · 0.90
updateLineFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected