Skip to content

Commit

Permalink
All test passed
Browse files Browse the repository at this point in the history
Code improvement in util.ts
  • Loading branch information
Shashank3736 committed Aug 17, 2022
1 parent 67326dc commit ec51d33
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 2 deletions.
Binary file modified examples/all.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/captcha.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/dimension.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "captcha-canvas",
"version": "3.2.0",
"version": "3.2.1",
"description": "A captcha generator by using skia-canvas module.",
"main": "./js-script/index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion ts-script/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function getRandomCoordinate(height: number, width: number, size: number)
const randomHeight = getRandom(30, height - 30);
coordinate.push(randomHeight);
coordinates.push(coordinate);
};
}
coordinates = coordinates.sort((a, b) => a[0] - b[0]);
return coordinates;
}

0 comments on commit ec51d33

Please sign in to comment.