remove rounding from getClientRect

This commit is contained in:
Anton Lavrenov
2022-03-12 22:28:19 -05:00
parent a75fd53f0e
commit fcf53dc138
13 changed files with 106 additions and 63 deletions

View File

@@ -831,7 +831,8 @@ describe('Caching', function () {
group.cache();
const canvas = group._cache.get('canvas').scene;
assert.equal(canvas.width, 105 * canvas.pixelRatio);
console.log(canvas.width / 2);
assert.equal(canvas.width, 106 * canvas.pixelRatio);
});
it('cache group with rectangle with fill and opacity', function () {
@@ -1468,7 +1469,7 @@ describe('Caching', function () {
layer.draw();
assert.equal(
circle._cache.get('canvas').filter.width,
20 * circle._cache.get('canvas').filter.pixelRatio
21 * circle._cache.get('canvas').filter.pixelRatio
);
circle.filters([]);
// TODO: should we clear cache canvas?