Combine if blocks
This commit is contained in:
@@ -707,10 +707,8 @@ class CanvasExecutor {
|
|||||||
}
|
}
|
||||||
let widthIndex = 0;
|
let widthIndex = 0;
|
||||||
for (; d < dd; d += 2) {
|
for (; d < dd; d += 2) {
|
||||||
if (geometryWidths) {
|
if (geometryWidths && geometryWidths[widthIndex++] < width / this.pixelRatio) {
|
||||||
if (geometryWidths[widthIndex++] < width / this.pixelRatio) {
|
continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
this.replayImage_(context,
|
this.replayImage_(context,
|
||||||
pixelCoordinates[d], pixelCoordinates[d + 1], image, anchorX, anchorY,
|
pixelCoordinates[d], pixelCoordinates[d + 1], image, anchorX, anchorY,
|
||||||
|
|||||||
Reference in New Issue
Block a user