cropper_rails 1.1.4 → 1.1.6
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/CODE_OF_CONDUCT.md +2 -1
- data/CONTRIBUTING.md +1 -1
- data/README.md +3 -3
- data/VERSIONS.md +2 -0
- data/cropper_rails.gemspec +3 -3
- data/lib/cropper_rails/version.rb +2 -2
- data/vendor/assets/javascripts/cropper.js +338 -704
- data/vendor/assets/stylesheets/cropper.css +134 -129
- metadata +7 -7
@@ -1,11 +1,11 @@
|
|
1
1
|
/*!
|
2
|
-
* Cropper.js v1.5.
|
2
|
+
* Cropper.js v1.5.13
|
3
3
|
* https://fengyuanchen.github.io/cropperjs
|
4
4
|
*
|
5
5
|
* Copyright 2015-present Chen Fengyuan
|
6
6
|
* Released under the MIT license
|
7
7
|
*
|
8
|
-
* Date:
|
8
|
+
* Date: 2022-11-20T05:30:43.444Z
|
9
9
|
*/
|
10
10
|
|
11
11
|
.cropper-container {
|
@@ -14,23 +14,25 @@
|
|
14
14
|
line-height: 0;
|
15
15
|
position: relative;
|
16
16
|
-ms-touch-action: none;
|
17
|
-
|
17
|
+
touch-action: none;
|
18
18
|
-webkit-user-select: none;
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
-moz-user-select: none;
|
20
|
+
-ms-user-select: none;
|
21
|
+
user-select: none;
|
22
22
|
}
|
23
23
|
|
24
24
|
.cropper-container img {
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
25
|
+
-webkit-backface-visibility: hidden;
|
26
|
+
backface-visibility: hidden;
|
27
|
+
display: block;
|
28
|
+
height: 100%;
|
29
|
+
image-orientation: 0deg;
|
30
|
+
max-height: none !important;
|
31
|
+
max-width: none !important;
|
32
|
+
min-height: 0 !important;
|
33
|
+
min-width: 0 !important;
|
34
|
+
width: 100%;
|
35
|
+
}
|
34
36
|
|
35
37
|
.cropper-wrap-box,
|
36
38
|
.cropper-canvas,
|
@@ -63,7 +65,7 @@
|
|
63
65
|
display: block;
|
64
66
|
height: 100%;
|
65
67
|
outline: 1px solid #39f;
|
66
|
-
outline-color: rgba(51, 153, 255,
|
68
|
+
outline-color: rgba(51, 153, 255, 75%);
|
67
69
|
overflow: hidden;
|
68
70
|
width: 100%;
|
69
71
|
}
|
@@ -76,22 +78,22 @@
|
|
76
78
|
}
|
77
79
|
|
78
80
|
.cropper-dashed.dashed-h {
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
}
|
81
|
+
border-bottom-width: 1px;
|
82
|
+
border-top-width: 1px;
|
83
|
+
height: calc(100% / 3);
|
84
|
+
left: 0;
|
85
|
+
top: calc(100% / 3);
|
86
|
+
width: 100%;
|
87
|
+
}
|
86
88
|
|
87
89
|
.cropper-dashed.dashed-v {
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
}
|
90
|
+
border-left-width: 1px;
|
91
|
+
border-right-width: 1px;
|
92
|
+
height: 100%;
|
93
|
+
left: calc(100% / 3);
|
94
|
+
top: 0;
|
95
|
+
width: calc(100% / 3);
|
96
|
+
}
|
95
97
|
|
96
98
|
.cropper-center {
|
97
99
|
display: block;
|
@@ -104,26 +106,26 @@
|
|
104
106
|
}
|
105
107
|
|
106
108
|
.cropper-center::before,
|
107
|
-
.cropper-center::after {
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
}
|
109
|
+
.cropper-center::after {
|
110
|
+
background-color: #eee;
|
111
|
+
content: " ";
|
112
|
+
display: block;
|
113
|
+
position: absolute;
|
114
|
+
}
|
113
115
|
|
114
116
|
.cropper-center::before {
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
}
|
117
|
+
height: 1px;
|
118
|
+
left: -3px;
|
119
|
+
top: 0;
|
120
|
+
width: 7px;
|
121
|
+
}
|
120
122
|
|
121
123
|
.cropper-center::after {
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
}
|
124
|
+
height: 7px;
|
125
|
+
left: 0;
|
126
|
+
top: -3px;
|
127
|
+
width: 1px;
|
128
|
+
}
|
127
129
|
|
128
130
|
.cropper-face,
|
129
131
|
.cropper-line,
|
@@ -146,32 +148,32 @@
|
|
146
148
|
}
|
147
149
|
|
148
150
|
.cropper-line.line-e {
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
}
|
151
|
+
cursor: ew-resize;
|
152
|
+
right: -3px;
|
153
|
+
top: 0;
|
154
|
+
width: 5px;
|
155
|
+
}
|
154
156
|
|
155
157
|
.cropper-line.line-n {
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
}
|
158
|
+
cursor: ns-resize;
|
159
|
+
height: 5px;
|
160
|
+
left: 0;
|
161
|
+
top: -3px;
|
162
|
+
}
|
161
163
|
|
162
164
|
.cropper-line.line-w {
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
}
|
165
|
+
cursor: ew-resize;
|
166
|
+
left: -3px;
|
167
|
+
top: 0;
|
168
|
+
width: 5px;
|
169
|
+
}
|
168
170
|
|
169
171
|
.cropper-line.line-s {
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
}
|
172
|
+
bottom: -3px;
|
173
|
+
cursor: ns-resize;
|
174
|
+
height: 5px;
|
175
|
+
left: 0;
|
176
|
+
}
|
175
177
|
|
176
178
|
.cropper-point {
|
177
179
|
background-color: #39f;
|
@@ -181,100 +183,103 @@
|
|
181
183
|
}
|
182
184
|
|
183
185
|
.cropper-point.point-e {
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
}
|
186
|
+
cursor: ew-resize;
|
187
|
+
margin-top: -3px;
|
188
|
+
right: -3px;
|
189
|
+
top: 50%;
|
190
|
+
}
|
189
191
|
|
190
192
|
.cropper-point.point-n {
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
}
|
193
|
+
cursor: ns-resize;
|
194
|
+
left: 50%;
|
195
|
+
margin-left: -3px;
|
196
|
+
top: -3px;
|
197
|
+
}
|
196
198
|
|
197
199
|
.cropper-point.point-w {
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
}
|
200
|
+
cursor: ew-resize;
|
201
|
+
left: -3px;
|
202
|
+
margin-top: -3px;
|
203
|
+
top: 50%;
|
204
|
+
}
|
203
205
|
|
204
206
|
.cropper-point.point-s {
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
}
|
207
|
+
bottom: -3px;
|
208
|
+
cursor: s-resize;
|
209
|
+
left: 50%;
|
210
|
+
margin-left: -3px;
|
211
|
+
}
|
210
212
|
|
211
213
|
.cropper-point.point-ne {
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
}
|
214
|
+
cursor: nesw-resize;
|
215
|
+
right: -3px;
|
216
|
+
top: -3px;
|
217
|
+
}
|
216
218
|
|
217
219
|
.cropper-point.point-nw {
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
}
|
220
|
+
cursor: nwse-resize;
|
221
|
+
left: -3px;
|
222
|
+
top: -3px;
|
223
|
+
}
|
222
224
|
|
223
225
|
.cropper-point.point-sw {
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
}
|
226
|
+
bottom: -3px;
|
227
|
+
cursor: nesw-resize;
|
228
|
+
left: -3px;
|
229
|
+
}
|
228
230
|
|
229
231
|
.cropper-point.point-se {
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
}
|
232
|
+
bottom: -3px;
|
233
|
+
cursor: nwse-resize;
|
234
|
+
height: 20px;
|
235
|
+
opacity: 1;
|
236
|
+
right: -3px;
|
237
|
+
width: 20px;
|
238
|
+
}
|
237
239
|
|
238
240
|
@media (min-width: 768px) {
|
239
|
-
|
240
|
-
|
241
|
-
|
241
|
+
|
242
|
+
.cropper-point.point-se {
|
243
|
+
height: 15px;
|
244
|
+
width: 15px;
|
242
245
|
}
|
243
|
-
}
|
246
|
+
}
|
244
247
|
|
245
248
|
@media (min-width: 992px) {
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
+
|
250
|
+
.cropper-point.point-se {
|
251
|
+
height: 10px;
|
252
|
+
width: 10px;
|
249
253
|
}
|
250
|
-
}
|
254
|
+
}
|
251
255
|
|
252
256
|
@media (min-width: 1200px) {
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
+
|
258
|
+
.cropper-point.point-se {
|
259
|
+
height: 5px;
|
260
|
+
opacity: 0.75;
|
261
|
+
width: 5px;
|
257
262
|
}
|
258
|
-
}
|
263
|
+
}
|
259
264
|
|
260
265
|
.cropper-point.point-se::before {
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
}
|
266
|
+
background-color: #39f;
|
267
|
+
bottom: -50%;
|
268
|
+
content: " ";
|
269
|
+
display: block;
|
270
|
+
height: 200%;
|
271
|
+
opacity: 0;
|
272
|
+
position: absolute;
|
273
|
+
right: -50%;
|
274
|
+
width: 200%;
|
275
|
+
}
|
271
276
|
|
272
277
|
.cropper-invisible {
|
273
278
|
opacity: 0;
|
274
279
|
}
|
275
280
|
|
276
281
|
.cropper-bg {
|
277
|
-
background-image: url(
|
282
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");
|
278
283
|
}
|
279
284
|
|
280
285
|
.cropper-hide {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cropper_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- d1ceward
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jquery-rails
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.2.
|
33
|
+
version: 2.2.33
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.2.
|
40
|
+
version: 2.2.33
|
41
41
|
description: Cropper is a simple image cropping library. This gem integrates Cropper
|
42
42
|
with Rails asset pipeline for ease of use.
|
43
43
|
email:
|
@@ -62,7 +62,7 @@ files:
|
|
62
62
|
- vendor/assets/javascripts/cropper.js
|
63
63
|
- vendor/assets/javascripts/jquery-cropper.js
|
64
64
|
- vendor/assets/stylesheets/cropper.css
|
65
|
-
homepage: https://github.com/
|
65
|
+
homepage: https://github.com/d1ceward/cropper_rails
|
66
66
|
licenses:
|
67
67
|
- MIT
|
68
68
|
metadata: {}
|
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
|
-
rubygems_version: 3.
|
84
|
+
rubygems_version: 3.3.7
|
85
85
|
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: Integrate Cropper library with Rails asset pipeline
|