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