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

Function getFlex

packages/backend/src/html/builderImpl/htmlAutoLayout.ts:61–69  ·  view source on GitHub ↗
(
  node: SceneNode,
  autoLayout: InferredAutoLayoutResult,
)

Source from the content-addressed store, hash-verified

59};
60
61const getFlex = (
62 node: SceneNode,
63 autoLayout: InferredAutoLayoutResult,
64): string =>
65 node.parent &&
66 "layoutMode" in node.parent &&
67 node.parent.layoutMode === autoLayout.layoutMode
68 ? "flex"
69 : "inline-flex";
70
71export const htmlAutoLayoutProps = (
72 node: SceneNode & InferredAutoLayoutResult,

Callers 1

htmlAutoLayoutPropsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected