@cashub/ui 0.13.10 → 0.13.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,16 +49,16 @@ var CropperWrapper = function CropperWrapper(_ref) {
49
49
  width: width,
50
50
  height: height
51
51
  },
52
- crop: function crop(event) {
53
- var width = Math.round(event.detail.width);
54
- var height = Math.round(event.detail.height);
52
+ crop: function crop() {
53
+ var _cropper$getCropBoxDa = cropper.getCropBoxData(),
54
+ width = _cropper$getCropBoxDa.width,
55
+ height = _cropper$getCropBoxDa.height;
55
56
 
56
57
  if (width < minCroppedWidth || height < minCroppedHeight || width > maxCroppedWidth || height > maxCroppedHeight) {
57
- cropper.setData({
58
+ cropper.setCropBoxData({
58
59
  width: Math.max(minCroppedWidth, Math.min(maxCroppedWidth, width)),
59
60
  height: Math.max(minCroppedHeight, Math.min(maxCroppedHeight, height))
60
61
  });
61
- node.textContent = JSON.stringify(cropper.getData(true));
62
62
  }
63
63
  }
64
64
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cashub/ui",
3
- "version": "0.13.10",
3
+ "version": "0.13.11",
4
4
  "private": false,
5
5
  "author": "CASHUB Team",
6
6
  "description": "CASHUB UI components library",