@jimp/plugin-rotate
Advanced tools
Comparing version 0.17.8--canary.1137.476d7bd.0 to 0.17.8
@@ -0,1 +1,13 @@ | ||
# v0.17.6 (Sat Feb 04 2023) | ||
#### 🐛 Bug Fix | ||
- fix documentation about rotation direction. [#1062](https://github.com/jimp-dev/jimp/pull/1062) ([@fabb](https://github.com/fabb)) | ||
#### Authors: 1 | ||
- [@fabb](https://github.com/fabb) | ||
--- | ||
# v0.16.3 (Sat Feb 04 2023) | ||
@@ -2,0 +14,0 @@ |
@@ -11,3 +11,3 @@ "use strict"; | ||
/** | ||
* Rotates an image clockwise by an arbitrary number of degrees. NB: 'this' must be a Jimp object. | ||
* Rotates an image counter-clockwise by an arbitrary number of degrees. NB: 'this' must be a Jimp object. | ||
* @param {number} deg the number of degrees to rotate the image by | ||
@@ -98,3 +98,3 @@ * @param {string|boolean} mode (optional) resize mode or a boolean, if false then the width and height of the image will not be changed | ||
/** | ||
* Rotates the image clockwise by a number of degrees. By default the width and height of the image will be resized appropriately. | ||
* Rotates the image counter-clockwise by a number of degrees. By default the width and height of the image will be resized appropriately. | ||
* @param {number} deg the number of degrees to rotate the image by | ||
@@ -101,0 +101,0 @@ * @param {string|boolean} mode (optional) resize mode or a boolean, if false then the width and height of the image will not be changed |
{ | ||
"name": "@jimp/plugin-rotate", | ||
"version": "0.17.8--canary.1137.476d7bd.0", | ||
"version": "0.17.8", | ||
"description": "Rotate an image.", | ||
@@ -25,3 +25,3 @@ "main": "dist/index.js", | ||
"@babel/runtime": "^7.7.2", | ||
"@jimp/utils": "0.17.8--canary.1137.476d7bd.0" | ||
"@jimp/utils": "^0.17.8" | ||
}, | ||
@@ -35,7 +35,7 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@jimp/custom": "0.17.8--canary.1137.476d7bd.0", | ||
"@jimp/plugin-blit": "0.17.8--canary.1137.476d7bd.0", | ||
"@jimp/plugin-crop": "0.17.8--canary.1137.476d7bd.0", | ||
"@jimp/plugin-resize": "0.17.8--canary.1137.476d7bd.0", | ||
"@jimp/test-utils": "0.17.8--canary.1137.476d7bd.0" | ||
"@jimp/custom": "^0.17.8", | ||
"@jimp/plugin-blit": "^0.17.8", | ||
"@jimp/plugin-crop": "^0.17.8", | ||
"@jimp/plugin-resize": "^0.17.8", | ||
"@jimp/test-utils": "^0.17.8" | ||
}, | ||
@@ -45,3 +45,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "476d7bdc24f4cbcbb236994b63fbf21192dbad02" | ||
"gitHead": "6e327e5813c6d36b97786941c5d09d8fc74a6198" | ||
} |
@@ -8,7 +8,7 @@ <div align="center"> | ||
Rotates the image clockwise by a number of degrees. By default the width and height of the image will be resized appropriately. | ||
Rotates the image counter-clockwise by a number of degrees. By default the width and height of the image will be resized appropriately. | ||
## Usage | ||
- @param {number} deg the number of degrees to rotate the image by | ||
- @param {number} deg the number of degrees to rotate the image by, counter-clockwise | ||
- @param {string|boolean} mode (optional) resize mode or a boolean, if false then the width and height of the image will not be changed | ||
@@ -15,0 +15,0 @@ - @param {function(Error, Jimp)} cb (optional) a callback for when complete |
import { throwError, isNodePattern } from "@jimp/utils"; | ||
/** | ||
* Rotates an image clockwise by an arbitrary number of degrees. NB: 'this' must be a Jimp object. | ||
* Rotates an image counter-clockwise by an arbitrary number of degrees. NB: 'this' must be a Jimp object. | ||
* @param {number} deg the number of degrees to rotate the image by | ||
@@ -115,3 +115,3 @@ * @param {string|boolean} mode (optional) resize mode or a boolean, if false then the width and height of the image will not be changed | ||
/** | ||
* Rotates the image clockwise by a number of degrees. By default the width and height of the image will be resized appropriately. | ||
* Rotates the image counter-clockwise by a number of degrees. By default the width and height of the image will be resized appropriately. | ||
* @param {number} deg the number of degrees to rotate the image by | ||
@@ -118,0 +118,0 @@ * @param {string|boolean} mode (optional) resize mode or a boolean, if false then the width and height of the image will not be changed |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40086
+ Added@jimp/utils@0.17.10(transitive)
- Removed@jimp/utils@0.17.8--canary.1137.476d7bd.0(transitive)
Updated@jimp/utils@^0.17.8