Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(img-cropper): improve #63

Merged
merged 33 commits into from
Nov 11, 2018
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
eb71ae2
add scale & position to ImgCropperEvent
alyleui Nov 1, 2018
2005977
feat(img-cropper): add autoCrop
alyleui Nov 5, 2018
cb60dfb
fix(img-cropper): add `dataURL`
alyleui Nov 5, 2018
e508f80
order autoCrop
alyleui Nov 5, 2018
9b0cd4d
docs: update docs
alyleui Nov 5, 2018
dd936a7
docs: fix docs
alyleui Nov 5, 2018
1ab9acc
remove unused variables
alyleui Nov 5, 2018
65dcc95
update q
alyleui Nov 5, 2018
9022884
fix autoCrop
alyleui Nov 6, 2018
2c21cac
Merge branch 'master' into img-cropper
Enlcxx Nov 6, 2018
e001892
fix autoCrop
alyleui Nov 6, 2018
8d05911
add scale Input
alyleui Nov 6, 2018
4d424de
add range example
alyleui Nov 7, 2018
78b01f7
add range input example
alyleui Nov 7, 2018
20a6cda
clean
alyleui Nov 7, 2018
2dc6298
Merge branch 'master' into img-cropper
Enlcxx Nov 7, 2018
ae994bd
Merge branch 'master' into img-cropper
Enlcxx Nov 8, 2018
d5513ff
remove deprecated
alyleui Nov 8, 2018
7a8e6b9
fix autocrop
alyleui Nov 9, 2018
226c408
add rotate method
alyleui Nov 11, 2018
5543c26
fix center method
alyleui Nov 11, 2018
69e1a6b
clean
alyleui Nov 11, 2018
aaf650d
clean
alyleui Nov 11, 2018
4d0134a
update position on rotate
alyleui Nov 11, 2018
b095111
remove log
alyleui Nov 11, 2018
262446d
fix
alyleui Nov 11, 2018
dc666e7
rm logs
alyleui Nov 11, 2018
a50d755
­
alyleui Nov 11, 2018
895b13b
­
alyleui Nov 11, 2018
f275983
Merge branch 'master' into img-cropper
Enlcxx Nov 11, 2018
dd3dfd5
update docs
alyleui Nov 11, 2018
7142a88
remove unused styles & fix negative rotation
alyleui Nov 11, 2018
56f6924
add rotation to `ImgCropperEvent`
alyleui Nov 11, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update q
  • Loading branch information
alyleui committed Nov 5, 2018
commit 65dcc951fcc2be45a15c0c31d64f1842b17684ab
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ export class LyResizingCroppingImages {
/** Context */
const octx = img.getContext('2d');

const q = Math.pow(quality * 10, numSteps) / Math.pow(10, numSteps);
const q = ((quality * 10) ** numSteps) / (10 ** numSteps);

/** If Steps => imageSmoothingQuality */
if (numSteps) {
Expand Down