MCPcopy Create free account
hub / github.com/TruthHun/BookStack / setHLinePos

Function setHLinePos

static/katex/katex.mjs:9333–9344  ·  view source on GitHub ↗
(hlinesInGap)

Source from the content-addressed store, hash-verified

9331 let totalHeight = 0; // Set a position for \hline(s) at the top of the array, if any.
9332
9333 function setHLinePos(hlinesInGap) {
9334 for (let i = 0; i < hlinesInGap.length; ++i) {
9335 if (i > 0) {
9336 totalHeight += 0.25;
9337 }
9338
9339 hlines.push({
9340 pos: totalHeight,
9341 isDashed: hlinesInGap[i]
9342 });
9343 }
9344 }
9345
9346 setHLinePos(hLinesBeforeRow[0]);
9347

Callers 1

htmlBuilder$3Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected