js-image-lib
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -49,7 +49,18 @@ import { MimeType } from "../types/file"; | ||
* @param width Width of resulting image or null. | ||
* @param options Optional settings used to adjust the fit and placement of the image within its frame. | ||
*/ | ||
resize(width: number, options?: ResizeOptions): ImageTransformer; | ||
/** | ||
* Resize the image. | ||
* @param width Width of resulting image or null. | ||
* @param height Height of resulting image or null. If width is present, this takes priority. (optional, default null) | ||
* @param options Optional settings used to adjust the fit and placement of the image within its frame. | ||
*/ | ||
resize(width: number, options?: ResizeOptions): ImageTransformer; | ||
resize(width: null, height: number, options?: ResizeOptions): ImageTransformer; | ||
/** | ||
* Resize the image. | ||
* @param width Width of resulting image or null. | ||
* @param height Height of resulting image or null. If width is present, this takes priority. (optional, default null) | ||
* @param options Optional settings used to adjust the fit and placement of the image within its frame. | ||
*/ | ||
resize(width: number, height: number, options?: ResizeOptions): ImageTransformer; | ||
@@ -56,0 +67,0 @@ /** |
{ | ||
"name": "js-image-lib", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "An image manipulation library using only pure JavaScript", | ||
@@ -5,0 +5,0 @@ "author": "Josh McFarlin <josh@mcfarl.in>", |
1554487
1190