UNPKG

@dcl/react-ecs

Version:
17 lines (16 loc) 375 B
import { getTexture, getTextureMode } from './utils'; /** * @public */ /* @__PURE__ */ export function parseUiBackground(props) { if (!props || !Object.keys(props).length) return undefined; const texture = getTexture(props); return { ...props, ...getTextureMode(props.textureMode), uvs: props.uvs ?? [], texture }; }