This commit is contained in:
Anton Lavrenov 2022-03-12 22:48:54 -05:00
parent fcf53dc138
commit 1e4251b6ca
2 changed files with 16 additions and 15 deletions

View File

@ -60,11 +60,11 @@
}
],
"devDependencies": {
"@parcel/transformer-image": "2.0.0-beta.2",
"@size-limit/preset-big-lib": "^5.0.4",
"@types/mocha": "^9.0.0",
"canvas": "^2.8.0",
"chai": "4.3.4",
"@parcel/transformer-image": "2.3.2",
"@size-limit/preset-big-lib": "^7.0.8",
"@types/mocha": "^9.1.0",
"canvas": "^2.9.0",
"chai": "4.3.6",
"filehound": "^1.17.5",
"gulp": "^4.0.2",
"gulp-concat": "^2.6.1",
@ -77,18 +77,19 @@
"gulp-uglify": "^3.0.2",
"gulp-uglify-es": "^3.0.0",
"gulp-util": "^3.0.8",
"mocha": "8.4.0",
"mocha-headless-chrome": "^3.1.0",
"parcel": "2.0.0-beta.2",
"rollup": "^2.57.0",
"mocha": "9.2.2",
"mocha-headless-chrome": "^4.0.0",
"parcel": "2.3.2",
"process": "^0.11.10",
"rollup": "^2.70.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-typescript2": "^0.30.0",
"size-limit": "^5.0.4",
"ts-mocha": "^8.0.0",
"rollup-plugin-typescript2": "^0.31.2",
"size-limit": "^7.0.8",
"ts-mocha": "^9.0.2",
"ts-node": "^9.1.1",
"typescript": "^4.4.3"
"typescript": "^4.6.2"
},
"keywords": [
"canvas",

View File

@ -70,8 +70,8 @@ describe('Caching', function () {
context.fillStyle = 'green';
context.fill();
compareLayerAndCanvas(layer, canvas, 200);
cloneAndCompareLayer(layer, 150);
compareLayerAndCanvas(layer, canvas, 200, 100);
cloneAndCompareLayer(layer, 150, 100);
});
it('cache rectangle with fill and stroke', function () {