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

Function insertLineWidgets

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

Source from the content-addressed store, hash-verified

1033 // A lineView may contain multiple logical lines (when merged by
1034 // collapsed spans). The widgets for all of them need to be drawn.
1035 function insertLineWidgets(cm, lineView, dims) {
1036 insertLineWidgetsFor(cm, lineView.line, lineView, dims, true);
1037 if (lineView.rest) for (var i = 0; i < lineView.rest.length; i++)
1038 insertLineWidgetsFor(cm, lineView.rest[i], lineView, dims, false);
1039 }
1040
1041 function insertLineWidgetsFor(cm, line, lineView, dims, allowAbove) {
1042 if (!line.widgets) return;

Callers 2

updateLineWidgetsFunction · 0.70
buildLineElementFunction · 0.70

Calls 1

insertLineWidgetsForFunction · 0.70

Tested by

no test coverage detected