Closed zhouSir340 closed 3 months ago
Describe the bug using vue3 and encapsulate cropper into a component, calling setData after init, the response'x value is -1.8989449817236961e-13
To Reproduce Steps to reproduce the behavior:
<MyComponent v-if="img" :image="img" style="width: 800px" />
new Cropper(img.value, { background: false, guides: false, movable: false, viewMode: 2, dragMode: 'move', autoCropArea: 1, modal: false, scalable: false, zoomable: false, cropBoxMovable: false, }); };
{x: -1.8989449817236961e-13, y: 0, width: 2688, height: 1520, rotate: 0}
Expected behavior the x value of setData'response should be correct after init
Screenshots
Desktop (please complete the following information):
Additional context
Only viewMode: 0 supports your case.
viewMode: 0
Describe the bug using vue3 and encapsulate cropper into a component, calling setData after init, the response'x value is -1.8989449817236961e-13
To Reproduce Steps to reproduce the behavior:
<MyComponent v-if="img" :image="img" style="width: 800px" />
Expected behavior the x value of setData'response should be correct after init
Screenshots
Desktop (please complete the following information):
Additional context