Commit d4974e48 authored by Jérome Perrin's avatar Jérome Perrin
parent b415abbb
Pipeline #35655 failed with stage
in 0 seconds
...@@ -7176,10 +7176,12 @@ ...@@ -7176,10 +7176,12 @@
return [3 /*break*/, 4]; return [3 /*break*/, 4];
case 4: case 4:
if (image) { if (image) {
var imageWidth = isNaN(image.width) || image.width === 0 ? 1 : image.width;
var imageHeight = isNaN(image.height) || image.height === 0 ? 1 : image.height;
_c = calculateBackgroundRendering(container, index, [ _c = calculateBackgroundRendering(container, index, [
image.width, imageWidth,
image.height, imageHeight,
image.width / image.height imageWidth / imageHeight
]), path = _c[0], x = _c[1], y = _c[2], width = _c[3], height = _c[4]; ]), path = _c[0], x = _c[1], y = _c[2], width = _c[3], height = _c[4];
pattern = this_1.ctx.createPattern(this_1.resizeImage(image, width, height), 'repeat'); pattern = this_1.ctx.createPattern(this_1.resizeImage(image, width, height), 'repeat');
this_1.renderRepeat(path, pattern, x, y); this_1.renderRepeat(path, pattern, x, y);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment