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

Function applyPositionStyles

src/ink/styles.ts:406–418  ·  view source on GitHub ↗
(node: LayoutNode, style: Styles)

Source from the content-addressed store, hash-verified

404}
405
406const applyPositionStyles = (node: LayoutNode, style: Styles): void => {
407 if ('position' in style) {
408 node.setPositionType(
409 style.position === 'absolute'
410 ? LayoutPositionType.Absolute
411 : LayoutPositionType.Relative,
412 )
413 }
414 if ('top' in style) applyPositionEdge(node, 'top', style.top)
415 if ('bottom' in style) applyPositionEdge(node, 'bottom', style.bottom)
416 if ('left' in style) applyPositionEdge(node, 'left', style.left)
417 if ('right' in style) applyPositionEdge(node, 'right', style.right)
418}
419
420function applyPositionEdge(
421 node: LayoutNode,

Callers 1

stylesFunction · 0.85

Calls 2

applyPositionEdgeFunction · 0.85
setPositionTypeMethod · 0.45

Tested by

no test coverage detected