MCPcopy Create free account
hub / github.com/codeaashu/claude-code / resolveEdges

Function resolveEdges

src/ink/layout/geometry.ts:54–61  ·  view source on GitHub ↗
(partial?: Partial<Edges>)

Source from the content-addressed store, hash-verified

52
53/** Convert partial edges to full edges with defaults */
54export function resolveEdges(partial?: Partial<Edges>): Edges {
55 return {
56 top: partial?.top ?? 0,
57 right: partial?.right ?? 0,
58 bottom: partial?.bottom ?? 0,
59 left: partial?.left ?? 0,
60 }
61}
62
63export function unionRect(a: Rectangle, b: Rectangle): Rectangle {
64 const minX = Math.min(a.x, b.x)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected