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

Function hasEmptyProps

packages/backend/src/flutter/flutterContainer.ts:105–113  ·  view source on GitHub ↗
(props: Record<string, string>)

Source from the content-addressed store, hash-verified

103};
104
105const hasEmptyProps = (props: Record<string, string>): boolean => {
106 let isEmpty = true;
107 for (const key in props) {
108 const value = props[key];
109 const defValue = value.length > 0 ? "0" : "";
110 isEmpty = isEmpty && skipDefaultProperty(value, defValue).length == 0;
111 }
112 return isEmpty;
113}
114
115const getDecoration = (node: SceneNode): string => {
116 if (!("fills" in node)) {

Callers 1

flutterContainerFunction · 0.85

Calls 1

skipDefaultPropertyFunction · 0.90

Tested by

no test coverage detected