MCPcopy Create free account
hub / github.com/breck7/scroll / widgetTopHeight

Function widgetTopHeight

external/.scrollLibs.js:3906–3916  ·  view source on GitHub ↗
(lineObj)

Source from the content-addressed store, hash-verified

3904 }
3905
3906 function widgetTopHeight(lineObj) {
3907 var height = 0
3908 if (lineObj.widgets) {
3909 for (var i = 0; i < lineObj.widgets.length; ++i) {
3910 if (lineObj.widgets[i].above) {
3911 height += widgetHeight(lineObj.widgets[i])
3912 }
3913 }
3914 }
3915 return height
3916 }
3917
3918 // Converts a {top, bottom, left, right} box from line-local
3919 // 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