@pixerate/editor 0.113.0 → 0.115.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/THIRD_PARTY_NOTICES.md +8 -0
- package/dist/animation-editor/index.cjs +60 -54
- package/dist/animation-editor/index.cjs.map +1 -1
- package/dist/animation-editor/index.d.cts +3 -3
- package/dist/animation-editor/index.d.ts +3 -3
- package/dist/animation-editor/index.js +14 -8
- package/dist/animation-editor/index.js.map +1 -1
- package/dist/builtin-CY97ppKM.d.cts +354 -0
- package/dist/builtin-CY97ppKM.d.ts +354 -0
- package/dist/canvas/index.cjs +3 -3
- package/dist/canvas/index.cjs.map +1 -1
- package/dist/canvas/index.js +9 -9
- package/dist/chunk-26PGXHY7.cjs +753 -0
- package/dist/chunk-26PGXHY7.cjs.map +1 -0
- package/dist/chunk-2OJACTPR.cjs +929 -0
- package/dist/chunk-2OJACTPR.cjs.map +1 -0
- package/dist/chunk-3UFGNHSP.js +929 -0
- package/dist/chunk-3UFGNHSP.js.map +1 -0
- package/dist/chunk-643B2HKC.cjs +534 -0
- package/dist/chunk-643B2HKC.cjs.map +1 -0
- package/dist/chunk-6FCKOS2B.js +534 -0
- package/dist/chunk-6FCKOS2B.js.map +1 -0
- package/dist/chunk-BRLYOPLT.js +2574 -0
- package/dist/chunk-BRLYOPLT.js.map +1 -0
- package/dist/{chunk-LQEEDHOP.js → chunk-C6C5PDKU.js} +759 -761
- package/dist/chunk-C6C5PDKU.js.map +1 -0
- package/dist/{chunk-4KLT7ZYS.cjs → chunk-DFQEX3AM.cjs} +29 -29
- package/dist/{chunk-4KLT7ZYS.cjs.map → chunk-DFQEX3AM.cjs.map} +1 -1
- package/dist/chunk-G5NMLUVF.cjs +2574 -0
- package/dist/chunk-G5NMLUVF.cjs.map +1 -0
- package/dist/{chunk-YGIMK4NX.cjs → chunk-I7FQBWMQ.cjs} +813 -842
- package/dist/chunk-I7FQBWMQ.cjs.map +1 -0
- package/dist/{chunk-LPYOIVLA.js → chunk-LKCYANMW.js} +3 -3
- package/dist/{chunk-W3GXSUSQ.cjs → chunk-LPLCWZTM.cjs} +5087 -1283
- package/dist/chunk-LPLCWZTM.cjs.map +1 -0
- package/dist/chunk-MMVHBKMM.js +753 -0
- package/dist/chunk-MMVHBKMM.js.map +1 -0
- package/dist/{chunk-POGBUYWE.cjs → chunk-ST7E3NEE.cjs} +857 -859
- package/dist/chunk-ST7E3NEE.cjs.map +1 -0
- package/dist/{chunk-7VOHOPLW.cjs → chunk-TCKIXI46.cjs} +59 -59
- package/dist/{chunk-7VOHOPLW.cjs.map → chunk-TCKIXI46.cjs.map} +1 -1
- package/dist/{chunk-XIOMMGPD.cjs → chunk-TFOPHZ3U.cjs} +1 -1
- package/dist/chunk-TFOPHZ3U.cjs.map +1 -0
- package/dist/{chunk-Z4BC6M74.js → chunk-UBIXVXPR.js} +2 -2
- package/dist/{chunk-BLWCAQCW.js → chunk-VXR7XWMF.js} +4574 -770
- package/dist/chunk-VXR7XWMF.js.map +1 -0
- package/dist/{chunk-CZOXTEMN.js → chunk-XICA4PVO.js} +392 -421
- package/dist/chunk-XICA4PVO.js.map +1 -0
- package/dist/{chunk-HNS7UHCM.js → chunk-XK5LZKBD.js} +1 -1
- package/dist/chunk-XK5LZKBD.js.map +1 -0
- package/dist/cms/index.cjs +146 -0
- package/dist/cms/index.cjs.map +1 -0
- package/dist/cms/index.d.cts +51 -0
- package/dist/cms/index.d.ts +51 -0
- package/dist/cms/index.js +146 -0
- package/dist/cms/index.js.map +1 -0
- package/dist/{export-CEXEzqBf.d.cts → export-BJE8T0YA.d.cts} +279 -191
- package/dist/{export-DIkoK8-r.d.ts → export-Con3UKkm.d.ts} +279 -191
- package/dist/image-editor/index.cjs +1848 -1218
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +85 -93
- package/dist/image-editor/index.d.ts +85 -93
- package/dist/image-editor/index.js +871 -241
- package/dist/image-editor/index.js.map +1 -1
- package/dist/opentype-BZEOSOX3.d.ts +188 -0
- package/dist/opentype-Dpe75vL5.d.cts +188 -0
- package/dist/paint/index.cjs +4 -4
- package/dist/paint/index.d.cts +2 -2
- package/dist/paint/index.d.ts +2 -2
- package/dist/paint/index.js +3 -3
- package/dist/paint-editor/index.cjs +147 -145
- package/dist/paint-editor/index.cjs.map +1 -1
- package/dist/paint-editor/index.d.cts +9 -8
- package/dist/paint-editor/index.d.ts +9 -8
- package/dist/paint-editor/index.js +7 -5
- package/dist/paint-editor/index.js.map +1 -1
- package/dist/raster/index.cjs +53 -3
- package/dist/raster/index.cjs.map +1 -1
- package/dist/raster/index.d.cts +62 -91
- package/dist/raster/index.d.ts +62 -91
- package/dist/raster/index.js +59 -9
- package/dist/{render-BEriFuqK.d.cts → render-B1K_OoLy.d.cts} +87 -2
- package/dist/{render-tjzKaik-.d.ts → render-CrmHOgpo.d.ts} +87 -2
- package/dist/{retouch-CEIKR22W.d.cts → retouch-Bxkuc0KH.d.cts} +1 -1
- package/dist/{retouch-BXmeSCaB.d.ts → retouch-Do6tBs2H.d.ts} +1 -1
- package/dist/{surface-C8RRg_Bh.d.cts → surface-Cn30xIV6.d.cts} +6 -1
- package/dist/{surface-C8RRg_Bh.d.ts → surface-Cn30xIV6.d.ts} +6 -1
- package/dist/{svg-D_cfkhlB.d.cts → svg-BnRj0q8i.d.cts} +16 -4
- package/dist/{svg-wIaKLrU0.d.ts → svg-CmmBFfGT.d.ts} +16 -4
- package/dist/{types-DtL_qLFz.d.ts → types-1SUQKDAw.d.ts} +273 -4
- package/dist/{types-DyQq-WPY.d.cts → types-yINF17Ta.d.cts} +273 -4
- package/dist/vector/index.cjs +12170 -7343
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.d.cts +1579 -16
- package/dist/vector/index.d.ts +1579 -16
- package/dist/vector/index.js +6303 -1476
- package/dist/vector/index.js.map +1 -1
- package/dist/warp-B39VsOtd.d.cts +348 -0
- package/dist/warp-DMN30aY6.d.ts +348 -0
- package/dist/zlib-dxQdgHyN.d.cts +95 -0
- package/dist/zlib-dxQdgHyN.d.ts +95 -0
- package/package.json +9 -2
- package/skills/pixerate-image-editor/SKILL.md +13 -36
- package/skills/pixerate-image-editor/references/color-management.md +42 -0
- package/skills/pixerate-image-editor/references/photoshop-files.md +41 -0
- package/skills/pixerate-paint-editor/SKILL.md +136 -4
- package/skills/pixerate-vector/SKILL.md +72 -2
- package/dist/chunk-BLWCAQCW.js.map +0 -1
- package/dist/chunk-CZOXTEMN.js.map +0 -1
- package/dist/chunk-HNS7UHCM.js.map +0 -1
- package/dist/chunk-JLYX4V57.cjs +0 -2001
- package/dist/chunk-JLYX4V57.cjs.map +0 -1
- package/dist/chunk-KB2YBCVS.js +0 -2001
- package/dist/chunk-KB2YBCVS.js.map +0 -1
- package/dist/chunk-LQEEDHOP.js.map +0 -1
- package/dist/chunk-POGBUYWE.cjs.map +0 -1
- package/dist/chunk-W3GXSUSQ.cjs.map +0 -1
- package/dist/chunk-XIOMMGPD.cjs.map +0 -1
- package/dist/chunk-YGIMK4NX.cjs.map +0 -1
- package/dist/homography-CZ-tFjay.d.cts +0 -50
- package/dist/homography-Ctfjoc1b.d.ts +0 -50
- package/dist/warp-CWHZzE3x.d.ts +0 -118
- package/dist/warp-D5jz_tN7.d.cts +0 -118
- /package/dist/{chunk-LPYOIVLA.js.map → chunk-LKCYANMW.js.map} +0 -0
- /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 {
|
|
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-
|
|
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 {
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
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) {
|