MCPcopy Index your code
hub / github.com/bernaferrari/FigmaToCode / getPlaceholderImage

Function getPlaceholderImage

packages/backend/src/common/images.ts:50–55  ·  view source on GitHub ↗
(w: number, h = -1)

Source from the content-addressed store, hash-verified

48};
49
50export const getPlaceholderImage = (w: number, h = -1) => {
51 const _w = w.toFixed(0);
52 const _h = (h < 0 ? w : h).toFixed(0);
53
54 return `${PLACEHOLDER_IMAGE_DOMAIN}/${_w}x${_h}`;
55};
56
57const fillIsImage = ({ type }: Paint) => type === "IMAGE";
58

Callers 3

flutterDecorationImageFunction · 0.90
tailwindContainerFunction · 0.90
htmlContainerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected