A responsive image cropping tool for React
No changes in these releases, it's just to update some NPM info
overflow: hidden
to the image wrapper so that scaling and rotating doesn't overflow the component since removing overflow: hidden
from the component itselfNot a breaking change for most users, but the way crop shadow is done is significantly different, and hopefully solves two problems while not introducing others 🙏:
overflow: hidden
applied, which makes some kinds of customization easier. Also the crop handles now overflow the container instead of getting cut off:Variables are now done with CSS Variables. They are as follows:
:root {
--rc-drag-handle-size: 12px;
--rc-drag-handle-mobile-size: 24px;
--rc-drag-handle-bg-colour: rgba(0, 0, 0, 0.2);
--rc-drag-bar-size: 6px; /* The invisible grip size of the crop selection edges */
--rc-border-color: rgba(255, 255, 255, 0.7);
--rc-focus-color: #0088ff;
}
renderSelectionAddon
#570className="ReactCrop--no-animate"