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

Function getGap

packages/backend/src/html/builderImpl/htmlAutoLayout.ts:35–38  ·  view source on GitHub ↗
(node: InferredAutoLayoutResult)

Source from the content-addressed store, hash-verified

33};
34
35const getGap = (node: InferredAutoLayoutResult): string | number =>
36 node.itemSpacing > 0 && node.primaryAxisAlignItems !== "SPACE_BETWEEN"
37 ? node.itemSpacing
38 : "";
39
40const getFlexWrap = (node: InferredAutoLayoutResult): string =>
41 node.layoutWrap === "WRAP" ? "wrap" : "";

Callers 1

htmlAutoLayoutPropsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected