MCPcopy
hub / github.com/csev/py4e / charWidth

Function charWidth

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:1863–1867  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1861 }
1862 var cachedWidth, cachedWidthFor = 0;
1863 function charWidth() {
1864 if (scroller.clientWidth == cachedWidthFor) return cachedWidth;
1865 cachedWidthFor = scroller.clientWidth;
1866 return (cachedWidth = stringWidth("x"));
1867 }
1868 function paddingTop() {return lineSpace.offsetTop;}
1869 function paddingLeft() {return lineSpace.offsetLeft;}
1870

Callers 4

updateLinesNoUndoFunction · 0.70
wrappingChangedFunction · 0.70
charFromXFunction · 0.70
coordsCharFunction · 0.70

Calls 1

stringWidthFunction · 0.85

Tested by

no test coverage detected