We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Obviously, that option exists, but when i try to replicate it, i'm getting errors.
So i'm literally trying to implement this code from your "service-basic.js" file, which, as far as I can see, starts the custom crop mode:
$btnCrop.on('click', function () { imageEditor.startDrawingMode('CROPPER'); $displayingSubMenu.hide(); $displayingSubMenu = $cropSubMenu.show(); });
The example code in React would be something like this:
const handleCustomCrop = () => { if (editorRef.current) { const imageEditor = editorRef.current.getInstance() imageEditor.startDrawingMode('CROPPER') } }
This shows the plus icon to start cropping, but when I try to do that i get this error?
Cannot read properties of null (reading 'set') TypeError: Cannot read properties of null (reading 'set') at Cropper._onFabricMouseMove (http:https://localhost:3000/static/js/bundle.js:518311:24) at klass.fire (http:https://localhost:3000/static/js/bundle.js:472426:60) at klass._handleEvent (http:https://localhost:3000/static/js/bundle.js:484075:20) at klass.__onMouseMove (http:https://localhost:3000/static/js/bundle.js:484338:20) at klass._onMouseMove (http:https://localhost:3000/static/js/bundle.js:483922:20)
The text was updated successfully, but these errors were encountered:
遇到了同样的问题
Sorry, something went wrong.
No branches or pull requests
Obviously, that option exists, but when i try to replicate it, i'm getting errors.
So i'm literally trying to implement this code from your "service-basic.js" file, which, as far as I can see, starts the custom crop mode:
The example code in React would be something like this:
This shows the plus icon to start cropping, but when I try to do that i get this error?
The text was updated successfully, but these errors were encountered: