Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set the cropzone? #889

Open
mayurtakawale88 opened this issue Sep 21, 2023 · 2 comments
Open

How to set the cropzone? #889

mayurtakawale88 opened this issue Sep 21, 2023 · 2 comments
Labels

Comments

@mayurtakawale88
Copy link

Summary
I am trying to set the cropzone, but it's throwing an error

Screenshots
image

imageEditor.setCropzoneRect(1.5) // I have tried with multiple numbers but none of them is working
Version
3.15.2

Additional context
I am implementing the image editor on vue3, but when I am going for crop implementation it's throwing an error, please find the implementation

const editorInstance= new ImageEditor( tuiImageEditor.value, {
    cssMaxWidth: 700,
    cssMaxHeight: 400,
    selectionStyle: {
      cornerSize: 20,
      rotatingPointOffset: 70,
      borderColor: '#FFFFFF',
    },
    usageStatistics: false,
  })
  await editorInstance.loadImageFromURL(
    'https://storage.googleapis.com/ghl-test/o6241QsiRwUIJHyjuhos/media/64d51c8a9060cd44ef7fb56f.jpeg',
    'image'
  )
  await editorInstance.setCropzoneRect(1.5)
@tejas36026
Copy link

hey did you solved it?

@tejas36026
Copy link

you can simply write this and the problem will be solved initMenu: 'crop'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants