pixel-data-js 0.26.0 → 0.27.0

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.
@@ -158,8 +158,8 @@ __export(src_exports, {
158
158
  mutatorBlendColorPaintAlphaMask: () => mutatorBlendColorPaintAlphaMask,
159
159
  mutatorBlendColorPaintBinaryMask: () => mutatorBlendColorPaintBinaryMask,
160
160
  mutatorBlendColorPaintMask: () => mutatorBlendColorPaintMask,
161
+ mutatorBlendColorPaintRect: () => mutatorBlendColorPaintRect,
161
162
  mutatorBlendMask: () => mutatorBlendMask,
162
- mutatorBlendPaintRect: () => mutatorBlendPaintRect,
163
163
  mutatorBlendPixel: () => mutatorBlendPixel,
164
164
  mutatorBlendPixelData: () => mutatorBlendPixelData,
165
165
  mutatorClear: () => mutatorClear,
@@ -3543,11 +3543,11 @@ var mutatorBlendMask = ((writer, deps = defaults11) => {
3543
3543
  };
3544
3544
  });
3545
3545
 
3546
- // src/History/PixelMutator/mutatorBlendPaintRect.ts
3546
+ // src/History/PixelMutator/mutatorBlendColorPaintRect.ts
3547
3547
  var defaults12 = {
3548
3548
  blendColorPixelData
3549
3549
  };
3550
- var mutatorBlendPaintRect = ((writer, deps = defaults12) => {
3550
+ var mutatorBlendColorPaintRect = ((writer, deps = defaults12) => {
3551
3551
  const {
3552
3552
  blendColorPixelData: blendColorPixelData2 = defaults12.blendColorPixelData
3553
3553
  } = deps;
@@ -3560,7 +3560,7 @@ var mutatorBlendPaintRect = ((writer, deps = defaults12) => {
3560
3560
  alpha: 255
3561
3561
  };
3562
3562
  return {
3563
- blendPaintRect(color, centerX, centerY, brushWidth, brushHeight, alpha = 255, blendFn = sourceOverPerfect) {
3563
+ blendColorPaintRect(color, centerX, centerY, brushWidth, brushHeight, alpha = 255, blendFn = sourceOverPerfect) {
3564
3564
  const target = writer.config.target;
3565
3565
  const topLeftX = centerX + -(brushWidth - 1 >> 1);
3566
3566
  const topLeftY = centerY + -(brushHeight - 1 >> 1);
@@ -3879,8 +3879,8 @@ function makeFullPixelMutator(writer) {
3879
3879
  ...mutatorBlendColorPaintAlphaMask(writer),
3880
3880
  ...mutatorBlendColorPaintBinaryMask(writer),
3881
3881
  ...mutatorBlendColorPaintMask(writer),
3882
+ ...mutatorBlendColorPaintRect(writer),
3882
3883
  ...mutatorBlendMask(writer),
3883
- ...mutatorBlendPaintRect(writer),
3884
3884
  ...mutatorBlendPixel(writer),
3885
3885
  ...mutatorBlendPixelData(writer),
3886
3886
  ...mutatorClear(writer),
@@ -5525,8 +5525,8 @@ function writePaintBufferToPixelData(target, paintBuffer, writePixelDataBufferFn
5525
5525
  mutatorBlendColorPaintAlphaMask,
5526
5526
  mutatorBlendColorPaintBinaryMask,
5527
5527
  mutatorBlendColorPaintMask,
5528
+ mutatorBlendColorPaintRect,
5528
5529
  mutatorBlendMask,
5529
- mutatorBlendPaintRect,
5530
5530
  mutatorBlendPixel,
5531
5531
  mutatorBlendPixelData,
5532
5532
  mutatorClear,