@pixerate/editor 0.132.0 → 0.133.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/animation-editor/index.cjs +55 -55
- package/dist/animation-editor/index.d.cts +4 -4
- package/dist/animation-editor/index.d.ts +4 -4
- package/dist/animation-editor/index.js +2 -2
- package/dist/{bezier-0IHDCvv_.d.ts → bezier-BAGdL89w.d.ts} +1 -1
- package/dist/{bezier-oCBfrGDG.d.cts → bezier-DL2wPsFf.d.cts} +1 -1
- package/dist/canvas/index.d.cts +7 -7
- package/dist/canvas/index.d.ts +7 -7
- package/dist/{chunk-MZXQTKUM.cjs → chunk-24ATT2PE.cjs} +10 -6
- package/dist/chunk-24ATT2PE.cjs.map +1 -0
- package/dist/{chunk-AHUYMDYW.js → chunk-2HC4DRF4.js} +10 -6
- package/dist/chunk-2HC4DRF4.js.map +1 -0
- package/dist/{chunk-OYPJGGF3.cjs → chunk-2QKUD3E2.cjs} +36 -36
- package/dist/{chunk-OYPJGGF3.cjs.map → chunk-2QKUD3E2.cjs.map} +1 -1
- package/dist/{chunk-55UEZIU4.cjs → chunk-65GNHOD4.cjs} +231 -191
- package/dist/chunk-65GNHOD4.cjs.map +1 -0
- package/dist/{chunk-YRZ6NVE3.js → chunk-6CTZAGZ2.js} +235 -4
- package/dist/chunk-6CTZAGZ2.js.map +1 -0
- package/dist/{chunk-G5FX56KX.js → chunk-AOCFL7L7.js} +51 -11
- package/dist/chunk-AOCFL7L7.js.map +1 -0
- package/dist/{chunk-YYJKIESX.cjs → chunk-F7GGEAO2.cjs} +4 -2
- package/dist/chunk-F7GGEAO2.cjs.map +1 -0
- package/dist/{chunk-IEYXYMRQ.js → chunk-FOBB6AIO.js} +3 -1
- package/dist/chunk-FOBB6AIO.js.map +1 -0
- package/dist/{chunk-W6M7C7R3.cjs → chunk-NVTHUPJ6.cjs} +236 -5
- package/dist/chunk-NVTHUPJ6.cjs.map +1 -0
- package/dist/{chunk-ECVI5QRE.js → chunk-VGZSIXX3.js} +2 -2
- package/dist/effects/index.d.cts +4 -4
- package/dist/effects/index.d.ts +4 -4
- package/dist/{export-D-gkjBkB.d.cts → export-BICOEM9d.d.cts} +10 -10
- package/dist/{export-CfAogLEr.d.cts → export-CeFplzAW.d.cts} +1 -1
- package/dist/{export-ByJvAvR7.d.ts → export-XnuX8FZ2.d.ts} +10 -10
- package/dist/{export-Crl82sbE.d.ts → export-zB4HITwP.d.ts} +1 -1
- package/dist/{helpers-CoIeXQnW.d.cts → helpers-BuKdqUlM.d.cts} +23 -1
- package/dist/{helpers-BCd2-PAR.d.ts → helpers-cssRNUzH.d.ts} +23 -1
- package/dist/image-editor/index.cjs +983 -874
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +32 -13
- package/dist/image-editor/index.d.ts +32 -13
- package/dist/image-editor/index.js +124 -15
- package/dist/image-editor/index.js.map +1 -1
- package/dist/{opentype-BDahNRTe.d.cts → opentype-C3iyIFRx.d.cts} +1 -1
- package/dist/{opentype-BQFEvy-t.d.ts → opentype-DG5Lkwul.d.ts} +1 -1
- package/dist/paint/index.cjs +8 -2
- package/dist/paint/index.cjs.map +1 -1
- package/dist/paint/index.d.cts +14 -3
- package/dist/paint/index.d.ts +14 -3
- package/dist/paint/index.js +7 -1
- package/dist/paint-editor/index.cjs +78 -78
- package/dist/paint-editor/index.d.cts +7 -7
- package/dist/paint-editor/index.d.ts +7 -7
- package/dist/paint-editor/index.js +3 -3
- package/dist/{pathfinder-01ZgAwqV.d.cts → pathfinder-8vXik95z.d.cts} +1 -1
- package/dist/{pathfinder-DaVdT8jq.d.ts → pathfinder-DKLt4UDG.d.ts} +1 -1
- package/dist/{pool-D2A3WTt9.d.ts → pool-C69pkWRz.d.ts} +1 -1
- package/dist/{pool-D6a45MoE.d.cts → pool-VAWcYUbs.d.cts} +1 -1
- package/dist/{rand-pQQ2sJTk.d.ts → rand-BaqEOs1Y.d.ts} +17 -4
- package/dist/{rand-DTXAssW1.d.cts → rand-DdpFzCo6.d.cts} +17 -4
- package/dist/raster/index.cjs +2 -2
- package/dist/raster/index.d.cts +4 -4
- package/dist/raster/index.d.ts +4 -4
- package/dist/raster/index.js +1 -1
- package/dist/{svg-CcDz7Zq2.d.cts → svg-BThlZmja.d.cts} +2 -2
- package/dist/{svg-DELNVerw.d.ts → svg-CEYpvsgH.d.ts} +2 -2
- package/dist/{tools-BFvkFnRj.d.cts → tools-CRnZJXXr.d.cts} +1 -1
- package/dist/{tools-D7ws-OKL.d.ts → tools-CVGqEpO8.d.ts} +1 -1
- package/dist/vector/index.cjs +1383 -1044
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.d.cts +102 -12
- package/dist/vector/index.d.ts +102 -12
- package/dist/vector/index.js +342 -3
- package/dist/vector/index.js.map +1 -1
- package/dist/video-editor/index.d.cts +4 -4
- package/dist/video-editor/index.d.ts +4 -4
- package/dist/{warp-DErXW5rz.d.cts → warp-ChcFDdlT.d.cts} +1 -1
- package/dist/{warp-2N9wkOkL.d.ts → warp-mKylbLiF.d.ts} +1 -1
- package/package.json +1 -1
- package/skills/pixerate-image-editor/SKILL.md +1 -1
- package/skills/pixerate-image-editor/references/retouching.md +3 -2
- package/dist/chunk-55UEZIU4.cjs.map +0 -1
- package/dist/chunk-AHUYMDYW.js.map +0 -1
- package/dist/chunk-G5FX56KX.js.map +0 -1
- package/dist/chunk-IEYXYMRQ.js.map +0 -1
- package/dist/chunk-MZXQTKUM.cjs.map +0 -1
- package/dist/chunk-W6M7C7R3.cjs.map +0 -1
- package/dist/chunk-YRZ6NVE3.js.map +0 -1
- package/dist/chunk-YYJKIESX.cjs.map +0 -1
- /package/dist/{chunk-ECVI5QRE.js.map → chunk-VGZSIXX3.js.map} +0 -0
|
@@ -1981,7 +1981,7 @@ var DeepCompositor = class {
|
|
|
1981
1981
|
const layer = step.layer;
|
|
1982
1982
|
if (!layer.visible) return empty;
|
|
1983
1983
|
const clipped = step.clipped.filter((l) => l.visible);
|
|
1984
|
-
if (step.kind === "content" && this.deepEffects(layer)) return this.runEffects(layer, clipped, acc, r) ? false : empty;
|
|
1984
|
+
if ((step.kind === "content" || step.kind === "group") && this.deepEffects(layer)) return this.runEffects(layer, clipped, acc, r, step.kind === "group" ? step.steps : null) ? false : empty;
|
|
1985
1985
|
const coverage = this.renderedAlone(layer) ? null : this.base.maskCoverage(layer, r, this.sources);
|
|
1986
1986
|
if (coverage && coverage.every((v) => v <= 0)) return empty;
|
|
1987
1987
|
if (step.kind === "group" && !this.renderedAlone(layer)) {
|
|
@@ -2020,11 +2020,15 @@ var DeepCompositor = class {
|
|
|
2020
2020
|
* bits the effects composite in sRGB-encoded values (their colours and blends are defined
|
|
2021
2021
|
* there) and the result is decoded back. Returns whether anything was drawn.
|
|
2022
2022
|
*/
|
|
2023
|
-
runEffects(layer, clipped, acc, r) {
|
|
2023
|
+
runEffects(layer, clipped, acc, r, groupSteps = null) {
|
|
2024
2024
|
const fx = this.base.effectsInput(layer, r, this.sources);
|
|
2025
2025
|
if (!fx) return false;
|
|
2026
2026
|
const a = fx.rect;
|
|
2027
|
-
|
|
2027
|
+
let content;
|
|
2028
|
+
if (groupSteps) {
|
|
2029
|
+
content = new Float32Array(a.width * a.height * 4);
|
|
2030
|
+
this.runSteps(groupSteps, content, true, a);
|
|
2031
|
+
} else content = this.content(layer, a) ?? new Float32Array(a.width * a.height * 4);
|
|
2028
2032
|
const coverage = this.base.maskCoverage(layer, a, this.sources);
|
|
2029
2033
|
if (coverage) for (let i = 0; i < coverage.length; i++) content[i * 4 + 3] *= coverage[i];
|
|
2030
2034
|
if (clipped.length) this.applyClipped(clipped, content, a);
|
|
@@ -2095,9 +2099,9 @@ var DeepCompositor = class {
|
|
|
2095
2099
|
}
|
|
2096
2100
|
// --- Layer content ---------------------------------------------------------------
|
|
2097
2101
|
/** Layers drawn by the 8-bit compositor alone (effects, pixel filters, content the editor draws). */
|
|
2098
|
-
/** A pixel(-like) layer with effects: composited in float through `compositeLayerEffects`. */
|
|
2102
|
+
/** A pixel(-like) layer or a group with effects: composited in float through `compositeLayerEffects`. */
|
|
2099
2103
|
deepEffects(layer) {
|
|
2100
|
-
return hasActiveEffects(layer.effects) && !this.isFilter(layer) &&
|
|
2104
|
+
return hasActiveEffects(layer.effects) && !this.isFilter(layer) && (isGroup(layer) || this.isPixel(layer));
|
|
2101
2105
|
}
|
|
2102
2106
|
renderedAlone(layer) {
|
|
2103
2107
|
if (hasActiveEffects(layer.effects) && !this.isFilter(layer) && !this.deepEffects(layer)) return true;
|
|
@@ -4310,4 +4314,4 @@ export {
|
|
|
4310
4314
|
warpSurface,
|
|
4311
4315
|
compositeSurfaceOver
|
|
4312
4316
|
};
|
|
4313
|
-
//# sourceMappingURL=chunk-
|
|
4317
|
+
//# sourceMappingURL=chunk-2HC4DRF4.js.map
|