@jimp/plugin-crop
Advanced tools
Comparing version 0.8.3 to 0.8.4-canary.798.377.0
import { Jimp, ImageCallback } from '@jimp/core'; | ||
interface Crop<This = Jimp> { | ||
class: { | ||
crop(x: number, y: number, w: number, h: number, cb?: ImageCallback): This; | ||
cropQuiet( | ||
x: number, | ||
y: number, | ||
w: number, | ||
h: number, | ||
cb?: ImageCallback | ||
): This; | ||
interface CropClass { | ||
crop(x: number, y: number, w: number, h: number, cb?: ImageCallback<this>): this; | ||
cropQuiet( | ||
x: number, | ||
y: number, | ||
w: number, | ||
h: number, | ||
cb?: ImageCallback<this> | ||
): this; | ||
autocrop(tolerance?: number, cb?: ImageCallback<this>): this; | ||
autocrop(cropOnlyFrames?: boolean, cb?: ImageCallback<this>): this; | ||
autocrop( | ||
tolerance?: number, | ||
cropOnlyFrames?: boolean, | ||
cb?: ImageCallback<this> | ||
): this; | ||
autocrop( | ||
options: { | ||
tolerance?: number; | ||
cropOnlyFrames?: boolean; | ||
cropSymmetric?: boolean; | ||
leaveBorder?: number; | ||
}, | ||
cb?: ImageCallback<this> | ||
): this; | ||
} | ||
autocrop(tolerance?: number, cb?: ImageCallback): This; | ||
autocrop(cropOnlyFrames?: boolean, cb?: ImageCallback): This; | ||
autocrop( | ||
tolerance?: number, | ||
cropOnlyFrames?: boolean, | ||
cb?: ImageCallback | ||
): This; | ||
autocrop( | ||
options: { | ||
tolerance?: number; | ||
cropOnlyFrames?: boolean; | ||
cropSymmetric?: boolean; | ||
leaveBorder?: number; | ||
}, | ||
cb?: ImageCallback | ||
): This; | ||
} | ||
interface Crop { | ||
class: CropClass | ||
} | ||
export default function(): Crop; |
{ | ||
"name": "@jimp/plugin-crop", | ||
"version": "0.8.3", | ||
"version": "0.8.4-canary.798.377.0", | ||
"description": "crop an image.", | ||
@@ -23,8 +23,8 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@jimp/utils": "^0.8.3", | ||
"@jimp/utils": "0.8.4-canary.798.377.0", | ||
"core-js": "^2.5.7" | ||
}, | ||
"devDependencies": { | ||
"@jimp/custom": "^0.8.3", | ||
"@jimp/test-utils": "^0.8.3" | ||
"@jimp/custom": "0.8.4-canary.798.377.0", | ||
"@jimp/test-utils": "0.8.4-canary.798.377.0" | ||
}, | ||
@@ -37,3 +37,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "42e184cf4681b71bc1594c8822be3553d152b5e2" | ||
"gitHead": "44c5ed24135627bcd9ddf9fa47d3c78e4a37457e" | ||
} |
81652
1039
+ Added@jimp/utils@0.8.4-canary.798.377.0(transitive)
- Removed@jimp/utils@0.8.5(transitive)