@janovix/blocks 1.2.0-rc.21 → 1.2.0-rc.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -3909,6 +3909,10 @@ function AvatarEditor({
3909
3909
  drawHeight
3910
3910
  );
3911
3911
  ctx.restore();
3912
+ ctx.globalCompositeOperation = "destination-in";
3913
+ ctx.beginPath();
3914
+ ctx.arc(outputSize / 2, outputSize / 2, outputSize / 2, 0, Math.PI * 2);
3915
+ ctx.fill();
3912
3916
  const mimeType = `image/${outputFormat}`;
3913
3917
  return outputCanvas.toDataURL(mimeType, outputQuality);
3914
3918
  }, [