labellife-design-tool 2.4.3 → 2.4.5

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.
@@ -560,6 +560,11 @@ var Shape = Node.named('Shape').props({
560
560
  };
561
561
  });
562
562
 
563
+ // Cover-fit SIZE (no cropping) for an image of natural size over a box of given size.
564
+ // The image is scaled to the smallest size that fully covers the box, preserving aspect
565
+ // ratio — one dimension matches the box, the other is larger and overflows the box
566
+ // (centered overflow on both sides).
567
+
563
568
  // Cover-fit crop fractions (centered) for a box of given size over an image of natural size.
564
569
  // Mirrors the existing auto-crop calculation in canvas/image-element.js.
565
570
  function coverFitCrop(boxWidth, boxHeight, naturalWidth, naturalHeight) {