@jimp/plugin-color
Advanced tools
Comparing version 0.3.10 to 0.4.0
@@ -543,5 +543,5 @@ "use strict"; | ||
var value = applyKernel(source, kernel, xx, yx); | ||
this.bitmap.data[idx] = value[0]; | ||
this.bitmap.data[idx + 1] = value[1]; | ||
this.bitmap.data[idx + 2] = value[2]; | ||
this.bitmap.data[idx] = this.constructor.limit255(value[0]); | ||
this.bitmap.data[idx + 1] = this.constructor.limit255(value[1]); | ||
this.bitmap.data[idx + 2] = this.constructor.limit255(value[2]); | ||
}); | ||
@@ -548,0 +548,0 @@ |
@@ -525,5 +525,5 @@ import tinyColor from 'tinycolor2'; | ||
var value = applyKernel(source, kernel, xx, yx); | ||
this.bitmap.data[idx] = value[0]; | ||
this.bitmap.data[idx + 1] = value[1]; | ||
this.bitmap.data[idx + 2] = value[2]; | ||
this.bitmap.data[idx] = this.constructor.limit255(value[0]); | ||
this.bitmap.data[idx + 1] = this.constructor.limit255(value[1]); | ||
this.bitmap.data[idx + 2] = this.constructor.limit255(value[2]); | ||
}); | ||
@@ -530,0 +530,0 @@ |
{ | ||
"name": "@jimp/plugin-color", | ||
"version": "0.3.10", | ||
"version": "0.4.0", | ||
"description": "Bitmap manipulation to adjust the color in an image.", | ||
@@ -8,2 +8,5 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"test": "cross-env BABEL_ENV=test mocha --require @babel/register", | ||
"test:watch": "npm run test -- --reporter min --watch", | ||
"test:coverage": "nyc npm run test", | ||
"build": "npm run build:node:production && npm run build:module", | ||
@@ -20,6 +23,11 @@ "build:watch": "npm run build:node:debug -- -- --watch --verbose", | ||
"dependencies": { | ||
"@jimp/utils": "^0.3.9", | ||
"@jimp/utils": "^0.4.0", | ||
"core-js": "^2.5.7", | ||
"tinycolor2": "^1.4.1" | ||
}, | ||
"devDependencies": { | ||
"@jimp/custom": "^0.4.0", | ||
"@jimp/test-utils": "^0.4.0", | ||
"@jimp/types": "^0.4.0" | ||
}, | ||
"peerDependencies": { | ||
@@ -31,3 +39,3 @@ "@jimp/custom": ">=0.3.5" | ||
}, | ||
"gitHead": "5acf8bc88e2f086e9be6762b336fd18c2d147175" | ||
"gitHead": "4daa956fce81c656ffa10d814a08412ef09b7e69" | ||
} |
@@ -609,5 +609,5 @@ import tinyColor from 'tinycolor2'; | ||
this.bitmap.data[idx] = value[0]; | ||
this.bitmap.data[idx + 1] = value[1]; | ||
this.bitmap.data[idx + 2] = value[2]; | ||
this.bitmap.data[idx] = this.constructor.limit255(value[0]); | ||
this.bitmap.data[idx + 1] = this.constructor.limit255(value[1]); | ||
this.bitmap.data[idx + 2] = this.constructor.limit255(value[2]); | ||
}); | ||
@@ -614,0 +614,0 @@ |
Sorry, the diff of this file is not supported yet
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
401707
12
1664
3
+ Added@jimp/utils@0.4.0(transitive)
- Removed@jimp/utils@0.3.9(transitive)
Updated@jimp/utils@^0.4.0