jquery-cropper 0.3.31 → 2.2.5
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.
- checksums.yaml +5 -13
- data/LICENSE.md +21 -0
- data/README.md +7 -11
- data/app/assets/javascripts/cropper.js +2703 -501
- data/app/assets/stylesheets/cropper.scss +244 -86
- data/lib/jquery/cropper/engine.rb +2 -2
- data/lib/jquery/cropper/version.rb +1 -1
- metadata +13 -14
- data/LICENSE.txt +0 -22
@@ -1,221 +1,379 @@
|
|
1
|
+
/*!
|
2
|
+
* Cropper v2.2.5
|
3
|
+
* https://github.com/fengyuanchen/cropper
|
4
|
+
*
|
5
|
+
* Copyright (c) 2014-2016 Fengyuan Chen and contributors
|
6
|
+
* Released under the MIT license
|
7
|
+
*
|
8
|
+
* Date: 2016-01-18T05:42:29.639Z
|
9
|
+
*/
|
1
10
|
.cropper-container {
|
11
|
+
font-size: 0;
|
12
|
+
line-height: 0;
|
13
|
+
|
2
14
|
position: relative;
|
3
|
-
|
15
|
+
|
4
16
|
-webkit-user-select: none;
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
background-color: #fff;
|
17
|
+
-moz-user-select: none;
|
18
|
+
-ms-user-select: none;
|
19
|
+
user-select: none;
|
9
20
|
|
21
|
+
direction: ltr !important;
|
22
|
+
-ms-touch-action: none;
|
23
|
+
touch-action: none;
|
10
24
|
-webkit-tap-highlight-color: transparent;
|
11
25
|
-webkit-touch-callout: none;
|
12
26
|
}
|
13
27
|
|
14
|
-
.cropper-container
|
28
|
+
.cropper-container img {
|
29
|
+
display: block;
|
30
|
+
|
31
|
+
width: 100%;
|
32
|
+
min-width: 0 !important;
|
33
|
+
max-width: none !important;
|
34
|
+
height: 100%;
|
35
|
+
min-height: 0 !important;
|
36
|
+
max-height: none !important;
|
37
|
+
|
38
|
+
image-orientation: 0deg !important;
|
39
|
+
}
|
40
|
+
|
41
|
+
.cropper-wrap-box,
|
42
|
+
.cropper-canvas,
|
43
|
+
.cropper-drag-box,
|
44
|
+
.cropper-crop-box,
|
45
|
+
.cropper-modal {
|
15
46
|
position: absolute;
|
16
47
|
top: 0;
|
17
48
|
right: 0;
|
18
49
|
bottom: 0;
|
19
50
|
left: 0;
|
20
|
-
background: #000;
|
21
|
-
filter: alpha(opacity=50);
|
22
|
-
opacity: .5;
|
23
51
|
}
|
24
52
|
|
25
|
-
.cropper-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
53
|
+
.cropper-wrap-box {
|
54
|
+
overflow: hidden;
|
55
|
+
}
|
56
|
+
|
57
|
+
.cropper-drag-box {
|
58
|
+
opacity: 0;
|
59
|
+
background-color: #fff;
|
60
|
+
|
61
|
+
filter: alpha(opacity=0);
|
62
|
+
}
|
63
|
+
|
64
|
+
.cropper-modal {
|
65
|
+
opacity: .5;
|
66
|
+
background-color: #000;
|
67
|
+
|
68
|
+
filter: alpha(opacity=50);
|
31
69
|
}
|
32
70
|
|
33
|
-
.cropper-
|
71
|
+
.cropper-view-box {
|
34
72
|
display: block;
|
73
|
+
overflow: hidden;
|
74
|
+
|
35
75
|
width: 100%;
|
36
76
|
height: 100%;
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
overflow: hidden;
|
41
|
-
border-width: 1px;
|
42
|
-
border-color: #69f;
|
43
|
-
border-color: rgba(51, 102, 255, .75);
|
44
|
-
border-style: solid;
|
77
|
+
|
78
|
+
outline: 1px solid #39f;
|
79
|
+
outline-color: rgba(51, 153, 255, .75);
|
45
80
|
}
|
46
81
|
|
47
|
-
.cropper-
|
82
|
+
.cropper-dashed {
|
48
83
|
position: absolute;
|
84
|
+
|
49
85
|
display: block;
|
50
|
-
|
86
|
+
|
51
87
|
opacity: .5;
|
52
|
-
border: 0 dashed #
|
88
|
+
border: 0 dashed #eee;
|
89
|
+
|
90
|
+
filter: alpha(opacity=50);
|
53
91
|
}
|
54
92
|
|
55
|
-
.cropper-
|
56
|
-
top: 33.
|
93
|
+
.cropper-dashed.dashed-h {
|
94
|
+
top: 33.33333%;
|
57
95
|
left: 0;
|
58
|
-
|
96
|
+
|
59
97
|
width: 100%;
|
98
|
+
height: 33.33333%;
|
99
|
+
|
60
100
|
border-top-width: 1px;
|
61
101
|
border-bottom-width: 1px;
|
62
102
|
}
|
63
103
|
|
64
|
-
.cropper-
|
104
|
+
.cropper-dashed.dashed-v {
|
65
105
|
top: 0;
|
66
|
-
left: 33.
|
106
|
+
left: 33.33333%;
|
107
|
+
|
108
|
+
width: 33.33333%;
|
67
109
|
height: 100%;
|
68
|
-
|
110
|
+
|
69
111
|
border-right-width: 1px;
|
70
112
|
border-left-width: 1px;
|
71
113
|
}
|
72
114
|
|
73
|
-
.cropper-
|
74
|
-
.cropper-container .cropper-line,
|
75
|
-
.cropper-container .cropper-point {
|
115
|
+
.cropper-center {
|
76
116
|
position: absolute;
|
117
|
+
top: 50%;
|
118
|
+
left: 50%;
|
119
|
+
|
77
120
|
display: block;
|
121
|
+
|
122
|
+
width: 0;
|
123
|
+
height: 0;
|
124
|
+
|
125
|
+
opacity: .75;
|
126
|
+
|
127
|
+
filter: alpha(opacity=75);
|
128
|
+
}
|
129
|
+
|
130
|
+
.cropper-center:before,
|
131
|
+
.cropper-center:after {
|
132
|
+
position: absolute;
|
133
|
+
|
134
|
+
display: block;
|
135
|
+
|
136
|
+
content: ' ';
|
137
|
+
|
138
|
+
background-color: #eee;
|
139
|
+
}
|
140
|
+
|
141
|
+
.cropper-center:before {
|
142
|
+
top: 0;
|
143
|
+
left: -3px;
|
144
|
+
|
145
|
+
width: 7px;
|
146
|
+
height: 1px;
|
147
|
+
}
|
148
|
+
|
149
|
+
.cropper-center:after {
|
150
|
+
top: -3px;
|
151
|
+
left: 0;
|
152
|
+
|
153
|
+
width: 1px;
|
154
|
+
height: 7px;
|
155
|
+
}
|
156
|
+
|
157
|
+
.cropper-face,
|
158
|
+
.cropper-line,
|
159
|
+
.cropper-point {
|
160
|
+
position: absolute;
|
161
|
+
|
162
|
+
display: block;
|
163
|
+
|
78
164
|
width: 100%;
|
79
165
|
height: 100%;
|
80
|
-
|
166
|
+
|
81
167
|
opacity: .1;
|
168
|
+
|
169
|
+
filter: alpha(opacity=10);
|
82
170
|
}
|
83
171
|
|
84
|
-
.cropper-
|
172
|
+
.cropper-face {
|
85
173
|
top: 0;
|
86
174
|
left: 0;
|
87
|
-
|
175
|
+
|
88
176
|
background-color: #fff;
|
89
177
|
}
|
90
178
|
|
91
|
-
.cropper-
|
92
|
-
background-color: #
|
179
|
+
.cropper-line {
|
180
|
+
background-color: #39f;
|
93
181
|
}
|
94
182
|
|
95
|
-
.cropper-
|
183
|
+
.cropper-line.line-e {
|
96
184
|
top: 0;
|
97
|
-
right: -
|
185
|
+
right: -3px;
|
186
|
+
|
98
187
|
width: 5px;
|
188
|
+
|
99
189
|
cursor: e-resize;
|
100
190
|
}
|
101
191
|
|
102
|
-
.cropper-
|
103
|
-
top: -
|
192
|
+
.cropper-line.line-n {
|
193
|
+
top: -3px;
|
104
194
|
left: 0;
|
195
|
+
|
105
196
|
height: 5px;
|
197
|
+
|
106
198
|
cursor: n-resize;
|
107
199
|
}
|
108
200
|
|
109
|
-
.cropper-
|
201
|
+
.cropper-line.line-w {
|
110
202
|
top: 0;
|
111
|
-
left: -
|
203
|
+
left: -3px;
|
204
|
+
|
112
205
|
width: 5px;
|
206
|
+
|
113
207
|
cursor: w-resize;
|
114
208
|
}
|
115
209
|
|
116
|
-
.cropper-
|
117
|
-
bottom: -
|
210
|
+
.cropper-line.line-s {
|
211
|
+
bottom: -3px;
|
118
212
|
left: 0;
|
213
|
+
|
119
214
|
height: 5px;
|
215
|
+
|
120
216
|
cursor: s-resize;
|
121
217
|
}
|
122
218
|
|
123
|
-
.cropper-
|
219
|
+
.cropper-point {
|
124
220
|
width: 5px;
|
125
221
|
height: 5px;
|
126
|
-
|
127
|
-
filter: alpha(opacity=75);
|
222
|
+
|
128
223
|
opacity: .75;
|
224
|
+
background-color: #39f;
|
225
|
+
|
226
|
+
filter: alpha(opacity=75);
|
129
227
|
}
|
130
228
|
|
131
|
-
.cropper-
|
132
|
-
top:
|
133
|
-
right: -
|
229
|
+
.cropper-point.point-e {
|
230
|
+
top: 50%;
|
231
|
+
right: -3px;
|
232
|
+
|
233
|
+
margin-top: -3px;
|
234
|
+
|
134
235
|
cursor: e-resize;
|
135
236
|
}
|
136
237
|
|
137
|
-
.cropper-
|
138
|
-
top: -
|
139
|
-
left:
|
238
|
+
.cropper-point.point-n {
|
239
|
+
top: -3px;
|
240
|
+
left: 50%;
|
241
|
+
|
242
|
+
margin-left: -3px;
|
243
|
+
|
140
244
|
cursor: n-resize;
|
141
245
|
}
|
142
246
|
|
143
|
-
.cropper-
|
144
|
-
top:
|
145
|
-
left: -
|
247
|
+
.cropper-point.point-w {
|
248
|
+
top: 50%;
|
249
|
+
left: -3px;
|
250
|
+
|
251
|
+
margin-top: -3px;
|
252
|
+
|
146
253
|
cursor: w-resize;
|
147
254
|
}
|
148
255
|
|
149
|
-
.cropper-
|
150
|
-
bottom: -
|
151
|
-
left:
|
256
|
+
.cropper-point.point-s {
|
257
|
+
bottom: -3px;
|
258
|
+
left: 50%;
|
259
|
+
|
260
|
+
margin-left: -3px;
|
261
|
+
|
152
262
|
cursor: s-resize;
|
153
263
|
}
|
154
264
|
|
155
|
-
.cropper-
|
156
|
-
top: -
|
157
|
-
right: -
|
265
|
+
.cropper-point.point-ne {
|
266
|
+
top: -3px;
|
267
|
+
right: -3px;
|
268
|
+
|
158
269
|
cursor: ne-resize;
|
159
270
|
}
|
160
271
|
|
161
|
-
.cropper-
|
162
|
-
top: -
|
163
|
-
left: -
|
272
|
+
.cropper-point.point-nw {
|
273
|
+
top: -3px;
|
274
|
+
left: -3px;
|
275
|
+
|
164
276
|
cursor: nw-resize;
|
165
277
|
}
|
166
278
|
|
167
|
-
.cropper-
|
168
|
-
bottom: -
|
169
|
-
left: -
|
279
|
+
.cropper-point.point-sw {
|
280
|
+
bottom: -3px;
|
281
|
+
left: -3px;
|
282
|
+
|
170
283
|
cursor: sw-resize;
|
171
284
|
}
|
172
285
|
|
173
|
-
.cropper-
|
174
|
-
right: -
|
175
|
-
bottom: -
|
286
|
+
.cropper-point.point-se {
|
287
|
+
right: -3px;
|
288
|
+
bottom: -3px;
|
289
|
+
|
176
290
|
width: 20px;
|
177
291
|
height: 20px;
|
292
|
+
|
178
293
|
cursor: se-resize;
|
179
|
-
|
294
|
+
|
180
295
|
opacity: 1;
|
296
|
+
|
297
|
+
filter: alpha(opacity=100);
|
181
298
|
}
|
182
299
|
|
183
|
-
.cropper-
|
300
|
+
.cropper-point.point-se:before {
|
184
301
|
position: absolute;
|
185
302
|
right: -50%;
|
186
303
|
bottom: -50%;
|
304
|
+
|
187
305
|
display: block;
|
188
|
-
|
306
|
+
|
189
307
|
width: 200%;
|
190
|
-
|
191
|
-
|
192
|
-
|
308
|
+
height: 200%;
|
309
|
+
|
310
|
+
content: ' ';
|
311
|
+
|
193
312
|
opacity: 0;
|
313
|
+
background-color: #39f;
|
314
|
+
|
315
|
+
filter: alpha(opacity=0);
|
194
316
|
}
|
195
317
|
|
196
318
|
@media (min-width: 768px) {
|
197
|
-
.cropper-
|
319
|
+
.cropper-point.point-se {
|
198
320
|
width: 15px;
|
199
321
|
height: 15px;
|
200
322
|
}
|
201
323
|
}
|
202
324
|
|
203
325
|
@media (min-width: 992px) {
|
204
|
-
.cropper-
|
326
|
+
.cropper-point.point-se {
|
205
327
|
width: 10px;
|
206
328
|
height: 10px;
|
207
329
|
}
|
208
330
|
}
|
209
331
|
|
210
332
|
@media (min-width: 1200px) {
|
211
|
-
.cropper-
|
333
|
+
.cropper-point.point-se {
|
212
334
|
width: 5px;
|
213
335
|
height: 5px;
|
214
|
-
|
336
|
+
|
215
337
|
opacity: .75;
|
338
|
+
|
339
|
+
filter: alpha(opacity=75);
|
216
340
|
}
|
217
341
|
}
|
218
342
|
|
343
|
+
.cropper-invisible {
|
344
|
+
opacity: 0;
|
345
|
+
|
346
|
+
filter: alpha(opacity=0);
|
347
|
+
}
|
348
|
+
|
349
|
+
.cropper-bg {
|
350
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC');
|
351
|
+
}
|
352
|
+
|
353
|
+
.cropper-hide {
|
354
|
+
position: absolute;
|
355
|
+
|
356
|
+
display: block;
|
357
|
+
|
358
|
+
width: 0;
|
359
|
+
height: 0;
|
360
|
+
}
|
361
|
+
|
219
362
|
.cropper-hidden {
|
220
363
|
display: none !important;
|
221
364
|
}
|
365
|
+
|
366
|
+
.cropper-move {
|
367
|
+
cursor: move;
|
368
|
+
}
|
369
|
+
|
370
|
+
.cropper-crop {
|
371
|
+
cursor: crosshair;
|
372
|
+
}
|
373
|
+
|
374
|
+
.cropper-disabled .cropper-drag-box,
|
375
|
+
.cropper-disabled .cropper-face,
|
376
|
+
.cropper-disabled .cropper-line,
|
377
|
+
.cropper-disabled .cropper-point {
|
378
|
+
cursor: not-allowed;
|
379
|
+
}
|