@pixerate/editor 0.113.0 → 0.114.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 (124) hide show
  1. package/THIRD_PARTY_NOTICES.md +5 -0
  2. package/dist/animation-editor/index.cjs +60 -54
  3. package/dist/animation-editor/index.cjs.map +1 -1
  4. package/dist/animation-editor/index.d.cts +3 -3
  5. package/dist/animation-editor/index.d.ts +3 -3
  6. package/dist/animation-editor/index.js +14 -8
  7. package/dist/animation-editor/index.js.map +1 -1
  8. package/dist/builtin-CY97ppKM.d.cts +354 -0
  9. package/dist/builtin-CY97ppKM.d.ts +354 -0
  10. package/dist/canvas/index.cjs +3 -3
  11. package/dist/canvas/index.cjs.map +1 -1
  12. package/dist/canvas/index.js +9 -9
  13. package/dist/chunk-26PGXHY7.cjs +753 -0
  14. package/dist/chunk-26PGXHY7.cjs.map +1 -0
  15. package/dist/chunk-2OJACTPR.cjs +929 -0
  16. package/dist/chunk-2OJACTPR.cjs.map +1 -0
  17. package/dist/chunk-3UFGNHSP.js +929 -0
  18. package/dist/chunk-3UFGNHSP.js.map +1 -0
  19. package/dist/{chunk-YGIMK4NX.cjs → chunk-5OVJHMZQ.cjs} +757 -825
  20. package/dist/chunk-5OVJHMZQ.cjs.map +1 -0
  21. package/dist/chunk-643B2HKC.cjs +534 -0
  22. package/dist/chunk-643B2HKC.cjs.map +1 -0
  23. package/dist/chunk-6FCKOS2B.js +534 -0
  24. package/dist/chunk-6FCKOS2B.js.map +1 -0
  25. package/dist/chunk-BRLYOPLT.js +2574 -0
  26. package/dist/chunk-BRLYOPLT.js.map +1 -0
  27. package/dist/{chunk-LQEEDHOP.js → chunk-C6C5PDKU.js} +759 -761
  28. package/dist/chunk-C6C5PDKU.js.map +1 -0
  29. package/dist/{chunk-4KLT7ZYS.cjs → chunk-DFQEX3AM.cjs} +29 -29
  30. package/dist/{chunk-4KLT7ZYS.cjs.map → chunk-DFQEX3AM.cjs.map} +1 -1
  31. package/dist/{chunk-CZOXTEMN.js → chunk-EUVSQ25B.js} +336 -404
  32. package/dist/chunk-EUVSQ25B.js.map +1 -0
  33. package/dist/chunk-G5NMLUVF.cjs +2574 -0
  34. package/dist/chunk-G5NMLUVF.cjs.map +1 -0
  35. package/dist/{chunk-LPYOIVLA.js → chunk-LKCYANMW.js} +3 -3
  36. package/dist/{chunk-W3GXSUSQ.cjs → chunk-LPLCWZTM.cjs} +5087 -1283
  37. package/dist/chunk-LPLCWZTM.cjs.map +1 -0
  38. package/dist/chunk-MMVHBKMM.js +753 -0
  39. package/dist/chunk-MMVHBKMM.js.map +1 -0
  40. package/dist/{chunk-POGBUYWE.cjs → chunk-ST7E3NEE.cjs} +857 -859
  41. package/dist/chunk-ST7E3NEE.cjs.map +1 -0
  42. package/dist/{chunk-7VOHOPLW.cjs → chunk-TCKIXI46.cjs} +59 -59
  43. package/dist/{chunk-7VOHOPLW.cjs.map → chunk-TCKIXI46.cjs.map} +1 -1
  44. package/dist/{chunk-XIOMMGPD.cjs → chunk-TFOPHZ3U.cjs} +1 -1
  45. package/dist/chunk-TFOPHZ3U.cjs.map +1 -0
  46. package/dist/{chunk-Z4BC6M74.js → chunk-UBIXVXPR.js} +2 -2
  47. package/dist/{chunk-BLWCAQCW.js → chunk-VXR7XWMF.js} +4574 -770
  48. package/dist/chunk-VXR7XWMF.js.map +1 -0
  49. package/dist/{chunk-HNS7UHCM.js → chunk-XK5LZKBD.js} +1 -1
  50. package/dist/chunk-XK5LZKBD.js.map +1 -0
  51. package/dist/cms/index.cjs +146 -0
  52. package/dist/cms/index.cjs.map +1 -0
  53. package/dist/cms/index.d.cts +51 -0
  54. package/dist/cms/index.d.ts +51 -0
  55. package/dist/cms/index.js +146 -0
  56. package/dist/cms/index.js.map +1 -0
  57. package/dist/{export-DIkoK8-r.d.ts → export-_1dUKwpF.d.ts} +217 -191
  58. package/dist/{export-CEXEzqBf.d.cts → export-b6NjCZ5-.d.cts} +217 -191
  59. package/dist/image-editor/index.cjs +1779 -1280
  60. package/dist/image-editor/index.cjs.map +1 -1
  61. package/dist/image-editor/index.d.cts +77 -93
  62. package/dist/image-editor/index.d.ts +77 -93
  63. package/dist/image-editor/index.js +740 -241
  64. package/dist/image-editor/index.js.map +1 -1
  65. package/dist/opentype-BZEOSOX3.d.ts +188 -0
  66. package/dist/opentype-Dpe75vL5.d.cts +188 -0
  67. package/dist/paint/index.cjs +4 -4
  68. package/dist/paint/index.d.cts +2 -2
  69. package/dist/paint/index.d.ts +2 -2
  70. package/dist/paint/index.js +3 -3
  71. package/dist/paint-editor/index.cjs +146 -145
  72. package/dist/paint-editor/index.cjs.map +1 -1
  73. package/dist/paint-editor/index.d.cts +9 -8
  74. package/dist/paint-editor/index.d.ts +9 -8
  75. package/dist/paint-editor/index.js +6 -5
  76. package/dist/paint-editor/index.js.map +1 -1
  77. package/dist/raster/index.cjs +53 -3
  78. package/dist/raster/index.cjs.map +1 -1
  79. package/dist/raster/index.d.cts +62 -91
  80. package/dist/raster/index.d.ts +62 -91
  81. package/dist/raster/index.js +59 -9
  82. package/dist/{render-BEriFuqK.d.cts → render-B1K_OoLy.d.cts} +87 -2
  83. package/dist/{render-tjzKaik-.d.ts → render-CrmHOgpo.d.ts} +87 -2
  84. package/dist/{retouch-CEIKR22W.d.cts → retouch-Bxkuc0KH.d.cts} +1 -1
  85. package/dist/{retouch-BXmeSCaB.d.ts → retouch-Do6tBs2H.d.ts} +1 -1
  86. package/dist/{surface-C8RRg_Bh.d.cts → surface-Cn30xIV6.d.cts} +6 -1
  87. package/dist/{surface-C8RRg_Bh.d.ts → surface-Cn30xIV6.d.ts} +6 -1
  88. package/dist/{svg-D_cfkhlB.d.cts → svg-BnRj0q8i.d.cts} +16 -4
  89. package/dist/{svg-wIaKLrU0.d.ts → svg-CmmBFfGT.d.ts} +16 -4
  90. package/dist/{types-DtL_qLFz.d.ts → types-1SUQKDAw.d.ts} +273 -4
  91. package/dist/{types-DyQq-WPY.d.cts → types-yINF17Ta.d.cts} +273 -4
  92. package/dist/vector/index.cjs +12170 -7343
  93. package/dist/vector/index.cjs.map +1 -1
  94. package/dist/vector/index.d.cts +1579 -16
  95. package/dist/vector/index.d.ts +1579 -16
  96. package/dist/vector/index.js +6303 -1476
  97. package/dist/vector/index.js.map +1 -1
  98. package/dist/warp-B39VsOtd.d.cts +348 -0
  99. package/dist/warp-DMN30aY6.d.ts +348 -0
  100. package/dist/zlib-dxQdgHyN.d.cts +95 -0
  101. package/dist/zlib-dxQdgHyN.d.ts +95 -0
  102. package/package.json +6 -1
  103. package/skills/pixerate-image-editor/SKILL.md +12 -36
  104. package/skills/pixerate-image-editor/references/color-management.md +37 -0
  105. package/skills/pixerate-image-editor/references/photoshop-files.md +39 -0
  106. package/skills/pixerate-vector/SKILL.md +54 -2
  107. package/dist/chunk-BLWCAQCW.js.map +0 -1
  108. package/dist/chunk-CZOXTEMN.js.map +0 -1
  109. package/dist/chunk-HNS7UHCM.js.map +0 -1
  110. package/dist/chunk-JLYX4V57.cjs +0 -2001
  111. package/dist/chunk-JLYX4V57.cjs.map +0 -1
  112. package/dist/chunk-KB2YBCVS.js +0 -2001
  113. package/dist/chunk-KB2YBCVS.js.map +0 -1
  114. package/dist/chunk-LQEEDHOP.js.map +0 -1
  115. package/dist/chunk-POGBUYWE.cjs.map +0 -1
  116. package/dist/chunk-W3GXSUSQ.cjs.map +0 -1
  117. package/dist/chunk-XIOMMGPD.cjs.map +0 -1
  118. package/dist/chunk-YGIMK4NX.cjs.map +0 -1
  119. package/dist/homography-CZ-tFjay.d.cts +0 -50
  120. package/dist/homography-Ctfjoc1b.d.ts +0 -50
  121. package/dist/warp-CWHZzE3x.d.ts +0 -118
  122. package/dist/warp-D5jz_tN7.d.cts +0 -118
  123. /package/dist/{chunk-LPYOIVLA.js.map → chunk-LKCYANMW.js.map} +0 -0
  124. /package/dist/{chunk-Z4BC6M74.js.map → chunk-UBIXVXPR.js.map} +0 -0
