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

Function measureRawAnsiNode

src/ink/dom.ts:379–387  ·  view source on GitHub ↗
(node: DOMElement)

Source from the content-addressed store, hash-verified

377// No stringWidth, no wrapping, no tab expansion — the producer (e.g. ColorDiff)
378// already wrapped to the target width and each line is exactly one terminal row.
379const measureRawAnsiNode = function (node: DOMElement): {
380 width: number
381 height: number
382} {
383 return {
384 width: node.attributes['rawWidth'] as number,
385 height: node.attributes['rawHeight'] as number,
386 }
387}
388
389/**
390 * Mark a node and all its ancestors as dirty for re-rendering.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected