MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getMaxWidth

Function getMaxWidth

src/ink/get-max-width.ts:17–25  ·  view source on GitHub ↗
(yogaNode: LayoutNode)

Source from the content-addressed store, hash-verified

15 * the rendered line count stays consistent with the layout height.
16 */
17const getMaxWidth = (yogaNode: LayoutNode): number => {
18 return (
19 yogaNode.getComputedWidth() -
20 yogaNode.getComputedPadding(LayoutEdge.Left) -
21 yogaNode.getComputedPadding(LayoutEdge.Right) -
22 yogaNode.getComputedBorder(LayoutEdge.Left) -
23 yogaNode.getComputedBorder(LayoutEdge.Right)
24 )
25}
26
27export default getMaxWidth
28

Callers 1

renderNodeToOutputFunction · 0.85

Calls 3

getComputedWidthMethod · 0.45
getComputedPaddingMethod · 0.45
getComputedBorderMethod · 0.45

Tested by

no test coverage detected