pixel-data-js 0.20.0 → 0.21.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.dev.cjs +6 -4
- package/dist/index.dev.cjs.map +1 -1
- package/dist/index.dev.js +6 -4
- package/dist/index.dev.js.map +1 -1
- package/dist/index.prod.cjs +6 -4
- package/dist/index.prod.cjs.map +1 -1
- package/dist/index.prod.d.ts +5 -5
- package/dist/index.prod.js +6 -4
- package/dist/index.prod.js.map +1 -1
- package/package.json +1 -1
- package/src/History/PixelMutator/mutatorClear.ts +4 -3
- package/src/History/PixelMutator/mutatorFill.ts +4 -3
- package/src/PixelData/clearPixelData.ts +2 -2
package/dist/index.dev.cjs
CHANGED
|
@@ -3326,10 +3326,11 @@ var mutatorClear = ((writer, deps = defaults12) => {
|
|
|
3326
3326
|
x = 0,
|
|
3327
3327
|
y = 0,
|
|
3328
3328
|
w = writer.target.width,
|
|
3329
|
-
h = writer.target.height
|
|
3329
|
+
h = writer.target.height,
|
|
3330
|
+
mask = void 0
|
|
3330
3331
|
} = rect;
|
|
3331
3332
|
writer.accumulator.storeRegionBeforeState(x, y, w, h);
|
|
3332
|
-
fillPixelData2(writer.target, 0, x, y, w, h);
|
|
3333
|
+
fillPixelData2(writer.target, 0, x, y, w, h, mask);
|
|
3333
3334
|
}
|
|
3334
3335
|
};
|
|
3335
3336
|
});
|
|
@@ -3348,10 +3349,11 @@ var mutatorFill = ((writer, deps = defaults13) => {
|
|
|
3348
3349
|
x = 0,
|
|
3349
3350
|
y = 0,
|
|
3350
3351
|
w = writer.target.width,
|
|
3351
|
-
h = writer.target.height
|
|
3352
|
+
h = writer.target.height,
|
|
3353
|
+
mask = void 0
|
|
3352
3354
|
} = rect;
|
|
3353
3355
|
writer.accumulator.storeRegionBeforeState(x, y, w, h);
|
|
3354
|
-
fillPixelData2(writer.target, color, x, y, w, h);
|
|
3356
|
+
fillPixelData2(writer.target, color, x, y, w, h, mask);
|
|
3355
3357
|
}
|
|
3356
3358
|
};
|
|
3357
3359
|
});
|