MCPcopy Create free account
hub / github.com/TruthHun/BookStack / insertLineWidgets

Function insertLineWidgets

static/editor.md/lib/codemirror/lib/codemirror.js:1008–1012  ·  view source on GitHub ↗
(cm, lineView, dims)

Source from the content-addressed store, hash-verified

1006 // A lineView may contain multiple logical lines (when merged by
1007 // collapsed spans). The widgets for all of them need to be drawn.
1008 function insertLineWidgets(cm, lineView, dims) {
1009 insertLineWidgetsFor(cm, lineView.line, lineView, dims, true);
1010 if (lineView.rest) for (var i = 0; i < lineView.rest.length; i++)
1011 insertLineWidgetsFor(cm, lineView.rest[i], lineView, dims, false);
1012 }
1013
1014 function insertLineWidgetsFor(cm, line, lineView, dims, allowAbove) {
1015 if (!line.widgets) return;

Callers 2

updateLineWidgetsFunction · 0.70
buildLineElementFunction · 0.70

Calls 1

insertLineWidgetsForFunction · 0.70

Tested by

no test coverage detected