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

Function setStyle

src/ink/dom.ts:266–274  ·  view source on GitHub ↗
(node: DOMNode, style: Styles)

Source from the content-addressed store, hash-verified

264}
265
266export const setStyle = (node: DOMNode, style: Styles): void => {
267 // Compare style properties to avoid marking dirty unnecessarily.
268 // React creates new style objects on every render even when unchanged.
269 if (stylesEqual(node.style, style)) {
270 return
271 }
272 node.style = style
273 markDirty(node)
274}
275
276export const setTextStyles = (
277 node: DOMElement,

Callers 2

applyPropFunction · 0.85
commitUpdateFunction · 0.85

Calls 2

markDirtyFunction · 0.85
stylesEqualFunction · 0.70

Tested by

no test coverage detected