(w: number, h = -1)
| 48 | }; |
| 49 | |
| 50 | export 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 | |
| 57 | const fillIsImage = ({ type }: Paint) => type === "IMAGE"; |
| 58 |
no outgoing calls
no test coverage detected