@chayns-components/core
Version:
A set of beautiful React components for developing your own applications with chayns.
27 lines • 774 B
JavaScript
import React, { useMemo } from 'react';
import { createCareOfClipPath } from '../../../utils/groupedImage';
const CareOfClipPath = ({
imageFactors,
height,
uuid
}) => {
const d = useMemo(() => createCareOfClipPath({
height,
imageFactors
}), [height, imageFactors]);
return /*#__PURE__*/React.createElement("svg", {
width: "0",
height: "0",
style: {
position: 'absolute'
}
}, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
id: `care-of-mask--${uuid}`,
clipPathUnits: "objectBoundingBox"
}, /*#__PURE__*/React.createElement("path", {
d: d
}))));
};
CareOfClipPath.dsiplayName = 'CareOfClipPath';
export default CareOfClipPath;
//# sourceMappingURL=CareOfClipPath.js.map