MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / insertLineWidgets

Function insertLineWidgets

static/libs/codemirror.js:2301–2305  ·  view source on GitHub ↗
(cm, lineView, dims)

Source from the content-addressed store, hash-verified

2299// A lineView may contain multiple logical lines (when merged by
2300// collapsed spans). The widgets for all of them need to be drawn.
2301function insertLineWidgets(cm, lineView, dims) {
2302 insertLineWidgetsFor(cm, lineView.line, lineView, dims, true);
2303 if (lineView.rest) { for (var i = 0; i < lineView.rest.length; i++)
2304 { insertLineWidgetsFor(cm, lineView.rest[i], lineView, dims, false); } }
2305}
2306
2307function insertLineWidgetsFor(cm, line, lineView, dims, allowAbove) {
2308 if (!line.widgets) { return }

Callers 2

updateLineWidgetsFunction · 0.85
buildLineElementFunction · 0.85

Calls 1

insertLineWidgetsForFunction · 0.85

Tested by

no test coverage detected