MCPcopy Index your code
hub / github.com/TruthHun/BookStack / buildLineElement

Function buildLineElement

static/mergely/lib/codemirror.js:1021–1031  ·  view source on GitHub ↗
(cm, lineView, lineN, dims)

Source from the content-addressed store, hash-verified

1019
1020 // Build a line's DOM representation from scratch
1021 function buildLineElement(cm, lineView, lineN, dims) {
1022 var built = getLineContent(cm, lineView);
1023 lineView.text = lineView.node = built.pre;
1024 if (built.bgClass) lineView.bgClass = built.bgClass;
1025 if (built.textClass) lineView.textClass = built.textClass;
1026
1027 updateLineClasses(lineView);
1028 updateLineGutter(cm, lineView, lineN, dims);
1029 insertLineWidgets(cm, lineView, dims);
1030 return lineView.node;
1031 }
1032
1033 // A lineView may contain multiple logical lines (when merged by
1034 // collapsed spans). The widgets for all of them need to be drawn.

Callers 1

patchDisplayFunction · 0.70

Calls 4

getLineContentFunction · 0.70
updateLineClassesFunction · 0.70
updateLineGutterFunction · 0.70
insertLineWidgetsFunction · 0.70

Tested by

no test coverage detected