Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const BlurV1D = ({
width,
height,
map,
pixelRatio,
direction,
children: t
}) => (
);
const Blur1D = ({ width, height, pixelRatio, direction, children: t }) => (
);
const { props } = this;
const { source, resizeMode, ...rest } = props;
if (resizeMode === "cover" || resizeMode === "free") {
const center = props.center || [0.5, 0.5];
const zoom = props.zoom || 1;
delete rest.center;
delete rest.zoom;
return (
);
}
if (resizeMode === "contain") {
return (