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

Function createTextNode

src/ink/dom.ts:318–330  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

316}
317
318export const createTextNode = (text: string): TextNode => {
319 const node: TextNode = {
320 nodeName: '#text',
321 nodeValue: text,
322 yogaNode: undefined,
323 parentNode: undefined,
324 style: {},
325 }
326
327 setTextNodeValue(node, text)
328
329 return node
330}
331
332const measureTextNode = function (
333 node: DOMNode,

Callers 1

createTextInstanceFunction · 0.85

Calls 1

setTextNodeValueFunction · 0.85

Tested by

no test coverage detected