jimp 0.10.2 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/lib/jimp.js +1 -7
- package/browser/lib/jimp.min.js +2 -2
- package/package.json +6 -6
package/browser/lib/jimp.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Jimp v0.10.
|
|
2
|
+
Jimp v0.10.2
|
|
3
3
|
https://github.com/oliver-moran/jimp
|
|
4
4
|
Ported for the Web by Phil Seaton
|
|
5
5
|
MIT License
|
|
@@ -46093,12 +46093,6 @@ var _utils = require("@jimp/utils");
|
|
|
46093
46093
|
*/
|
|
46094
46094
|
function flipFn(horizontal, vertical, cb) {
|
|
46095
46095
|
if (typeof horizontal !== 'boolean' || typeof vertical !== 'boolean') return _utils.throwError.call(this, 'horizontal and vertical must be Booleans', cb);
|
|
46096
|
-
|
|
46097
|
-
if (horizontal && vertical) {
|
|
46098
|
-
// shortcut
|
|
46099
|
-
return this.rotate(180, true, cb);
|
|
46100
|
-
}
|
|
46101
|
-
|
|
46102
46096
|
var bitmap = Buffer.alloc(this.bitmap.data.length);
|
|
46103
46097
|
this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) {
|
|
46104
46098
|
var _x = horizontal ? this.bitmap.width - 1 - x : x;
|