nhn / tui.image-editor

🍞🎨 Full-featured photo image editor using canvas. It is really easy, and it comes with great filters.
http://ui.toast.com/tui-image-editor
MIT License
7.05k stars 1.3k forks source link

when use method setCropzoneRect(mode) to custom the cropzone,the controle plateform gets an error #786

Open tangxiujiang opened 2 years ago

tangxiujiang commented 2 years ago

the method setCropzoneRect dose not effect,because the controle plateform gets an error.

this picture shows my use: 1

this picture show the origin code of the method setCropzoneRect: 2

then the control plateform gets an error: 3

the error is causeed by the varible '_cropzone' dose not get a assign value,then the varible 'cropzone' in 'setCropzoneRect' gets value from varible 'this._cropzone' . varible 'cropzone' is null,but call cropzone.set.

lja1018 commented 2 years ago

@tangxiujiang Thank you for reporting the bug. I'll fix it.

HeiYanjing commented 11 months ago

这位老师,有没有不用原生的任务栏,完全自定义实现功能,我在instance.value.setCropzoneRect(null)执行自定义裁剪功能后,手动框选裁剪区域,只要一开始框选,就报错。错误类似。 image image