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

Function widgetTopHeight

static/libs/codemirror.js:2645–2650  ·  view source on GitHub ↗
(lineObj)

Source from the content-addressed store, hash-verified

2643}
2644
2645function widgetTopHeight(lineObj) {
2646 var height = 0;
2647 if (lineObj.widgets) { for (var i = 0; i < lineObj.widgets.length; ++i) { if (lineObj.widgets[i].above)
2648 { height += widgetHeight(lineObj.widgets[i]); } } }
2649 return height
2650}
2651
2652// Converts a {top, bottom, left, right} box from line-local
2653// coordinates into another coordinate system. Context may be one of

Callers 3

intoCoordSystemFunction · 0.85
wrappedLineExtentFunction · 0.85
coordsCharInnerFunction · 0.85

Calls 1

widgetHeightFunction · 0.85

Tested by

no test coverage detected