@pixerate/editor 0.124.0 → 0.125.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/agent/index.cjs +3 -3
- package/dist/agent/index.cjs.map +1 -1
- package/dist/agent/index.js +3 -3
- package/dist/animation-editor/index.cjs +424 -85
- package/dist/animation-editor/index.cjs.map +1 -1
- package/dist/animation-editor/index.d.cts +174 -7
- package/dist/animation-editor/index.d.ts +174 -7
- package/dist/animation-editor/index.js +348 -9
- package/dist/animation-editor/index.js.map +1 -1
- package/dist/chunk-FJ3324TZ.js +59 -0
- package/dist/chunk-FJ3324TZ.js.map +1 -0
- package/dist/{chunk-5EO2IXQE.js → chunk-FPRIUR4T.js} +1 -1
- package/dist/chunk-FPRIUR4T.js.map +1 -0
- package/dist/{chunk-YVVSTD3B.js → chunk-G6WXWS4Y.js} +9 -18
- package/dist/chunk-G6WXWS4Y.js.map +1 -0
- package/dist/{chunk-NGYD3AMN.js → chunk-MPQAO33O.js} +2 -2
- package/dist/{chunk-PEHYWUVV.cjs → chunk-O5RVCDEC.cjs} +82 -82
- package/dist/{chunk-PEHYWUVV.cjs.map → chunk-O5RVCDEC.cjs.map} +1 -1
- package/dist/{chunk-TK53AB4Q.cjs → chunk-QDJKUBWE.cjs} +3 -3
- package/dist/{chunk-TK53AB4Q.cjs.map → chunk-QDJKUBWE.cjs.map} +1 -1
- package/dist/{chunk-5XXMLBH4.cjs → chunk-QQKTOA4U.cjs} +1 -1
- package/dist/chunk-QQKTOA4U.cjs.map +1 -0
- package/dist/{chunk-IWSMDQE5.cjs → chunk-UXFI3CDZ.cjs} +13 -22
- package/dist/chunk-UXFI3CDZ.cjs.map +1 -0
- package/dist/{chunk-WE25VLCO.cjs → chunk-V5YGPRCZ.cjs} +36 -36
- package/dist/{chunk-WE25VLCO.cjs.map → chunk-V5YGPRCZ.cjs.map} +1 -1
- package/dist/chunk-W6QTLHZ3.cjs +59 -0
- package/dist/chunk-W6QTLHZ3.cjs.map +1 -0
- package/dist/{chunk-WATAQ2Z2.js → chunk-WUDPFWAN.js} +2 -2
- package/dist/{chunk-VFAKN46Z.js → chunk-XZWOLXWA.js} +3 -3
- package/dist/{chunk-VFAKN46Z.js.map → chunk-XZWOLXWA.js.map} +1 -1
- package/dist/effects/index.cjs +51 -6
- package/dist/effects/index.cjs.map +1 -1
- package/dist/effects/index.d.cts +39 -8
- package/dist/effects/index.d.ts +39 -8
- package/dist/effects/index.js +48 -3
- package/dist/effects/index.js.map +1 -1
- package/dist/{export-TqXMOlDt.d.cts → export-Bp7ji2r4.d.cts} +4 -3
- package/dist/{export-BzSRXyH6.d.cts → export-C1s4eolZ.d.ts} +5 -3
- package/dist/{export-8RnlngAv.d.ts → export-DAyPY94f.d.ts} +4 -3
- package/dist/{export-DM3h7QEI.d.ts → export-DVl4fWy5.d.cts} +5 -3
- package/dist/generation/index.cjs +3 -3
- package/dist/generation/index.cjs.map +1 -1
- package/dist/generation/index.js +3 -3
- package/dist/helpers-BBLlekuM.d.ts +2009 -0
- package/dist/helpers-i95Ob6Vi.d.cts +2009 -0
- package/dist/image-editor/index.cjs +712 -721
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +5 -7
- package/dist/image-editor/index.d.ts +5 -7
- package/dist/image-editor/index.js +19 -28
- package/dist/image-editor/index.js.map +1 -1
- package/dist/paint-editor/index.cjs +12 -11
- package/dist/paint-editor/index.cjs.map +1 -1
- package/dist/paint-editor/index.d.cts +3 -5
- package/dist/paint-editor/index.d.ts +3 -5
- package/dist/paint-editor/index.js +6 -5
- package/dist/paint-editor/index.js.map +1 -1
- package/dist/{svg-BDrjRnL1.d.cts → svg-BkRL-fZJ.d.cts} +1 -1
- package/dist/{svg-C-vZ3q50.d.ts → svg-DJKriJ4A.d.ts} +1 -1
- package/dist/tools/index.cjs +2 -2
- package/dist/tools/index.cjs.map +1 -1
- package/dist/tools/index.js +3 -3
- package/dist/{tools-C7JtLYzo.d.ts → tools-CM8Oe8F3.d.ts} +1 -1
- package/dist/{tools-DHKGHiSK.d.cts → tools-DZCv2kX1.d.cts} +1 -1
- package/dist/vector/index.cjs +1032 -883
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.d.cts +61 -6
- package/dist/vector/index.d.ts +61 -6
- package/dist/vector/index.js +155 -6
- package/dist/vector/index.js.map +1 -1
- package/dist/video-editor/index.cjs +271 -270
- package/dist/video-editor/index.cjs.map +1 -1
- package/dist/video-editor/index.d.cts +4 -6
- package/dist/video-editor/index.d.ts +4 -6
- package/dist/video-editor/index.js +6 -5
- package/dist/video-editor/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/pixerate-animation-editor/SKILL.md +24 -1
- package/skills/pixerate-vector/SKILL.md +15 -0
- package/dist/chunk-5EO2IXQE.js.map +0 -1
- package/dist/chunk-5XXMLBH4.cjs.map +0 -1
- package/dist/chunk-IWSMDQE5.cjs.map +0 -1
- package/dist/chunk-YVVSTD3B.js.map +0 -1
- package/dist/flair-CxB3fOcU.d.ts +0 -739
- package/dist/flair-D7BxyBwL.d.cts +0 -739
- package/dist/helpers-777mC6dc.d.cts +0 -253
- package/dist/helpers-DX2_7L5t.d.ts +0 -253
- package/dist/types-BcX7sCsn.d.ts +0 -993
- package/dist/types-CznabG7m.d.cts +0 -993
- /package/dist/{chunk-NGYD3AMN.js.map → chunk-MPQAO33O.js.map} +0 -0
- /package/dist/{chunk-WATAQ2Z2.js.map → chunk-WUDPFWAN.js.map} +0 -0
|
@@ -73,17 +73,16 @@
|
|
|
73
73
|
var _chunkW4LNKTHTcjs = require('../chunk-W4LNKTHT.cjs');
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
var
|
|
76
|
+
var _chunkUXFI3CDZcjs = require('../chunk-UXFI3CDZ.cjs');
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
var
|
|
83
|
+
var _chunkO5RVCDECcjs = require('../chunk-O5RVCDEC.cjs');
|
|
84
84
|
require('../chunk-2YQONY6G.cjs');
|
|
85
|
-
require('../chunk-
|
|
86
|
-
require('../chunk-RIWPYSKU.cjs');
|
|
85
|
+
require('../chunk-W6QTLHZ3.cjs');
|
|
87
86
|
|
|
88
87
|
|
|
89
88
|
|
|
@@ -210,9 +209,11 @@ var _chunkCOAMRKVIcjs = require('../chunk-COAMRKVI.cjs');
|
|
|
210
209
|
|
|
211
210
|
|
|
212
211
|
var _chunkEGFUVXKKcjs = require('../chunk-EGFUVXKK.cjs');
|
|
213
|
-
require('../chunk-
|
|
212
|
+
require('../chunk-QQKTOA4U.cjs');
|
|
213
|
+
require('../chunk-IOXKXQNW.cjs');
|
|
214
214
|
require('../chunk-N3FVUOZD.cjs');
|
|
215
215
|
require('../chunk-GUZ47CJM.cjs');
|
|
216
|
+
require('../chunk-RIWPYSKU.cjs');
|
|
216
217
|
require('../chunk-EMQWJA3G.cjs');
|
|
217
218
|
require('../chunk-MR3Z4OQI.cjs');
|
|
218
219
|
require('../chunk-A6PHCAGX.cjs');
|
|
@@ -1616,11 +1617,11 @@ function header(state, options) {
|
|
|
1616
1617
|
return out;
|
|
1617
1618
|
}
|
|
1618
1619
|
function serializePaintDocument(state, options = {}) {
|
|
1619
|
-
const { layers, assets } =
|
|
1620
|
+
const { layers, assets } = _chunkO5RVCDECcjs.serializeLayers.call(void 0, state.layers);
|
|
1620
1621
|
return { ...header(state, options), layers, assets };
|
|
1621
1622
|
}
|
|
1622
1623
|
async function serializePaintDocumentExternal(state, store, options = {}) {
|
|
1623
|
-
const { layers, assets } = await
|
|
1624
|
+
const { layers, assets } = await _chunkO5RVCDECcjs.serializeLayersExternal.call(void 0, state.layers, store);
|
|
1624
1625
|
return { ...header(state, options), layers, assets };
|
|
1625
1626
|
}
|
|
1626
1627
|
function paintLayersOnly(layers, problems) {
|
|
@@ -1657,7 +1658,7 @@ function deserializePaintDocument(raw) {
|
|
|
1657
1658
|
const canvas = normalizeCanvas({ width: r.width, height: r.height, dpi: _nullishCoalesce(r.dpi, () => ( void 0)) });
|
|
1658
1659
|
const paper = _chunkW4LNKTHTcjs.normalizePaper.call(void 0, _nullishCoalesce(r.paper, () => ( {})));
|
|
1659
1660
|
const assets = r.assets && typeof r.assets === "object" ? r.assets : {};
|
|
1660
|
-
const layers = paintLayersOnly(
|
|
1661
|
+
const layers = paintLayersOnly(_chunkO5RVCDECcjs.deserializeLayers.call(void 0, r.layers, { assets, problems }), problems);
|
|
1661
1662
|
const wanted = typeof r.activeLayerId === "string" ? r.activeLayerId : null;
|
|
1662
1663
|
const activeLayerId = wanted && _chunkMZXQTKUMcjs.findLayer.call(void 0, layers, wanted) ? wanted : _nullishCoalesce(_optionalChain([_chunkMZXQTKUMcjs.flattenLayers.call(void 0, layers), 'access', _70 => _70.filter, 'call', _71 => _71((l) => l.type === "pixel"), 'access', _72 => _72.pop, 'call', _73 => _73(), 'optionalAccess', _74 => _74.id]), () => ( null));
|
|
1663
1664
|
const wetEvents = Array.isArray(r.wetEvents) ? r.wetEvents.filter((e) => e && typeof e === "object" && Number.isInteger(e.clock) && typeof e.kind === "string") : [];
|
|
@@ -1671,7 +1672,7 @@ async function deserializePaintDocumentAsync(raw, store) {
|
|
|
1671
1672
|
if (!raw || typeof raw !== "object") throw new Error("Not a paint document: expected a JSON object.");
|
|
1672
1673
|
const r = raw;
|
|
1673
1674
|
const problems = [];
|
|
1674
|
-
const assets = await
|
|
1675
|
+
const assets = await _chunkO5RVCDECcjs.resolveExternalAssets.call(void 0, _nullishCoalesce(r.assets, () => ( {})), store, problems);
|
|
1675
1676
|
const loaded = deserializePaintDocument({ ...r, assets });
|
|
1676
1677
|
return { ...loaded, problems: [...problems, ...loaded.problems] };
|
|
1677
1678
|
}
|
|
@@ -3160,7 +3161,7 @@ function timeLapseVideo(frameCount, width, height, fps, holdMs, name = "Time-lap
|
|
|
3160
3161
|
}
|
|
3161
3162
|
const video = { version: 1, name, width: w, height: h, fps, background: "#000000", assets, tracks: [{ id: "v1", kind: "video", clips }] };
|
|
3162
3163
|
const durationMs = frameCount ? clips[clips.length - 1].start + clips[clips.length - 1].duration : 0;
|
|
3163
|
-
return { video, ffmpeg:
|
|
3164
|
+
return { video, ffmpeg: _chunkUXFI3CDZcjs.toVideoFfmpeg.call(void 0, video, { output: "timelapse.mp4" }), durationMs };
|
|
3164
3165
|
}
|
|
3165
3166
|
async function buildTimeLapse(source, target, options = {}) {
|
|
3166
3167
|
const maxSide = Math.max(32, Math.min(4096, Math.round(_nullishCoalesce(options.maxSide, () => ( 720)))));
|
|
@@ -4907,7 +4908,7 @@ var PaintEditorController = (_class9 = class _PaintEditorController {
|
|
|
4907
4908
|
return next.type === "group" ? { ...next, children: toStandard(next.children) } : next;
|
|
4908
4909
|
});
|
|
4909
4910
|
const layers = toStandard(dried);
|
|
4910
|
-
const result =
|
|
4911
|
+
const result = _chunkO5RVCDECcjs.exportPsd.call(void 0, { width, height, layers: [paperLayer, ...layers], merged, resolution: dpi });
|
|
4911
4912
|
for (const [mode, names] of changed) {
|
|
4912
4913
|
const label = _nullishCoalesce(_optionalChain([_chunkJ5BA3BQ6cjs.BLEND_MODES, 'access', _244 => _244.find, 'call', _245 => _245((m) => m.id === mode), 'optionalAccess', _246 => _246.label]), () => ( mode));
|
|
4913
4914
|
const std = _nullishCoalesce(_optionalChain([_chunkJ5BA3BQ6cjs.BLEND_MODES, 'access', _247 => _247.find, 'call', _248 => _248((m) => m.id === _chunkJ5BA3BQ6cjs.standardBlendMode.call(void 0, mode)), 'optionalAccess', _249 => _249.label]), () => ( _chunkJ5BA3BQ6cjs.standardBlendMode.call(void 0, mode)));
|