Add: node_modules
This commit is contained in:
21
app/node_modules/@jimp/plugin-flip/LICENSE
generated
vendored
Normal file
21
app/node_modules/@jimp/plugin-flip/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2018 Oliver Moran
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
30
app/node_modules/@jimp/plugin-flip/README.md
generated
vendored
Normal file
30
app/node_modules/@jimp/plugin-flip/README.md
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<div align="center">
|
||||
<img width="200" height="200"
|
||||
src="https://s3.amazonaws.com/pix.iemoji.com/images/emoji/apple/ios-11/256/crayon.png">
|
||||
<h1>@jimp/plugin-flip</h1>
|
||||
<p>flip an image.</p>
|
||||
</div>
|
||||
|
||||
Flip the image horizontally or vertically. Defaults to horizontal.
|
||||
|
||||
Also aliased as `mirror`
|
||||
|
||||
## Usage
|
||||
|
||||
- @param {boolean} horizontal a Boolean, if true the image will be flipped horizontally
|
||||
- @param {boolean} vertical a Boolean, if true the image will be flipped vertically
|
||||
- @param {function(Error, Jimp)} cb (optional) a callback for when complete
|
||||
|
||||
```js
|
||||
import jimp from 'jimp';
|
||||
|
||||
async function main() {
|
||||
const image = await jimp.read('test/image.png');
|
||||
|
||||
image.flip();
|
||||
image.mirror();
|
||||
image.flip(false, true);
|
||||
}
|
||||
|
||||
main();
|
||||
```
|
56
app/node_modules/@jimp/plugin-flip/dist/index.js
generated
vendored
Normal file
56
app/node_modules/@jimp/plugin-flip/dist/index.js
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
"use strict";
|
||||
|
||||
require("core-js/modules/es6.object.define-property");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
var _utils = require("@jimp/utils");
|
||||
|
||||
/**
|
||||
* Flip the image horizontally
|
||||
* @param {boolean} horizontal a Boolean, if true the image will be flipped horizontally
|
||||
* @param {boolean} vertical a Boolean, if true the image will be flipped vertically
|
||||
* @param {function(Error, Jimp)} cb (optional) a callback for when complete
|
||||
* @returns {Jimp} this for chaining of methods
|
||||
*/
|
||||
function flipFn(horizontal, vertical, cb) {
|
||||
if (typeof horizontal !== 'boolean' || typeof vertical !== 'boolean') return _utils.throwError.call(this, 'horizontal and vertical must be Booleans', cb);
|
||||
|
||||
if (horizontal && vertical) {
|
||||
// shortcut
|
||||
return this.rotate(180, true, cb);
|
||||
}
|
||||
|
||||
var bitmap = Buffer.alloc(this.bitmap.data.length);
|
||||
this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) {
|
||||
var _x = horizontal ? this.bitmap.width - 1 - x : x;
|
||||
|
||||
var _y = vertical ? this.bitmap.height - 1 - y : y;
|
||||
|
||||
var _idx = this.bitmap.width * _y + _x << 2;
|
||||
|
||||
var data = this.bitmap.data.readUInt32BE(idx);
|
||||
bitmap.writeUInt32BE(data, _idx);
|
||||
});
|
||||
this.bitmap.data = Buffer.from(bitmap);
|
||||
|
||||
if ((0, _utils.isNodePattern)(cb)) {
|
||||
cb.call(this, null, this);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
var _default = function _default() {
|
||||
return {
|
||||
flip: flipFn,
|
||||
mirror: flipFn
|
||||
};
|
||||
};
|
||||
|
||||
exports.default = _default;
|
||||
module.exports = exports.default;
|
||||
//# sourceMappingURL=index.js.map
|
1
app/node_modules/@jimp/plugin-flip/dist/index.js.map
generated
vendored
Normal file
1
app/node_modules/@jimp/plugin-flip/dist/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../src/index.js"],"names":["flipFn","horizontal","vertical","cb","throwError","call","rotate","bitmap","Buffer","alloc","data","length","scanQuiet","width","height","x","y","idx","_x","_y","_idx","readUInt32BE","writeUInt32BE","from","flip","mirror"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;;AAOA,SAASA,MAAT,CAAgBC,UAAhB,EAA4BC,QAA5B,EAAsCC,EAAtC,EAA0C;AACxC,MAAI,OAAOF,UAAP,KAAsB,SAAtB,IAAmC,OAAOC,QAAP,KAAoB,SAA3D,EACE,OAAOE,kBAAWC,IAAX,CACL,IADK,EAEL,0CAFK,EAGLF,EAHK,CAAP;;AAMF,MAAIF,UAAU,IAAIC,QAAlB,EAA4B;AAC1B;AACA,WAAO,KAAKI,MAAL,CAAY,GAAZ,EAAiB,IAAjB,EAAuBH,EAAvB,CAAP;AACD;;AAED,MAAMI,MAAM,GAAGC,MAAM,CAACC,KAAP,CAAa,KAAKF,MAAL,CAAYG,IAAZ,CAAiBC,MAA9B,CAAf;AACA,OAAKC,SAAL,CAAe,CAAf,EAAkB,CAAlB,EAAqB,KAAKL,MAAL,CAAYM,KAAjC,EAAwC,KAAKN,MAAL,CAAYO,MAApD,EAA4D,UAC1DC,CAD0D,EAE1DC,CAF0D,EAG1DC,GAH0D,EAI1D;AACA,QAAMC,EAAE,GAAGjB,UAAU,GAAG,KAAKM,MAAL,CAAYM,KAAZ,GAAoB,CAApB,GAAwBE,CAA3B,GAA+BA,CAApD;;AACA,QAAMI,EAAE,GAAGjB,QAAQ,GAAG,KAAKK,MAAL,CAAYO,MAAZ,GAAqB,CAArB,GAAyBE,CAA5B,GAAgCA,CAAnD;;AACA,QAAMI,IAAI,GAAI,KAAKb,MAAL,CAAYM,KAAZ,GAAoBM,EAApB,GAAyBD,EAA1B,IAAiC,CAA9C;;AACA,QAAMR,IAAI,GAAG,KAAKH,MAAL,CAAYG,IAAZ,CAAiBW,YAAjB,CAA8BJ,GAA9B,CAAb;AAEAV,IAAAA,MAAM,CAACe,aAAP,CAAqBZ,IAArB,EAA2BU,IAA3B;AACD,GAXD;AAaA,OAAKb,MAAL,CAAYG,IAAZ,GAAmBF,MAAM,CAACe,IAAP,CAAYhB,MAAZ,CAAnB;;AAEA,MAAI,0BAAcJ,EAAd,CAAJ,EAAuB;AACrBA,IAAAA,EAAE,CAACE,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,SAAO,IAAP;AACD;;eAEc;AAAA,SAAO;AACpBmB,IAAAA,IAAI,EAAExB,MADc;AAEpByB,IAAAA,MAAM,EAAEzB;AAFY,GAAP;AAAA,C","sourcesContent":["import { isNodePattern, throwError } from '@jimp/utils';\n\n/**\n * Flip the image horizontally\n * @param {boolean} horizontal a Boolean, if true the image will be flipped horizontally\n * @param {boolean} vertical a Boolean, if true the image will be flipped vertically\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\nfunction flipFn(horizontal, vertical, cb) {\n if (typeof horizontal !== 'boolean' || typeof vertical !== 'boolean')\n return throwError.call(\n this,\n 'horizontal and vertical must be Booleans',\n cb\n );\n\n if (horizontal && vertical) {\n // shortcut\n return this.rotate(180, true, cb);\n }\n\n const bitmap = Buffer.alloc(this.bitmap.data.length);\n this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function(\n x,\n y,\n idx\n ) {\n const _x = horizontal ? this.bitmap.width - 1 - x : x;\n const _y = vertical ? this.bitmap.height - 1 - y : y;\n const _idx = (this.bitmap.width * _y + _x) << 2;\n const data = this.bitmap.data.readUInt32BE(idx);\n\n bitmap.writeUInt32BE(data, _idx);\n });\n\n this.bitmap.data = Buffer.from(bitmap);\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n}\n\nexport default () => ({\n flip: flipFn,\n mirror: flipFn\n});\n"],"file":"index.js"}
|
44
app/node_modules/@jimp/plugin-flip/es/index.js
generated
vendored
Normal file
44
app/node_modules/@jimp/plugin-flip/es/index.js
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
import { isNodePattern, throwError } from '@jimp/utils';
|
||||
/**
|
||||
* Flip the image horizontally
|
||||
* @param {boolean} horizontal a Boolean, if true the image will be flipped horizontally
|
||||
* @param {boolean} vertical a Boolean, if true the image will be flipped vertically
|
||||
* @param {function(Error, Jimp)} cb (optional) a callback for when complete
|
||||
* @returns {Jimp} this for chaining of methods
|
||||
*/
|
||||
|
||||
function flipFn(horizontal, vertical, cb) {
|
||||
if (typeof horizontal !== 'boolean' || typeof vertical !== 'boolean') return throwError.call(this, 'horizontal and vertical must be Booleans', cb);
|
||||
|
||||
if (horizontal && vertical) {
|
||||
// shortcut
|
||||
return this.rotate(180, true, cb);
|
||||
}
|
||||
|
||||
var bitmap = Buffer.alloc(this.bitmap.data.length);
|
||||
this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) {
|
||||
var _x = horizontal ? this.bitmap.width - 1 - x : x;
|
||||
|
||||
var _y = vertical ? this.bitmap.height - 1 - y : y;
|
||||
|
||||
var _idx = this.bitmap.width * _y + _x << 2;
|
||||
|
||||
var data = this.bitmap.data.readUInt32BE(idx);
|
||||
bitmap.writeUInt32BE(data, _idx);
|
||||
});
|
||||
this.bitmap.data = Buffer.from(bitmap);
|
||||
|
||||
if (isNodePattern(cb)) {
|
||||
cb.call(this, null, this);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
export default (function () {
|
||||
return {
|
||||
flip: flipFn,
|
||||
mirror: flipFn
|
||||
};
|
||||
});
|
||||
//# sourceMappingURL=index.js.map
|
1
app/node_modules/@jimp/plugin-flip/es/index.js.map
generated
vendored
Normal file
1
app/node_modules/@jimp/plugin-flip/es/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../src/index.js"],"names":["isNodePattern","throwError","flipFn","horizontal","vertical","cb","call","rotate","bitmap","Buffer","alloc","data","length","scanQuiet","width","height","x","y","idx","_x","_y","_idx","readUInt32BE","writeUInt32BE","from","flip","mirror"],"mappings":"AAAA,SAASA,aAAT,EAAwBC,UAAxB,QAA0C,aAA1C;AAEA;;;;;;;;AAOA,SAASC,MAAT,CAAgBC,UAAhB,EAA4BC,QAA5B,EAAsCC,EAAtC,EAA0C;AACxC,MAAI,OAAOF,UAAP,KAAsB,SAAtB,IAAmC,OAAOC,QAAP,KAAoB,SAA3D,EACE,OAAOH,UAAU,CAACK,IAAX,CACL,IADK,EAEL,0CAFK,EAGLD,EAHK,CAAP;;AAMF,MAAIF,UAAU,IAAIC,QAAlB,EAA4B;AAC1B;AACA,WAAO,KAAKG,MAAL,CAAY,GAAZ,EAAiB,IAAjB,EAAuBF,EAAvB,CAAP;AACD;;AAED,MAAMG,MAAM,GAAGC,MAAM,CAACC,KAAP,CAAa,KAAKF,MAAL,CAAYG,IAAZ,CAAiBC,MAA9B,CAAf;AACA,OAAKC,SAAL,CAAe,CAAf,EAAkB,CAAlB,EAAqB,KAAKL,MAAL,CAAYM,KAAjC,EAAwC,KAAKN,MAAL,CAAYO,MAApD,EAA4D,UAC1DC,CAD0D,EAE1DC,CAF0D,EAG1DC,GAH0D,EAI1D;AACA,QAAMC,EAAE,GAAGhB,UAAU,GAAG,KAAKK,MAAL,CAAYM,KAAZ,GAAoB,CAApB,GAAwBE,CAA3B,GAA+BA,CAApD;;AACA,QAAMI,EAAE,GAAGhB,QAAQ,GAAG,KAAKI,MAAL,CAAYO,MAAZ,GAAqB,CAArB,GAAyBE,CAA5B,GAAgCA,CAAnD;;AACA,QAAMI,IAAI,GAAI,KAAKb,MAAL,CAAYM,KAAZ,GAAoBM,EAApB,GAAyBD,EAA1B,IAAiC,CAA9C;;AACA,QAAMR,IAAI,GAAG,KAAKH,MAAL,CAAYG,IAAZ,CAAiBW,YAAjB,CAA8BJ,GAA9B,CAAb;AAEAV,IAAAA,MAAM,CAACe,aAAP,CAAqBZ,IAArB,EAA2BU,IAA3B;AACD,GAXD;AAaA,OAAKb,MAAL,CAAYG,IAAZ,GAAmBF,MAAM,CAACe,IAAP,CAAYhB,MAAZ,CAAnB;;AAEA,MAAIR,aAAa,CAACK,EAAD,CAAjB,EAAuB;AACrBA,IAAAA,EAAE,CAACC,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,SAAO,IAAP;AACD;;AAED,gBAAe;AAAA,SAAO;AACpBmB,IAAAA,IAAI,EAAEvB,MADc;AAEpBwB,IAAAA,MAAM,EAAExB;AAFY,GAAP;AAAA,CAAf","sourcesContent":["import { isNodePattern, throwError } from '@jimp/utils';\n\n/**\n * Flip the image horizontally\n * @param {boolean} horizontal a Boolean, if true the image will be flipped horizontally\n * @param {boolean} vertical a Boolean, if true the image will be flipped vertically\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\nfunction flipFn(horizontal, vertical, cb) {\n if (typeof horizontal !== 'boolean' || typeof vertical !== 'boolean')\n return throwError.call(\n this,\n 'horizontal and vertical must be Booleans',\n cb\n );\n\n if (horizontal && vertical) {\n // shortcut\n return this.rotate(180, true, cb);\n }\n\n const bitmap = Buffer.alloc(this.bitmap.data.length);\n this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function(\n x,\n y,\n idx\n ) {\n const _x = horizontal ? this.bitmap.width - 1 - x : x;\n const _y = vertical ? this.bitmap.height - 1 - y : y;\n const _idx = (this.bitmap.width * _y + _x) << 2;\n const data = this.bitmap.data.readUInt32BE(idx);\n\n bitmap.writeUInt32BE(data, _idx);\n });\n\n this.bitmap.data = Buffer.from(bitmap);\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n}\n\nexport default () => ({\n flip: flipFn,\n mirror: flipFn\n});\n"],"file":"index.js"}
|
59
app/node_modules/@jimp/plugin-flip/package.json
generated
vendored
Normal file
59
app/node_modules/@jimp/plugin-flip/package.json
generated
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"@jimp/plugin-flip@0.6.4",
|
||||
"C:\\Users\\ryuki\\TheDesk\\app"
|
||||
]
|
||||
],
|
||||
"_from": "@jimp/plugin-flip@0.6.4",
|
||||
"_id": "@jimp/plugin-flip@0.6.4",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-ukINMegMUM9KYjyDCiyYKYdSsbhNRLHDwOJN0xVRalmOKqNaZmjNbiMbaVxKlYt6sHW76RhSMOekw9f6GQB9tQ==",
|
||||
"_location": "/@jimp/plugin-flip",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "@jimp/plugin-flip@0.6.4",
|
||||
"name": "@jimp/plugin-flip",
|
||||
"escapedName": "@jimp%2fplugin-flip",
|
||||
"scope": "@jimp",
|
||||
"rawSpec": "0.6.4",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "0.6.4"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@jimp/plugins"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/@jimp/plugin-flip/-/plugin-flip-0.6.4.tgz",
|
||||
"_spec": "0.6.4",
|
||||
"_where": "C:\\Users\\ryuki\\TheDesk\\app",
|
||||
"author": "",
|
||||
"dependencies": {
|
||||
"@jimp/utils": "^0.6.4",
|
||||
"core-js": "^2.5.7"
|
||||
},
|
||||
"description": "flip an image.",
|
||||
"gitHead": "7c9d3c817cade88d4a20422be10670d3c1528429",
|
||||
"license": "MIT",
|
||||
"main": "dist/index.js",
|
||||
"module": "es/index.js",
|
||||
"name": "@jimp/plugin-flip",
|
||||
"peerDependencies": {
|
||||
"@jimp/custom": ">=0.3.5",
|
||||
"@jimp/plugin-rotate": ">=0.3.5"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run build:node:production && npm run build:module",
|
||||
"build:debug": "npm run build:node:debug",
|
||||
"build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js",
|
||||
"build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js",
|
||||
"build:node:debug": "cross-env BABEL_ENV=development npm run build:node",
|
||||
"build:node:production": "cross-env BABEL_ENV=production npm run build:node",
|
||||
"build:watch": "npm run build:node:debug -- -- --watch --verbose"
|
||||
},
|
||||
"version": "0.6.4"
|
||||
}
|
49
app/node_modules/@jimp/plugin-flip/src/index.js
generated
vendored
Normal file
49
app/node_modules/@jimp/plugin-flip/src/index.js
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
import { isNodePattern, throwError } from '@jimp/utils';
|
||||
|
||||
/**
|
||||
* Flip the image horizontally
|
||||
* @param {boolean} horizontal a Boolean, if true the image will be flipped horizontally
|
||||
* @param {boolean} vertical a Boolean, if true the image will be flipped vertically
|
||||
* @param {function(Error, Jimp)} cb (optional) a callback for when complete
|
||||
* @returns {Jimp} this for chaining of methods
|
||||
*/
|
||||
function flipFn(horizontal, vertical, cb) {
|
||||
if (typeof horizontal !== 'boolean' || typeof vertical !== 'boolean')
|
||||
return throwError.call(
|
||||
this,
|
||||
'horizontal and vertical must be Booleans',
|
||||
cb
|
||||
);
|
||||
|
||||
if (horizontal && vertical) {
|
||||
// shortcut
|
||||
return this.rotate(180, true, cb);
|
||||
}
|
||||
|
||||
const bitmap = Buffer.alloc(this.bitmap.data.length);
|
||||
this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function(
|
||||
x,
|
||||
y,
|
||||
idx
|
||||
) {
|
||||
const _x = horizontal ? this.bitmap.width - 1 - x : x;
|
||||
const _y = vertical ? this.bitmap.height - 1 - y : y;
|
||||
const _idx = (this.bitmap.width * _y + _x) << 2;
|
||||
const data = this.bitmap.data.readUInt32BE(idx);
|
||||
|
||||
bitmap.writeUInt32BE(data, _idx);
|
||||
});
|
||||
|
||||
this.bitmap.data = Buffer.from(bitmap);
|
||||
|
||||
if (isNodePattern(cb)) {
|
||||
cb.call(this, null, this);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
export default () => ({
|
||||
flip: flipFn,
|
||||
mirror: flipFn
|
||||
});
|
Reference in New Issue
Block a user