MCPcopy Create free account
hub / github.com/KaTeX/KaTeX / getCurrentSidebarWidth

Function getCurrentSidebarWidth

static/main.js:121–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119 }
120
121 function getCurrentSidebarWidth() {
122 const rawValue =
123 getComputedStyle(layout).getPropertyValue("--sidebar-width");
124 const width = parseFloat(rawValue);
125
126 return Number.isFinite(width) ? width : minSidebarWidth;
127 }
128
129 function getCurrentMobileOptionsHeight() {
130 const rawValue = getComputedStyle(layout).getPropertyValue(

Callers 4

syncSidebarWidthModeFunction · 0.85
startResizingFunction · 0.85
stopResizingFunction · 0.85
initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected