@types/sharp
Advanced tools
Comparing version 0.21.3 to 0.22.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for sharp 0.21 | ||
// Type definitions for sharp 0.22 | ||
// Project: https://github.com/lovell/sharp | ||
@@ -141,3 +141,3 @@ // Definitions by: François Nguyen <https://github.com/lith-light-g> | ||
*/ | ||
joinChannel(images: string | Buffer | ArrayLike<string|Buffer>, options?: SharpOptions): Sharp; | ||
joinChannel(images: string | Buffer | ArrayLike<string | Buffer>, options?: SharpOptions): Sharp; | ||
@@ -215,5 +215,17 @@ /** | ||
* @returns A sharp instance that can be used to chain operations | ||
* @deprecated | ||
*/ | ||
overlayWith(image?: string | Buffer, options?: OverlayOptions): Sharp; | ||
/** | ||
* Composite image(s) over the processed (resized, extracted etc.) image. | ||
* | ||
* The images to composite must be the same size or smaller than the processed image. | ||
* If both `top` and `left` options are provided, they take precedence over `gravity`. | ||
* @param images - Ordered list of images to composite | ||
* @throws {Error} Invalid parameters | ||
* @returns A sharp instance that can be used to chain operations | ||
*/ | ||
composite(images: Array<{ input: string | Buffer } & OverlayOptions>): Sharp; | ||
//#endregion | ||
@@ -575,3 +587,3 @@ | ||
*/ | ||
resize(width?: number|null, height?: number|null, options?: ResizeOptions): Sharp; | ||
resize(width?: number | null, height?: number | null, options?: ResizeOptions): Sharp; | ||
@@ -621,3 +633,5 @@ /** | ||
density?: number; | ||
/** Page number to extract for multi-page input (GIF, TIFF). (optional, default 0) */ | ||
/** Number of pages to extract for multi-page input (GIF, TIFF, PDF), use -1 for all pages */ | ||
pages?: number; | ||
/** Page number to start extracting from for multi-page input (GIF, TIFF, PDF), zero based. (optional, default 0) */ | ||
page?: number; | ||
@@ -890,2 +904,4 @@ /** Describes raw pixel input image data. See raw() for pixel ordering. */ | ||
interface OverlayOptions { | ||
/** how to blend this image with the image below. (optional, default `'over'`) */ | ||
blend?: Blend; | ||
/** gravity at which to place the overlay. (optional, default 'centre') */ | ||
@@ -974,2 +990,5 @@ gravity?: Gravity; | ||
type Blend = 'clear' | 'source' | 'over' | 'in' | 'out' | 'atop' | 'dest' | 'dest-over' | 'dest-in' | 'dest-out' | 'dest-atop' | 'xor' | 'add' | 'saturate' | 'multiply' | 'screen' | 'overlay' | ||
| 'darken' | 'lighten' | 'colour-dodge' | 'colour-dodge' | 'colour-burn' | 'colour-burn' | 'hard-light' | 'soft-light' | 'difference' | 'exclusion'; | ||
type Gravity = number | string; | ||
@@ -976,0 +995,0 @@ |
{ | ||
"name": "@types/sharp", | ||
"version": "0.21.3", | ||
"version": "0.22.0", | ||
"description": "TypeScript definitions for sharp", | ||
@@ -39,4 +39,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "b9f2a4c98e6df872f955a800d3dd48437e5066a1039eaea1128115fb9ab29b8f", | ||
"typesPublisherContentHash": "3f980a5b89bda9be12e523da38f7d5c4d72d84812d387292eb5ae9643de6dc12", | ||
"typeScriptVersion": "2.1" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 06 Mar 2019 23:39:22 GMT | ||
* Last updated: Thu, 21 Mar 2019 22:51:49 GMT | ||
* Dependencies: @types/node | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
50262
914