MCPcopy Index your code
hub / github.com/csev/py4e / updateLine

Function updateLine

tools/pythonauto/static/codemirror/codemirror.js:4392–4401  ·  view source on GitHub ↗
(line, text, markedSpans, estimateHeight)

Source from the content-addressed store, hash-verified

4390 Line.prototype.lineNo = function() { return lineNo(this); };
4391
4392 function updateLine(line, text, markedSpans, estimateHeight) {
4393 line.text = text;
4394 if (line.stateAfter) line.stateAfter = null;
4395 if (line.styles) line.styles = null;
4396 if (line.order != null) line.order = null;
4397 detachMarkedSpans(line);
4398 attachMarkedSpans(line, markedSpans);
4399 var estHeight = estimateHeight ? estimateHeight(line) : 1;
4400 if (estHeight != line.height) updateLineHeight(line, estHeight);
4401 }
4402
4403 function cleanUpLine(line) {
4404 line.parent = null;

Callers 1

updateFunction · 0.70

Calls 4

detachMarkedSpansFunction · 0.70
attachMarkedSpansFunction · 0.70
estimateHeightFunction · 0.70
updateLineHeightFunction · 0.70

Tested by

no test coverage detected