@pixerate/editor 0.129.0 → 0.132.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 +5 -5
- package/dist/animation-editor/index.d.ts +5 -5
- package/dist/animation-editor/index.js +2 -2
- package/dist/{bezier-DP4NnJp3.d.ts → bezier-0IHDCvv_.d.ts} +1 -1
- package/dist/{bezier-CvgQiYRg.d.cts → bezier-oCBfrGDG.d.cts} +1 -1
- package/dist/canvas/index.d.cts +7 -7
- package/dist/canvas/index.d.ts +7 -7
- package/dist/{chunk-XLUYXUBD.cjs → chunk-55UEZIU4.cjs} +119 -90
- package/dist/chunk-55UEZIU4.cjs.map +1 -0
- package/dist/{chunk-A6KHMKI4.js → chunk-ECVI5QRE.js} +2 -2
- package/dist/{chunk-F7Q2NE2Y.js → chunk-G5FX56KX.js} +39 -10
- package/dist/{chunk-F7Q2NE2Y.js.map → chunk-G5FX56KX.js.map} +1 -1
- package/dist/{chunk-ROZFX4QI.js → chunk-IEYXYMRQ.js} +556 -13
- package/dist/chunk-IEYXYMRQ.js.map +1 -0
- package/dist/{chunk-BEGEWQHD.cjs → chunk-OYPJGGF3.cjs} +36 -36
- package/dist/{chunk-BEGEWQHD.cjs.map → chunk-OYPJGGF3.cjs.map} +1 -1
- package/dist/{chunk-ORE334I6.cjs → chunk-YYJKIESX.cjs} +619 -76
- package/dist/chunk-YYJKIESX.cjs.map +1 -0
- package/dist/effects/index.d.cts +4 -4
- package/dist/effects/index.d.ts +4 -4
- package/dist/{export-DotEEyXj.d.ts → export-ByJvAvR7.d.ts} +26 -4
- package/dist/{export-Cbr9IqpJ.d.cts → export-CfAogLEr.d.cts} +1 -1
- package/dist/{export-ClPKUB-v.d.ts → export-Crl82sbE.d.ts} +1 -1
- package/dist/{export-DRzNhrdx.d.cts → export-D-gkjBkB.d.cts} +26 -4
- package/dist/{helpers-CPWcK504.d.ts → helpers-BCd2-PAR.d.ts} +67 -3
- package/dist/{helpers-C5aAd44p.d.cts → helpers-CoIeXQnW.d.cts} +67 -3
- package/dist/image-editor/index.cjs +775 -723
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +8 -8
- package/dist/image-editor/index.d.ts +8 -8
- package/dist/image-editor/index.js +59 -7
- package/dist/image-editor/index.js.map +1 -1
- package/dist/index.cjs +11 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/{opentype-BOewaGQx.d.cts → opentype-BDahNRTe.d.cts} +2 -2
- package/dist/{opentype-sQrF3Ry1.d.ts → opentype-BQFEvy-t.d.ts} +2 -2
- package/dist/paint-editor/index.cjs +7 -7
- package/dist/paint-editor/index.d.cts +5 -5
- package/dist/paint-editor/index.d.ts +5 -5
- package/dist/paint-editor/index.js +2 -2
- package/dist/{pathfinder-CnkW7zLI.d.cts → pathfinder-01ZgAwqV.d.cts} +1 -1
- package/dist/{pathfinder-BwJx0_zM.d.ts → pathfinder-DaVdT8jq.d.ts} +1 -1
- package/dist/{pool-CTrtciaN.d.ts → pool-D2A3WTt9.d.ts} +1 -1
- package/dist/{pool-C7GtrL34.d.cts → pool-D6a45MoE.d.cts} +1 -1
- package/dist/{svg-C4LlFnEw.d.cts → svg-CcDz7Zq2.d.cts} +2 -2
- package/dist/{svg-CUzZa0EO.d.ts → svg-DELNVerw.d.ts} +2 -2
- package/dist/{tools-BpCmUNxb.d.cts → tools-BFvkFnRj.d.cts} +1 -1
- package/dist/{tools-AugT22z3.d.ts → tools-D7ws-OKL.d.ts} +1 -1
- package/dist/vector/index.cjs +1149 -1017
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.d.cts +106 -10
- package/dist/vector/index.d.ts +106 -10
- package/dist/vector/index.js +142 -10
- 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-CIsO617e.d.ts → warp-2N9wkOkL.d.ts} +2 -2
- package/dist/{warp-D62N_5VK.d.cts → warp-DErXW5rz.d.cts} +2 -2
- package/package.json +2 -2
- package/skills/pixerate-image-editor/SKILL.md +6 -2
- package/skills/pixerate-image-editor/references/color-management.md +1 -1
- package/skills/pixerate-image-editor/references/photoshop-files.md +2 -2
- package/skills/pixerate-image-editor/references/retouching.md +9 -1
- package/skills/pixerate-vector/SKILL.md +18 -1
- package/skills/pixerate-vector/references/commands.md +20 -0
- package/dist/chunk-ORE334I6.cjs.map +0 -1
- package/dist/chunk-ROZFX4QI.js.map +0 -1
- package/dist/chunk-XLUYXUBD.cjs.map +0 -1
- /package/dist/{chunk-A6KHMKI4.js.map → chunk-ECVI5QRE.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -1092,6 +1092,7 @@ function ruledTables(frags, rules, page, dehyphenate, stats) {
|
|
|
1092
1092
|
const tol = 2;
|
|
1093
1093
|
const vOrder = v.map((_, i) => i).sort((a, b) => v[a].x - v[b].x);
|
|
1094
1094
|
const vxs = vOrder.map((i) => v[i].x);
|
|
1095
|
+
const meetsVertical = new Array(h.length).fill(false);
|
|
1095
1096
|
h.forEach((seg, hi) => {
|
|
1096
1097
|
let lo = 0;
|
|
1097
1098
|
let hiIdx = vxs.length;
|
|
@@ -1102,14 +1103,20 @@ function ruledTables(frags, rules, page, dehyphenate, stats) {
|
|
|
1102
1103
|
}
|
|
1103
1104
|
for (let k = lo; k < vxs.length && vxs[k] <= seg.x1 + tol; k++) {
|
|
1104
1105
|
const vs = v[vOrder[k]];
|
|
1105
|
-
if (seg.y >= vs.y0 - tol && seg.y <= vs.y1 + tol)
|
|
1106
|
+
if (seg.y >= vs.y0 - tol && seg.y <= vs.y1 + tol) {
|
|
1107
|
+
union(hi, h.length + vOrder[k]);
|
|
1108
|
+
meetsVertical[hi] = true;
|
|
1109
|
+
}
|
|
1106
1110
|
}
|
|
1107
1111
|
});
|
|
1108
1112
|
const hOrder = h.map((_, i) => i).sort((a, b) => h[a].x0 - h[b].x0 || h[a].x1 - h[b].x1 || h[b].y - h[a].y);
|
|
1109
1113
|
for (let k = 1; k < hOrder.length; k++) {
|
|
1110
|
-
const
|
|
1111
|
-
const
|
|
1112
|
-
if (
|
|
1114
|
+
const ia = hOrder[k - 1];
|
|
1115
|
+
const ib = hOrder[k];
|
|
1116
|
+
if (meetsVertical[ia] || meetsVertical[ib]) continue;
|
|
1117
|
+
const a = h[ia];
|
|
1118
|
+
const b = h[ib];
|
|
1119
|
+
if (Math.abs(a.x0 - b.x0) <= 4 && Math.abs(a.x1 - b.x1) <= 4) union(ia, ib);
|
|
1113
1120
|
}
|
|
1114
1121
|
const groups = /* @__PURE__ */ new Map();
|
|
1115
1122
|
h.forEach((seg, i) => {
|