Showing the changes to assets/javascripts (1 of 1 file). Show all
Unified · Split
| @@ -49,11 +49,6 @@ withImage = (url, action) -> · 48 unmodified lines | ||
| 49 | 49 | docIconPercentage = 65 |
| 50 | 50 | destinationCoords = size / 100 * (100 - docIconPercentage) |
| 51 | 51 | destinationSize = size / 100 * docIconPercentage |
| 52 | − paddingSize = destinationSize + 1 | |
| 53 | − | |
| 54 | − imageData = ctx.getImageData(destinationCoords, destinationCoords, paddingSize, paddingSize) | |
| 55 | − transparentImageData = new ImageData(new Uint8ClampedArray(imageData.data.length), paddingSize, paddingSize) | |
| 56 | − ctx.putImageData(transparentImageData, destinationCoords, destinationCoords) | |
| 57 | 52 | |
| 58 | 53 | ctx.drawImage(docImg, sourceX, sourceY, sourceSize, sourceSize, destinationCoords, destinationCoords, destinationSize, destinationSize) |
| 59 | 54 | |