MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / makeLine

Function makeLine

static/js/codemirror/codemirror.js:3830–3835  ·  view source on GitHub ↗
(text, markedSpans, estimateHeight)

Source from the content-addressed store, hash-verified

3828 // Line objects. These hold state related to a line, including
3829 // highlighting info (the styles array).
3830 function makeLine(text, markedSpans, estimateHeight) {
3831 var line = {text: text};
3832 attachMarkedSpans(line, markedSpans);
3833 line.height = estimateHeight ? estimateHeight(line) : 1;
3834 return line;
3835 }
3836
3837 function updateLine(line, text, markedSpans, estimateHeight) {
3838 line.text = text;

Callers 2

updateDocFunction · 0.85
codemirror.jsFile · 0.85

Calls 2

attachMarkedSpansFunction · 0.85
estimateHeightFunction · 0.85

Tested by

no test coverage detected