@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.
Files changed (72) hide show
  1. package/dist/animation-editor/index.cjs +55 -55
  2. package/dist/animation-editor/index.d.cts +5 -5
  3. package/dist/animation-editor/index.d.ts +5 -5
  4. package/dist/animation-editor/index.js +2 -2
  5. package/dist/{bezier-DP4NnJp3.d.ts → bezier-0IHDCvv_.d.ts} +1 -1
  6. package/dist/{bezier-CvgQiYRg.d.cts → bezier-oCBfrGDG.d.cts} +1 -1
  7. package/dist/canvas/index.d.cts +7 -7
  8. package/dist/canvas/index.d.ts +7 -7
  9. package/dist/{chunk-XLUYXUBD.cjs → chunk-55UEZIU4.cjs} +119 -90
  10. package/dist/chunk-55UEZIU4.cjs.map +1 -0
  11. package/dist/{chunk-A6KHMKI4.js → chunk-ECVI5QRE.js} +2 -2
  12. package/dist/{chunk-F7Q2NE2Y.js → chunk-G5FX56KX.js} +39 -10
  13. package/dist/{chunk-F7Q2NE2Y.js.map → chunk-G5FX56KX.js.map} +1 -1
  14. package/dist/{chunk-ROZFX4QI.js → chunk-IEYXYMRQ.js} +556 -13
  15. package/dist/chunk-IEYXYMRQ.js.map +1 -0
  16. package/dist/{chunk-BEGEWQHD.cjs → chunk-OYPJGGF3.cjs} +36 -36
  17. package/dist/{chunk-BEGEWQHD.cjs.map → chunk-OYPJGGF3.cjs.map} +1 -1
  18. package/dist/{chunk-ORE334I6.cjs → chunk-YYJKIESX.cjs} +619 -76
  19. package/dist/chunk-YYJKIESX.cjs.map +1 -0
  20. package/dist/effects/index.d.cts +4 -4
  21. package/dist/effects/index.d.ts +4 -4
  22. package/dist/{export-DotEEyXj.d.ts → export-ByJvAvR7.d.ts} +26 -4
  23. package/dist/{export-Cbr9IqpJ.d.cts → export-CfAogLEr.d.cts} +1 -1
  24. package/dist/{export-ClPKUB-v.d.ts → export-Crl82sbE.d.ts} +1 -1
  25. package/dist/{export-DRzNhrdx.d.cts → export-D-gkjBkB.d.cts} +26 -4
  26. package/dist/{helpers-CPWcK504.d.ts → helpers-BCd2-PAR.d.ts} +67 -3
  27. package/dist/{helpers-C5aAd44p.d.cts → helpers-CoIeXQnW.d.cts} +67 -3
  28. package/dist/image-editor/index.cjs +775 -723
  29. package/dist/image-editor/index.cjs.map +1 -1
  30. package/dist/image-editor/index.d.cts +8 -8
  31. package/dist/image-editor/index.d.ts +8 -8
  32. package/dist/image-editor/index.js +59 -7
  33. package/dist/image-editor/index.js.map +1 -1
  34. package/dist/index.cjs +11 -4
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.js +11 -4
  37. package/dist/index.js.map +1 -1
  38. package/dist/{opentype-BOewaGQx.d.cts → opentype-BDahNRTe.d.cts} +2 -2
  39. package/dist/{opentype-sQrF3Ry1.d.ts → opentype-BQFEvy-t.d.ts} +2 -2
  40. package/dist/paint-editor/index.cjs +7 -7
  41. package/dist/paint-editor/index.d.cts +5 -5
  42. package/dist/paint-editor/index.d.ts +5 -5
  43. package/dist/paint-editor/index.js +2 -2
  44. package/dist/{pathfinder-CnkW7zLI.d.cts → pathfinder-01ZgAwqV.d.cts} +1 -1
  45. package/dist/{pathfinder-BwJx0_zM.d.ts → pathfinder-DaVdT8jq.d.ts} +1 -1
  46. package/dist/{pool-CTrtciaN.d.ts → pool-D2A3WTt9.d.ts} +1 -1
  47. package/dist/{pool-C7GtrL34.d.cts → pool-D6a45MoE.d.cts} +1 -1
  48. package/dist/{svg-C4LlFnEw.d.cts → svg-CcDz7Zq2.d.cts} +2 -2
  49. package/dist/{svg-CUzZa0EO.d.ts → svg-DELNVerw.d.ts} +2 -2
  50. package/dist/{tools-BpCmUNxb.d.cts → tools-BFvkFnRj.d.cts} +1 -1
  51. package/dist/{tools-AugT22z3.d.ts → tools-D7ws-OKL.d.ts} +1 -1
  52. package/dist/vector/index.cjs +1149 -1017
  53. package/dist/vector/index.cjs.map +1 -1
  54. package/dist/vector/index.d.cts +106 -10
  55. package/dist/vector/index.d.ts +106 -10
  56. package/dist/vector/index.js +142 -10
  57. package/dist/vector/index.js.map +1 -1
  58. package/dist/video-editor/index.d.cts +4 -4
  59. package/dist/video-editor/index.d.ts +4 -4
  60. package/dist/{warp-CIsO617e.d.ts → warp-2N9wkOkL.d.ts} +2 -2
  61. package/dist/{warp-D62N_5VK.d.cts → warp-DErXW5rz.d.cts} +2 -2
  62. package/package.json +2 -2
  63. package/skills/pixerate-image-editor/SKILL.md +6 -2
  64. package/skills/pixerate-image-editor/references/color-management.md +1 -1
  65. package/skills/pixerate-image-editor/references/photoshop-files.md +2 -2
  66. package/skills/pixerate-image-editor/references/retouching.md +9 -1
  67. package/skills/pixerate-vector/SKILL.md +18 -1
  68. package/skills/pixerate-vector/references/commands.md +20 -0
  69. package/dist/chunk-ORE334I6.cjs.map +0 -1
  70. package/dist/chunk-ROZFX4QI.js.map +0 -1
  71. package/dist/chunk-XLUYXUBD.cjs.map +0 -1
  72. /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) union(hi, h.length + vOrder[k]);
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 a = h[hOrder[k - 1]];
1111
- const b = h[hOrder[k]];
1112
- if (Math.abs(a.x0 - b.x0) <= 4 && Math.abs(a.x1 - b.x1) <= 4) union(hOrder[k - 1], hOrder[k]);
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) => {