karthikeya1212 commited on
Commit
87e33a0
·
verified ·
1 Parent(s): 06a3f9c

Update app/core/shadowGenerator.js

Browse files
Files changed (1) hide show
  1. app/core/shadowGenerator.js +1 -1
app/core/shadowGenerator.js CHANGED
@@ -217,7 +217,7 @@ function drawCastShadow(ctx, img, w, h, blur, opacity, baseX, baseY, lightX, lig
217
  ctx.globalAlpha = opacity;
218
  const drawPosX = -w / 2 - pad / 2;
219
  const drawPosY = -h - pad / 2 + overlap;
220
- ctx.drawImage(shadowCanvas, drawPosX, drawPosY+(30), shadowW, shadowH);
221
 
222
  ctx.restore();
223
  }
 
217
  ctx.globalAlpha = opacity;
218
  const drawPosX = -w / 2 - pad / 2;
219
  const drawPosY = -h - pad / 2 + overlap;
220
+ ctx.drawImage(shadowCanvas, drawPosX, drawPosY-(30), shadowW, shadowH);
221
 
222
  ctx.restore();
223
  }