MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / formatNodeStyleForMcp

Function formatNodeStyleForMcp

packages/extension/utils/variable-output.ts:47–54  ·  view source on GitHub ↗
(
  style: Record<string, string>,
  node: SceneNode,
  readers: FigmaLookupReaders = DEFAULT_READERS
)

Source from the content-addressed store, hash-verified

45}
46
47export function formatNodeStyleForMcp(
48 style: Record<string, string>,
49 node: SceneNode,
50 readers: FigmaLookupReaders = DEFAULT_READERS
51): Record<string, string> {
52 const context = buildVariableProjectionContext(node, readers)
53 return applyVariableStyle(style, node, context, getVariableCssExpr, readers)
54}
55
56export function formatNodeStyleForPluginVariables(
57 style: Record<string, string>,

Callers 2

collectNodeDataFunction · 0.90

Calls 2

applyVariableStyleFunction · 0.85

Tested by

no test coverage detected