MCPcopy Create free account
hub / github.com/bernaferrari/FigmaToCode / isSVGNode

Function isSVGNode

packages/backend/src/altNodes/altNodeUtils.ts:52–55  ·  view source on GitHub ↗
(node: SceneNode)

Source from the content-addressed store, hash-verified

50);
51
52export const isSVGNode = (node: SceneNode) => {
53 const altNode = node as AltNode<typeof node>;
54 return altNode.canBeFlattened;
55};
56
57export const renderAndAttachSVG = async (node: any) => {
58 if (node.canBeFlattened) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected