chore: add jimp dependency, icon padding script, and update configuration
This commit is contained in:
+98
@@ -0,0 +1,98 @@
|
||||
# v0.22.1 (Mon Feb 06 2023)
|
||||
|
||||
#### 🏠 Internal
|
||||
|
||||
- rename master to main [#1169](https://github.com/jimp-dev/jimp/pull/1169) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
||||
|
||||
#### Authors: 1
|
||||
|
||||
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
||||
|
||||
---
|
||||
|
||||
# v0.22.0 (Mon Feb 06 2023)
|
||||
|
||||
#### 🏠 Internal
|
||||
|
||||
- switch from should to expect [#1163](https://github.com/jimp-dev/jimp/pull/1163) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
||||
- Change test matching strategy to include all test files [#1161](https://github.com/jimp-dev/jimp/pull/1161) ([@danielholmes](https://github.com/danielholmes))
|
||||
|
||||
#### Authors: 2
|
||||
|
||||
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
||||
- Daniel Holmes ([@danielholmes](https://github.com/danielholmes))
|
||||
|
||||
---
|
||||
|
||||
# v0.21.0 (Sun Feb 05 2023)
|
||||
|
||||
### Release Notes
|
||||
|
||||
#### Babel Refactor ([#1149](https://github.com/jimp-dev/jimp/pull/1149))
|
||||
|
||||
Marking this as a "breaking release" because it might change what deps need to be installed.
|
||||
|
||||
All modules should be exported as valid cjs and esm
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
#### 💥 Breaking Change
|
||||
|
||||
- Babel Refactor [#1149](https://github.com/jimp-dev/jimp/pull/1149) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
||||
|
||||
#### Authors: 1
|
||||
|
||||
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
||||
|
||||
---
|
||||
|
||||
# v0.16.3 (Sat Feb 04 2023)
|
||||
|
||||
#### ⚠️ Pushed to `main`
|
||||
|
||||
- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
||||
|
||||
#### Authors: 1
|
||||
|
||||
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
||||
|
||||
---
|
||||
|
||||
# v0.11.0 (Fri May 15 2020)
|
||||
|
||||
#### 🚀 Enhancement
|
||||
|
||||
- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil))
|
||||
|
||||
#### Authors: 1
|
||||
|
||||
- Eric Rabil ([@EricRabil](https://github.com/EricRabil))
|
||||
|
||||
---
|
||||
|
||||
# v0.9.4 (Tue Mar 03 2020)
|
||||
|
||||
#### 🐛 Bug Fix
|
||||
|
||||
- `@jimp/plugin-shadow`
|
||||
- Update plugin-shadow type definition. [#841](https://github.com/oliver-moran/jimp/pull/841) ([@lekoaf](https://github.com/lekoaf))
|
||||
|
||||
#### Authors: 1
|
||||
|
||||
- Martin ([@lekoaf](https://github.com/lekoaf))
|
||||
|
||||
---
|
||||
|
||||
# v0.9.3 (Tue Nov 26 2019)
|
||||
|
||||
#### 🐛 Bug Fix
|
||||
|
||||
- `@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`
|
||||
- Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie))
|
||||
|
||||
#### Authors: 2
|
||||
|
||||
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
||||
- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn))
|
||||
+21
@@ -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
@@ -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-shadow</h1>
|
||||
<p>Creates a shadow on an image.</p>
|
||||
</div>
|
||||
|
||||
## Usage
|
||||
|
||||
- @param {function(Error, Jimp)} options (optional)
|
||||
- opacity - opacity of the shadow between 0 and 1
|
||||
- size,- of the shadow
|
||||
- blur - how blurry the shadow is
|
||||
- x - x position of shadow
|
||||
- y - y position of shadow
|
||||
- @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.shadow();
|
||||
// or
|
||||
image.shadow({ opacity: 0.8, size: 1.2, blur: 10, x: -75, y: -75 });
|
||||
}
|
||||
|
||||
main();
|
||||
```
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
module.exports = (api) => {
|
||||
api.cache(true);
|
||||
|
||||
return {
|
||||
presets: [
|
||||
[
|
||||
"@babel/env",
|
||||
{
|
||||
useBuiltIns: "usage",
|
||||
},
|
||||
],
|
||||
],
|
||||
|
||||
plugins: [
|
||||
"@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"] },
|
||||
],
|
||||
].filter(Boolean),
|
||||
|
||||
env: {
|
||||
test: {
|
||||
plugins: ["istanbul"],
|
||||
},
|
||||
development: {
|
||||
plugins: [process.env.ENV !== "browser" && "source-map-support"].filter(
|
||||
Boolean
|
||||
),
|
||||
},
|
||||
module: {
|
||||
presets: [["@babel/env", { modules: false }]],
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
import { isNodePattern } from "@jimp/utils";
|
||||
|
||||
/**
|
||||
* Creates a circle out of an image.
|
||||
* @param {function(Error, Jimp)} options (optional)
|
||||
* opacity - opacity of the shadow between 0 and 1
|
||||
* size,- of the shadow
|
||||
* blur - how blurry the shadow is
|
||||
* x- x position of shadow
|
||||
* y - y position of shadow
|
||||
* @param {function(Error, Jimp)} cb (optional) a callback for when complete
|
||||
* @returns {Jimp} this for chaining of methods
|
||||
*/
|
||||
export default (() => ({
|
||||
shadow() {
|
||||
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
let cb = arguments.length > 1 ? arguments[1] : undefined;
|
||||
if (typeof options === "function") {
|
||||
cb = options;
|
||||
options = {};
|
||||
}
|
||||
const {
|
||||
opacity = 0.7,
|
||||
size = 1.1,
|
||||
x = -25,
|
||||
y = 25,
|
||||
blur = 5
|
||||
} = options;
|
||||
|
||||
// clone the image
|
||||
const orig = this.clone();
|
||||
const shadow = this.clone();
|
||||
|
||||
// turn all it's pixels black
|
||||
shadow.scan(0, 0, shadow.bitmap.width, shadow.bitmap.height, (x, y, idx) => {
|
||||
shadow.bitmap.data[idx] = 0x00;
|
||||
shadow.bitmap.data[idx + 1] = 0x00;
|
||||
shadow.bitmap.data[idx + 2] = 0x00;
|
||||
// up the opacity a little,
|
||||
shadow.bitmap.data[idx + 3] = shadow.constructor.limit255(shadow.bitmap.data[idx + 3] * opacity);
|
||||
this.bitmap.data[idx] = 0x00;
|
||||
this.bitmap.data[idx + 1] = 0x00;
|
||||
this.bitmap.data[idx + 2] = 0x00;
|
||||
this.bitmap.data[idx + 3] = 0x00;
|
||||
});
|
||||
|
||||
// enlarge it. This creates a "shadow".
|
||||
shadow.resize(shadow.bitmap.width * size, shadow.bitmap.height * size).blur(blur);
|
||||
|
||||
// Then blit the "shadow" onto the background and the image on top of that.
|
||||
this.composite(shadow, x, y);
|
||||
this.composite(orig, 0, 0);
|
||||
if (isNodePattern(cb)) {
|
||||
cb.call(this, null, this);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
}));
|
||||
//# sourceMappingURL=index.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","names":["isNodePattern","shadow","options","cb","opacity","size","x","y","blur","orig","clone","scan","bitmap","width","height","idx","data","constructor","limit255","resize","composite","call"],"sources":["../src/index.js"],"sourcesContent":["import { isNodePattern } from \"@jimp/utils\";\n\n/**\n * Creates a circle out of an image.\n * @param {function(Error, Jimp)} options (optional)\n * opacity - opacity of the shadow between 0 and 1\n * size,- of the shadow\n * blur - how blurry the shadow is\n * x- x position of shadow\n * y - y position of shadow\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\nexport default () => ({\n shadow(options = {}, cb) {\n if (typeof options === \"function\") {\n cb = options;\n options = {};\n }\n\n const { opacity = 0.7, size = 1.1, x = -25, y = 25, blur = 5 } = options;\n\n // clone the image\n const orig = this.clone();\n const shadow = this.clone();\n\n // turn all it's pixels black\n shadow.scan(\n 0,\n 0,\n shadow.bitmap.width,\n shadow.bitmap.height,\n (x, y, idx) => {\n shadow.bitmap.data[idx] = 0x00;\n shadow.bitmap.data[idx + 1] = 0x00;\n shadow.bitmap.data[idx + 2] = 0x00;\n // up the opacity a little,\n shadow.bitmap.data[idx + 3] = shadow.constructor.limit255(\n shadow.bitmap.data[idx + 3] * opacity\n );\n\n this.bitmap.data[idx] = 0x00;\n this.bitmap.data[idx + 1] = 0x00;\n this.bitmap.data[idx + 2] = 0x00;\n this.bitmap.data[idx + 3] = 0x00;\n }\n );\n\n // enlarge it. This creates a \"shadow\".\n shadow\n .resize(shadow.bitmap.width * size, shadow.bitmap.height * size)\n .blur(blur);\n\n // Then blit the \"shadow\" onto the background and the image on top of that.\n this.composite(shadow, x, y);\n this.composite(orig, 0, 0);\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n});\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,aAAa;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;EACpBC,MAAM,GAAmB;IAAA,IAAlBC,OAAO,uEAAG,CAAC,CAAC;IAAA,IAAEC,EAAE;IACrB,IAAI,OAAOD,OAAO,KAAK,UAAU,EAAE;MACjCC,EAAE,GAAGD,OAAO;MACZA,OAAO,GAAG,CAAC,CAAC;IACd;IAEA,MAAM;MAAEE,OAAO,GAAG,GAAG;MAAEC,IAAI,GAAG,GAAG;MAAEC,CAAC,GAAG,CAAC,EAAE;MAAEC,CAAC,GAAG,EAAE;MAAEC,IAAI,GAAG;IAAE,CAAC,GAAGN,OAAO;;IAExE;IACA,MAAMO,IAAI,GAAG,IAAI,CAACC,KAAK,EAAE;IACzB,MAAMT,MAAM,GAAG,IAAI,CAACS,KAAK,EAAE;;IAE3B;IACAT,MAAM,CAACU,IAAI,CACT,CAAC,EACD,CAAC,EACDV,MAAM,CAACW,MAAM,CAACC,KAAK,EACnBZ,MAAM,CAACW,MAAM,CAACE,MAAM,EACpB,CAACR,CAAC,EAAEC,CAAC,EAAEQ,GAAG,KAAK;MACbd,MAAM,CAACW,MAAM,CAACI,IAAI,CAACD,GAAG,CAAC,GAAG,IAAI;MAC9Bd,MAAM,CAACW,MAAM,CAACI,IAAI,CAACD,GAAG,GAAG,CAAC,CAAC,GAAG,IAAI;MAClCd,MAAM,CAACW,MAAM,CAACI,IAAI,CAACD,GAAG,GAAG,CAAC,CAAC,GAAG,IAAI;MAClC;MACAd,MAAM,CAACW,MAAM,CAACI,IAAI,CAACD,GAAG,GAAG,CAAC,CAAC,GAAGd,MAAM,CAACgB,WAAW,CAACC,QAAQ,CACvDjB,MAAM,CAACW,MAAM,CAACI,IAAI,CAACD,GAAG,GAAG,CAAC,CAAC,GAAGX,OAAO,CACtC;MAED,IAAI,CAACQ,MAAM,CAACI,IAAI,CAACD,GAAG,CAAC,GAAG,IAAI;MAC5B,IAAI,CAACH,MAAM,CAACI,IAAI,CAACD,GAAG,GAAG,CAAC,CAAC,GAAG,IAAI;MAChC,IAAI,CAACH,MAAM,CAACI,IAAI,CAACD,GAAG,GAAG,CAAC,CAAC,GAAG,IAAI;MAChC,IAAI,CAACH,MAAM,CAACI,IAAI,CAACD,GAAG,GAAG,CAAC,CAAC,GAAG,IAAI;IAClC,CAAC,CACF;;IAED;IACAd,MAAM,CACHkB,MAAM,CAAClB,MAAM,CAACW,MAAM,CAACC,KAAK,GAAGR,IAAI,EAAEJ,MAAM,CAACW,MAAM,CAACE,MAAM,GAAGT,IAAI,CAAC,CAC/DG,IAAI,CAACA,IAAI,CAAC;;IAEb;IACA,IAAI,CAACY,SAAS,CAACnB,MAAM,EAAEK,CAAC,EAAEC,CAAC,CAAC;IAC5B,IAAI,CAACa,SAAS,CAACX,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;IAE1B,IAAIT,aAAa,CAACG,EAAE,CAAC,EAAE;MACrBA,EAAE,CAACkB,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;IAC3B;IAEA,OAAO,IAAI;EACb;AACF,CAAC,CAAC"}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
import { ImageCallback } from "@jimp/core";
|
||||
|
||||
interface Shadow {
|
||||
shadow(
|
||||
options?: {
|
||||
size?: number;
|
||||
opacity?: number;
|
||||
blur: number;
|
||||
x?: number;
|
||||
y?: number;
|
||||
},
|
||||
cb?: ImageCallback<this>
|
||||
): this;
|
||||
shadow(cb?: ImageCallback<this>): this;
|
||||
}
|
||||
|
||||
export default function (): Shadow;
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"name": "@jimp/plugin-shadow",
|
||||
"version": "0.22.12",
|
||||
"description": "Creates a shadow on an image.",
|
||||
"main": "dist/index.js",
|
||||
"module": "es/index.js",
|
||||
"repository": "jimp-dev/jimp",
|
||||
"types": "index.d.ts",
|
||||
"scripts": {
|
||||
"test": "cross-env BABEL_ENV=test mocha --require @babel/register --recursive test --extension js",
|
||||
"test:watch": "npm run test -- --reporter min --watch",
|
||||
"test:coverage": "nyc npm run test",
|
||||
"build": "npm run build:node:production && npm run build:module",
|
||||
"build:watch": "npm run build:node:debug -- -- --watch --verbose",
|
||||
"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"
|
||||
},
|
||||
"author": "",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@jimp/utils": "^0.22.12"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@jimp/custom": ">=0.3.5",
|
||||
"@jimp/plugin-blur": ">=0.3.5",
|
||||
"@jimp/plugin-resize": ">=0.3.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jimp/custom": "^0.22.12",
|
||||
"@jimp/plugin-blur": "^0.22.12",
|
||||
"@jimp/plugin-resize": "^0.22.12",
|
||||
"@jimp/test-utils": "^0.22.12"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "a4a8d6364bbf97629749e196f3b0a4c94c9a7abc"
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
import { isNodePattern } from "@jimp/utils";
|
||||
|
||||
/**
|
||||
* Creates a circle out of an image.
|
||||
* @param {function(Error, Jimp)} options (optional)
|
||||
* opacity - opacity of the shadow between 0 and 1
|
||||
* size,- of the shadow
|
||||
* blur - how blurry the shadow is
|
||||
* x- x position of shadow
|
||||
* y - y position of shadow
|
||||
* @param {function(Error, Jimp)} cb (optional) a callback for when complete
|
||||
* @returns {Jimp} this for chaining of methods
|
||||
*/
|
||||
export default () => ({
|
||||
shadow(options = {}, cb) {
|
||||
if (typeof options === "function") {
|
||||
cb = options;
|
||||
options = {};
|
||||
}
|
||||
|
||||
const { opacity = 0.7, size = 1.1, x = -25, y = 25, blur = 5 } = options;
|
||||
|
||||
// clone the image
|
||||
const orig = this.clone();
|
||||
const shadow = this.clone();
|
||||
|
||||
// turn all it's pixels black
|
||||
shadow.scan(
|
||||
0,
|
||||
0,
|
||||
shadow.bitmap.width,
|
||||
shadow.bitmap.height,
|
||||
(x, y, idx) => {
|
||||
shadow.bitmap.data[idx] = 0x00;
|
||||
shadow.bitmap.data[idx + 1] = 0x00;
|
||||
shadow.bitmap.data[idx + 2] = 0x00;
|
||||
// up the opacity a little,
|
||||
shadow.bitmap.data[idx + 3] = shadow.constructor.limit255(
|
||||
shadow.bitmap.data[idx + 3] * opacity
|
||||
);
|
||||
|
||||
this.bitmap.data[idx] = 0x00;
|
||||
this.bitmap.data[idx + 1] = 0x00;
|
||||
this.bitmap.data[idx + 2] = 0x00;
|
||||
this.bitmap.data[idx + 3] = 0x00;
|
||||
}
|
||||
);
|
||||
|
||||
// enlarge it. This creates a "shadow".
|
||||
shadow
|
||||
.resize(shadow.bitmap.width * size, shadow.bitmap.height * size)
|
||||
.blur(blur);
|
||||
|
||||
// Then blit the "shadow" onto the background and the image on top of that.
|
||||
this.composite(shadow, x, y);
|
||||
this.composite(orig, 0, 0);
|
||||
|
||||
if (isNodePattern(cb)) {
|
||||
cb.call(this, null, this);
|
||||
}
|
||||
|
||||
return this;
|
||||
},
|
||||
});
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 216 B |
+32
@@ -0,0 +1,32 @@
|
||||
import { Jimp, mkJGD, getTestDir } from "@jimp/test-utils";
|
||||
import configure from "@jimp/custom";
|
||||
import resize from "@jimp/plugin-resize";
|
||||
import blur from "@jimp/plugin-blur";
|
||||
import expect from "@storybook/expect";
|
||||
|
||||
import shadow from "../src";
|
||||
|
||||
const jimp = configure({ plugins: [shadow, resize, blur] }, Jimp);
|
||||
|
||||
describe("Shadow", () => {
|
||||
it("creates a shadow", async () => {
|
||||
const expectedImg = await jimp.read(
|
||||
getTestDir(__dirname) + "/images/shadow.png"
|
||||
);
|
||||
const testImage = await jimp.read(
|
||||
mkJGD(
|
||||
" ",
|
||||
" ◆◆ ",
|
||||
" ◆▦▦◆ ",
|
||||
" ◆▦▦▦▦◆ ",
|
||||
" ◆▦▦◆ ",
|
||||
" ◆◆ ",
|
||||
" "
|
||||
)
|
||||
);
|
||||
|
||||
expect(testImage.shadow({ x: -1, y: 1, blur: 1 }).bitmap.data).toEqual(
|
||||
expectedImg.bitmap.data
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user