divide by scale
This commit is contained in:
parent
fa16612ba8
commit
338fa5bdb2
|
@ -27,10 +27,10 @@
|
||||||
height: side
|
height: side
|
||||||
onChange: (data, action) ->
|
onChange: (data, action) ->
|
||||||
console.log data
|
console.log data
|
||||||
($ '#crop_x').val Math.floor(data.x)
|
($ '#crop_x').val Math.floor(data.x / data.scale)
|
||||||
($ '#crop_y').val Math.floor(data.y)
|
($ '#crop_y').val Math.floor(data.y / data.scale)
|
||||||
($ '#crop_w').val Math.floor(data.w)
|
($ '#crop_w').val Math.floor(data.w / data.scale)
|
||||||
($ '#crop_h').val Math.floor(data.h)
|
($ '#crop_h').val Math.floor(data.h / data.scale)
|
||||||
# rx = 100 / data.w
|
# rx = 100 / data.w
|
||||||
# ry = 100 / data.h
|
# ry = 100 / data.h
|
||||||
# ($ '#profile-picture-preview').css
|
# ($ '#profile-picture-preview').css
|
||||||
|
|
Loading…
Reference in New Issue