MCPcopy
hub / github.com/DHTMLX/gantt / buildLineElement

Function buildLineElement

samples/common/codehighlight/codemirror.js:2219–2229  ·  view source on GitHub ↗
(cm, lineView, lineN, dims)

Source from the content-addressed store, hash-verified

2217
2218 // Build a line's DOM representation from scratch
2219 function buildLineElement(cm, lineView, lineN, dims) {
2220 var built = getLineContent(cm, lineView);
2221 lineView.text = lineView.node = built.pre;
2222 if (built.bgClass) { lineView.bgClass = built.bgClass; }
2223 if (built.textClass) { lineView.textClass = built.textClass; }
2224
2225 updateLineClasses(cm, lineView);
2226 updateLineGutter(cm, lineView, lineN, dims);
2227 insertLineWidgets(cm, lineView, dims);
2228 return lineView.node
2229 }
2230
2231 // A lineView may contain multiple logical lines (when merged by
2232 // collapsed spans). The widgets for all of them need to be drawn.

Callers 1

patchDisplayFunction · 0.85

Calls 4

getLineContentFunction · 0.85
updateLineClassesFunction · 0.85
updateLineGutterFunction · 0.85
insertLineWidgetsFunction · 0.85

Tested by

no test coverage detected