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

Function createTextNode

source code/ink/dom.ts:320–332  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

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

Callers 1

createTextInstanceFunction · 0.85

Calls 1

setTextNodeValueFunction · 0.85

Tested by

no test coverage detected