@jimp/plugin-rotate
Advanced tools
Comparing version 0.18.0--canary.1135.911ed04.0 to 0.18.0
@@ -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.18.0--canary.1135.911ed04.0", | ||
"version": "0.18.0", | ||
"description": "Rotate an image.", | ||
"main": "dist/index.js", | ||
"module": "es/index.js", | ||
"repository": "jimp-dev/jimp", | ||
"types": "index.d.ts", | ||
@@ -24,3 +25,3 @@ "scripts": { | ||
"@babel/runtime": "^7.7.2", | ||
"@jimp/utils": "0.18.0--canary.1135.911ed04.0" | ||
"@jimp/utils": "^0.18.0" | ||
}, | ||
@@ -34,7 +35,7 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@jimp/custom": "0.18.0--canary.1135.911ed04.0", | ||
"@jimp/plugin-blit": "0.18.0--canary.1135.911ed04.0", | ||
"@jimp/plugin-crop": "0.18.0--canary.1135.911ed04.0", | ||
"@jimp/plugin-resize": "0.18.0--canary.1135.911ed04.0", | ||
"@jimp/test-utils": "0.18.0--canary.1135.911ed04.0" | ||
"@jimp/custom": "^0.18.0", | ||
"@jimp/plugin-blit": "^0.18.0", | ||
"@jimp/plugin-crop": "^0.18.0", | ||
"@jimp/plugin-resize": "^0.18.0", | ||
"@jimp/test-utils": "^0.18.0" | ||
}, | ||
@@ -44,3 +45,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "911ed043b27a0eda4407a6f51d6511f12f5ef140" | ||
"gitHead": "ad95e29bc4780fa93d9d8dba76337acf4cd450b0" | ||
} |
@@ -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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
54455
11
965
+ Added@jimp/utils@0.18.0(transitive)
- Removed@jimp/utils@0.18.0--canary.1135.911ed04.0(transitive)
Updated@jimp/utils@^0.18.0