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.
- package/dist/index.prod.cjs +6 -6
- package/dist/index.prod.cjs.map +1 -1
- package/dist/index.prod.d.ts +9 -9
- package/dist/index.prod.js +5 -5
- package/dist/index.prod.js.map +1 -1
- package/package.json +1 -1
- package/src/History/PixelMutator/{mutatorBlendPaintRect.ts → mutatorBlendColorPaintRect.ts} +2 -2
- package/src/History/PixelMutator.ts +2 -2
- package/src/index.ts +1 -1
package/dist/index.prod.cjs
CHANGED
|
@@ -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/
|
|
3546
|
+
// src/History/PixelMutator/mutatorBlendColorPaintRect.ts
|
|
3547
3547
|
var defaults12 = {
|
|
3548
3548
|
blendColorPixelData
|
|
3549
3549
|
};
|
|
3550
|
-
var
|
|
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
|
-
|
|
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,
|