@lemonadejs/cropper 1.6.0 → 1.6.1
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.
- package/dist/cropper.js +8 -7
- package/package.json +1 -1
package/dist/cropper.js
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
if (typeof(cropper) == 'undefined') {
|
|
38
|
-
if (typeof(
|
|
38
|
+
if (typeof(require) === 'function') {
|
|
39
39
|
var Crop = require('@jsuites/cropper');
|
|
40
40
|
} else if (window.cropper) {
|
|
41
41
|
var Crop = window.cropper;
|
|
@@ -65,7 +65,8 @@
|
|
|
65
65
|
width: '800px',
|
|
66
66
|
height: '680px',
|
|
67
67
|
title: 'Photo Upload',
|
|
68
|
-
padding: '0'
|
|
68
|
+
padding: '0',
|
|
69
|
+
icon: 'photo'
|
|
69
70
|
});
|
|
70
71
|
}
|
|
71
72
|
|
|
@@ -104,16 +105,16 @@
|
|
|
104
105
|
self.createControls = function(o) {
|
|
105
106
|
var tabs = jSuites.tabs(o.children[0], {
|
|
106
107
|
data: [{
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
title: 'Crop',
|
|
109
|
+
icon: 'crop',
|
|
110
|
+
width: '100px',
|
|
111
|
+
},
|
|
111
112
|
{
|
|
112
113
|
title:'Adjusts',
|
|
113
114
|
icon: 'image',
|
|
114
115
|
width: '100px',
|
|
115
116
|
}],
|
|
116
|
-
padding:'
|
|
117
|
+
padding:'10px',
|
|
117
118
|
animation: true,
|
|
118
119
|
position: 'bottom',
|
|
119
120
|
});
|
package/package.json
CHANGED