cropping icon indicating copy to clipboard operation
cropping copied to clipboard

Cropper options?

Open oyeanuj opened this issue 8 years ago • 5 comments

Hi @RaoHai, thanks for putting out this library! I had a couple of questions around the options available -

  1. Is it possible to implement this without the modal? I'm looking to do it on the page itself, ideally.
  2. For centered circular cropper in the screenshot, can you share the options needed to do that?

Thank you!

oyeanuj avatar Dec 05 '16 05:12 oyeanuj

  1. Yes.
  2. Recently it just a border-radius styled preview, and still get a rectangle picture as the result.

Thanks for your suggestions. And both of them will get improved soon.

RaoHai avatar Dec 05 '16 07:12 RaoHai

published.

  1. look at: https://react-component.github.io/cropping/examples/raw.html
  <CropViewer {...otherprops} circle={true} /> 

will get circle picture ~

RaoHai avatar Dec 05 '16 14:12 RaoHai

Thank you for the updates. So, the renderModal should render the Scaler, and the CropViewer components?

oyeanuj avatar Dec 05 '16 17:12 oyeanuj

function CropperContainer(props) {
  return <div>
    {props.title}
    {props.children}
    {props.footer}
  </div>;
}

to compat to rc-dialog, they have been separated into three partials: title, children, and footer.

RaoHai avatar Dec 06 '16 08:12 RaoHai