@@ -1,9 +1,9 @@
1
1
  import { b as AnimationEasing } from '../easing-lM0Xo9Ni.cjs';
2
2
  import { b as AnimationLoopMode, c as AnimationPlayer, C as Clock } from '../player-DrcP2xqj.cjs';
3
- import { w as VectorDocument, e as VectorNode, h as VectorBounds } from '../types-DyQq-WPY.cjs';
3
+ import { x as VectorDocument, e as VectorNode, h as VectorBounds } from '../types-yINF17Ta.cjs';
4
4
  import { a as MotionBehavior } from '../behavior-Ymbld6jL.cjs';
5
5
  import { A as AffineMatrix, B as BezierPath } from '../bezier-BfwIbVTl.cjs';
6
- import { V as VectorSvgExportOptions } from '../svg-D_cfkhlB.cjs';
6
+ import { V as VectorSvgExportOptions } from '../svg-BnRj0q8i.cjs';
7
7
  import { Z as ZipReadOptions } from '../zip-4nG0YAH7.cjs';
8
8
  import { H as HistoryManager } from '../HistoryManager-DeQQMBCj.cjs';
9
9
  import { a as AgentToolProvider } from '../registry-BqA1AZt0.cjs';
@@ -1879,7 +1879,7 @@ declare function describeMotionElements(scene: MotionScene): {
1879
1879
  parent?: string | undefined;
1880
1880
  name?: string | undefined;
1881
1881
  id: string;
1882
- type: "path" | "group";
1882
+ type: "path" | "group" | "text" | "instance";
1883
1883
  }[];
