Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ansis committed Nov 26, 2019
1 parent 8e14cc4 commit f0648f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions debug/stretchable.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
let rgb =
x < border || x + border > width - 1 ||
y < border || y + border > width - 1 ?
rgb2 :
rgb1;
rgb2 :
rgb1;

const half = width / 2;
if (Math.abs(x - half) + Math.abs(y - half) < border / 2) {
Expand All @@ -64,8 +64,8 @@
}
}

map.addImage(id, {width: width, height: width, data: data}, {
content: [border, border, width - border, width- border],
map.addImage(id, {width, height: width, data}, {
content: [border, border, width - border, width - border],
stretchX: [[border, (width - border) / 2], [(width + border) / 2, width - border]],
stretchY: [[border, (width - border) / 2], [(width + border) / 2, width - border]]
});
Expand Down

0 comments on commit f0648f8

Please sign in to comment.