@jimp/plugin-fisheye
Advanced tools
Comparing version 0.16.3-canary.1125.1580.0 to 0.16.3
@@ -1,2 +0,2 @@ | ||
module.exports = api => { | ||
module.exports = (api) => { | ||
api.cache(true); | ||
@@ -7,17 +7,17 @@ | ||
[ | ||
'@babel/env', | ||
"@babel/env", | ||
{ | ||
useBuiltIns: 'usage' | ||
} | ||
] | ||
useBuiltIns: "usage", | ||
}, | ||
], | ||
], | ||
plugins: [ | ||
'@babel/proposal-class-properties', | ||
'@babel/syntax-object-rest-spread', | ||
process.env.BABEL_ENV !== 'module' && 'add-module-exports', | ||
"@babel/proposal-class-properties", | ||
"@babel/syntax-object-rest-spread", | ||
process.env.BABEL_ENV !== "module" && "add-module-exports", | ||
[ | ||
'transform-inline-environment-variables', | ||
{ include: ['BABEL_ENV', 'ENV'] } | ||
] | ||
"transform-inline-environment-variables", | ||
{ include: ["BABEL_ENV", "ENV"] }, | ||
], | ||
].filter(Boolean), | ||
@@ -27,14 +27,14 @@ | ||
test: { | ||
plugins: ['istanbul'] | ||
plugins: ["istanbul"], | ||
}, | ||
development: { | ||
plugins: [process.env.ENV !== 'browser' && 'source-map-support'].filter( | ||
plugins: [process.env.ENV !== "browser" && "source-map-support"].filter( | ||
Boolean | ||
) | ||
), | ||
}, | ||
module: { | ||
presets: [['@babel/env', { modules: false }]] | ||
} | ||
} | ||
presets: [["@babel/env", { modules: false }]], | ||
}, | ||
}, | ||
}; | ||
}; |
@@ -0,1 +1,13 @@ | ||
# v0.16.3 (Sat Feb 04 2023) | ||
#### ⚠️ Pushed to `master` | ||
- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) | ||
#### Authors: 1 | ||
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) | ||
--- | ||
# v0.16.2 (Thu Sep 15 2022) | ||
@@ -27,3 +39,3 @@ | ||
#### 🐛 Bug Fix | ||
#### 🐛 Bug Fix | ||
@@ -36,2 +48,2 @@ - `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` | ||
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) | ||
- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) | ||
- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) |
@@ -26,3 +26,3 @@ "use strict"; | ||
if (typeof options === 'function') { | ||
if (typeof options === "function") { | ||
cb = options; | ||
@@ -29,0 +29,0 @@ options = { |
@@ -1,2 +0,2 @@ | ||
import { ImageCallback } from '@jimp/core'; | ||
import { ImageCallback } from "@jimp/core"; | ||
@@ -8,2 +8,2 @@ interface Fisheye { | ||
export default function(): Fisheye; | ||
export default function (): Fisheye; |
{ | ||
"name": "@jimp/plugin-fisheye", | ||
"version": "0.16.3-canary.1125.1580.0", | ||
"version": "0.16.3", | ||
"description": "Apply a fisheye effect to an image.", | ||
@@ -24,3 +24,3 @@ "main": "dist/index.js", | ||
"@babel/runtime": "^7.7.2", | ||
"@jimp/utils": "0.16.3-canary.1125.1580.0" | ||
"@jimp/utils": "^0.16.3" | ||
}, | ||
@@ -31,4 +31,4 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@jimp/custom": "0.16.3-canary.1125.1580.0", | ||
"@jimp/test-utils": "0.16.3-canary.1125.1580.0" | ||
"@jimp/custom": "^0.16.3", | ||
"@jimp/test-utils": "^0.16.3" | ||
}, | ||
@@ -38,3 +38,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "bfdb98aaf820272c06e332483b943d0ac58659db" | ||
"gitHead": "b9ac83d855d09deecde129a9c9b5b328ba7ea5b2" | ||
} |
@@ -14,6 +14,6 @@ <div align="center"> | ||
```js | ||
import jimp from 'jimp'; | ||
import jimp from "jimp"; | ||
async function main() { | ||
const image = await jimp.read('test/image.png'); | ||
const image = await jimp.read("test/image.png"); | ||
@@ -20,0 +20,0 @@ image.fisheye(); |
@@ -1,2 +0,2 @@ | ||
import { isNodePattern } from '@jimp/utils'; | ||
import { isNodePattern } from "@jimp/utils"; | ||
@@ -11,3 +11,3 @@ /** | ||
fisheye(options = { r: 2.5 }, cb) { | ||
if (typeof options === 'function') { | ||
if (typeof options === "function") { | ||
cb = options; | ||
@@ -46,3 +46,3 @@ options = { r: 2.5 }; | ||
return this; | ||
} | ||
}, | ||
}); |
@@ -1,22 +0,22 @@ | ||
import { Jimp, mkJGD } from '@jimp/test-utils'; | ||
import configure from '@jimp/custom'; | ||
import { Jimp, mkJGD } from "@jimp/test-utils"; | ||
import configure from "@jimp/custom"; | ||
import fisheye from '../src'; | ||
import fisheye from "../src"; | ||
const jimp = configure({ plugins: [fisheye] }, Jimp); | ||
describe('Fisheye', () => { | ||
it('should create fisheye lens to image', async () => { | ||
describe("Fisheye", () => { | ||
it("should create fisheye lens to image", async () => { | ||
const imgNormal = await jimp.read( | ||
mkJGD( | ||
'0000000000', | ||
'0001221000', | ||
'0022222200', | ||
'0122112210', | ||
'0221001220', | ||
'0221001220', | ||
'0122112210', | ||
'0022222200', | ||
'0001221000', | ||
'0000000000' | ||
"0000000000", | ||
"0001221000", | ||
"0022222200", | ||
"0122112210", | ||
"0221001220", | ||
"0221001220", | ||
"0122112210", | ||
"0022222200", | ||
"0001221000", | ||
"0000000000" | ||
) | ||
@@ -26,34 +26,31 @@ ); | ||
mkJGD( | ||
'0001221000', | ||
'0221112220', | ||
'0220000121', | ||
'1100000112', | ||
'2100000012', | ||
'2100000012', | ||
'1200000012', | ||
'0211000222', | ||
'0221111220', | ||
'0012222200' | ||
"0001221000", | ||
"0221112220", | ||
"0220000121", | ||
"1100000112", | ||
"2100000012", | ||
"2100000012", | ||
"1200000012", | ||
"0211000222", | ||
"0221111220", | ||
"0012222200" | ||
) | ||
); | ||
imgNormal | ||
.fisheye() | ||
.getJGDSync() | ||
.should.be.sameJGD(imgBulged.getJGDSync()); | ||
imgNormal.fisheye().getJGDSync().should.be.sameJGD(imgBulged.getJGDSync()); | ||
}); | ||
it('should create fisheye lens to image with radius', async () => { | ||
it("should create fisheye lens to image with radius", async () => { | ||
const imgNormal = await jimp.read( | ||
mkJGD( | ||
'0000000000', | ||
'0000000000', | ||
'0000000000', | ||
'0000000000', | ||
'0001111000', | ||
'0001111000', | ||
'0000000000', | ||
'0000000000', | ||
'0000000000', | ||
'0000000000' | ||
"0000000000", | ||
"0000000000", | ||
"0000000000", | ||
"0000000000", | ||
"0001111000", | ||
"0001111000", | ||
"0000000000", | ||
"0000000000", | ||
"0000000000", | ||
"0000000000" | ||
) | ||
@@ -63,12 +60,12 @@ ); | ||
mkJGD( | ||
'■■■■■■■■■■', | ||
'■■■■■■■■■■', | ||
'■■■■■■■■■■', | ||
'■■■11111■■', | ||
'■■111111■■', | ||
'■■111111■■', | ||
'■■■■111■■■', | ||
'■■■■■■■■■■', | ||
'■■■■■■■■■■', | ||
'■■■■■■■■■■' | ||
"■■■■■■■■■■", | ||
"■■■■■■■■■■", | ||
"■■■■■■■■■■", | ||
"■■■11111■■", | ||
"■■111111■■", | ||
"■■111111■■", | ||
"■■■■111■■■", | ||
"■■■■■■■■■■", | ||
"■■■■■■■■■■", | ||
"■■■■■■■■■■" | ||
) | ||
@@ -75,0 +72,0 @@ ); |
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
14110
10
204
+ Added@jimp/utils@0.16.13(transitive)
- Removed@jimp/utils@0.16.3-canary.1125.1580.0(transitive)
Updated@jimp/utils@^0.16.3