1884
1884
  /** A scene's shots with their timing, as agents see them. */
1885
1885
  declare function describeMotionShots(scene: MotionScene): {
@@ -1,9 +1,9 @@
1
1
  import { b as AnimationEasing } from '../easing-lM0Xo9Ni.js';
2
2
  import { b as AnimationLoopMode, c as AnimationPlayer, C as Clock } from '../player-DV4Jujdq.js';
3
- import { w as VectorDocument, e as VectorNode, h as VectorBounds } from '../types-DtL_qLFz.js';
3
+ import { x as VectorDocument, e as VectorNode, h as VectorBounds } from '../types-1SUQKDAw.js';
4
4
  import { a as MotionBehavior } from '../behavior-Ymbld6jL.js';
5
5
  import { A as AffineMatrix, B as BezierPath } from '../bezier-DYBvLgUH.js';
6
- import { V as VectorSvgExportOptions } from '../svg-wIaKLrU0.js';
6
+ import { V as VectorSvgExportOptions } from '../svg-CmmBFfGT.js';
7
7
  import { Z as ZipReadOptions } from '../zip-4nG0YAH7.js';
8
8
  import { H as HistoryManager } from '../HistoryManager-DWSLd6Tf.js';
9
9
  import { a as AgentToolProvider } from '../registry-D-4fit9C.js';
@@ -1879,7 +1879,7 @@ declare function describeMotionElements(scene: MotionScene): {
1879
1879
  parent?: string | undefined;
1880
1880
  name?: string | undefined;
1881
1881
  id: string;
1882
- type: "path" | "group";
1882
+ type: "path" | "group" | "text" | "instance";
1883
1883
  }[];
1884
1884
  /** A scene's shots with their timing, as agents see them. */
1885
1885
  declare function describeMotionShots(scene: MotionScene): {
@@ -1,9 +1,6 @@
1
1
  import {
2
- createVectorMorph,
3
- parseSvgTransform,
4
- parseVectorSvg,
5
- vectorDocumentToSvg
6
- } from "../chunk-KB2YBCVS.js";
2
+ createVectorMorph
3
+ } from "../chunk-MMVHBKMM.js";
7
4
  import {
8
5
  MOTION_ISSUE_CODES,
9
6
  motionIssue,
@@ -24,13 +21,17 @@ import {
24
21
  isIdentityMatrix,
25
22
  multiplyMatrices,
26
23
  nodeMatrix,
24
+ parseSvgTransform,
25
+ parseVectorSvg,
27
26
  rectSubpath,
28
27
  rotateMatrix,
29
28
  scaleMatrix,
30
29
  translateMatrix,
30
+ vectorDocumentToSvg,
31
31
  vectorNodeBounds,
32
- vectorPathWorldBezier
33
- } from "../chunk-BLWCAQCW.js";
32
+ vectorPathWorldBezier,
33
+ vectorTextHasOutlines
34
+ } from "../chunk-VXR7XWMF.js";
34
35
  import {
35
36
  bezierPathLength,
36
37
  bezierPathPointAtLength,
@@ -1366,6 +1367,7 @@ function fadePaint(paint, alpha) {
1366
1367
  }
1367
1368
  function mapPaths(node, fn) {
1368
1369
  if (node.type === "path") return fn(node);
1370
+ if (node.type === "text" || node.type === "instance") return node;
1369
1371
  return { ...node, children: node.children.map((c) => mapPaths(c, fn)) };
1370
1372
  }
1371
1373
  var morphCache = /* @__PURE__ */ new WeakMap();
@@ -3041,7 +3043,11 @@ function toLottie(scene, options = {}) {
3041
3043
  let inner;
3042
3044
  const innerTr = STATIC_TR();
3043
3045
  if (node.type === "path") inner = [...pathShapes(node)];
3044
- else {
3046
+ else if (node.type === "text" || node.type === "instance") {
3047
+ const drawn = expandVectorAppearance(node);
3048
+ inner = drawn.type === "path" ? [...pathShapes(drawn)] : drawn.children.filter((c) => c.type === "path").reverse().flatMap((c) => [...pathShapes(c)]);
3049
+ notes.push(`"${node.id}": text is exported as its outlines${vectorTextHasOutlines() ? "" : " (glyph boxes: set an outline text shaper for real glyphs)"}.`);
3050
+ } else {
3045
3051
  inner = shown(node.children).reverse().map(nodeGroup);
3046
3052
  const m = nodeMatrix(node);
3047
3053
  if (m !== IDENTITY_MATRIX) {