mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -05:00
clearRect() needs + 1 for size.
This commit is contained in:
parent
ca3cc7f46d
commit
ea1e7fccb9
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,7 @@ var Raster = this.Raster = PlacedItem.extend(/** @lends Raster# */{
|
||||||
new Size(sampleSize));
|
new Size(sampleSize));
|
||||||
} else {
|
} else {
|
||||||
// Clear the sample canvas:
|
// Clear the sample canvas:
|
||||||
ctx.clearRect(0, 0, sampleSize, sampleSize);
|
ctx.clearRect(0, 0, sampleSize + 1, sampleSize + 1);
|
||||||
}
|
}
|
||||||
ctx.save();
|
ctx.save();
|
||||||
// Scale the context so that the bounds ends up at the given sample size
|
// Scale the context so that the bounds ends up at the given sample size
|
||||||
|
|
Loading…
Reference in a new issue