MCPcopy Index your code
hub / github.com/witheve/Eve / updateLine

Function updateLine

src/codemirror.js:6748–6757  ·  view source on GitHub ↗
(line, text, markedSpans, estimateHeight)

Source from the content-addressed store, hash-verified

6746 // invalidates cached information and tries to re-estimate the
6747 // line's height.
6748 function updateLine(line, text, markedSpans, estimateHeight) {
6749 line.text = text;
6750 if (line.stateAfter) line.stateAfter = null;
6751 if (line.styles) line.styles = null;
6752 if (line.order != null) line.order = null;
6753 detachMarkedSpans(line);
6754 attachMarkedSpans(line, markedSpans);
6755 var estHeight = estimateHeight ? estimateHeight(line) : 1;
6756 if (estHeight != line.height) updateLineHeight(line, estHeight);
6757 }
6758
6759 // Detach a line from the document tree and its markers.
6760 function cleanUpLine(line) {

Callers 1

updateFunction · 0.85

Calls 4

detachMarkedSpansFunction · 0.85
attachMarkedSpansFunction · 0.85
estimateHeightFunction · 0.85
updateLineHeightFunction · 0.85

Tested by

no test coverage detected