@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
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EffectRendererPool
|
|
3
|
+
} from "./chunk-FJ3324TZ.js";
|
|
1
4
|
import {
|
|
2
5
|
EffectControlError,
|
|
3
6
|
EffectUnsupportedError,
|
|
@@ -1213,7 +1216,7 @@ var VideoEffectsEngine = class {
|
|
|
1213
1216
|
cache = /* @__PURE__ */ new Map();
|
|
1214
1217
|
pending = /* @__PURE__ */ new Map();
|
|
1215
1218
|
failures = /* @__PURE__ */ new Map();
|
|
1216
|
-
|
|
1219
|
+
pool;
|
|
1217
1220
|
descriptions = /* @__PURE__ */ new Map();
|
|
1218
1221
|
listeners = /* @__PURE__ */ new Set();
|
|
1219
1222
|
maxEntries;
|
|
@@ -1224,6 +1227,7 @@ var VideoEffectsEngine = class {
|
|
|
1224
1227
|
this.slot = options.slot ?? new EffectsSlot();
|
|
1225
1228
|
this.maxEntries = options.maxEntries ?? 120;
|
|
1226
1229
|
this.toImage = options.toImage ?? defaultToImage;
|
|
1230
|
+
this.pool = new EffectRendererPool({ maxRenderers: options.maxRenderers });
|
|
1227
1231
|
this.detach = this.slot.subscribe(() => {
|
|
1228
1232
|
this.reset();
|
|
1229
1233
|
this.notify();
|
|
@@ -1324,20 +1328,9 @@ var VideoEffectsEngine = class {
|
|
|
1324
1328
|
}
|
|
1325
1329
|
return d;
|
|
1326
1330
|
}
|
|
1327
|
-
/** Renders
|
|
1331
|
+
/** Renders through the pool: a few live renderers, one render at a time on each. */
|
|
1328
1332
|
render(provider, id, width, height, request) {
|
|
1329
|
-
|
|
1330
|
-
let r = this.renderers.get(k);
|
|
1331
|
-
if (!r) {
|
|
1332
|
-
const renderer = Promise.resolve().then(() => provider.createRenderer(id, { width, height }));
|
|
1333
|
-
renderer.catch(() => this.renderers.delete(k));
|
|
1334
|
-
r = { renderer, queue: Promise.resolve() };
|
|
1335
|
-
this.renderers.set(k, r);
|
|
1336
|
-
}
|
|
1337
|
-
const entry = r;
|
|
1338
|
-
const next = entry.queue.then(() => entry.renderer).then((renderer) => renderer.render(request));
|
|
1339
|
-
entry.queue = next.catch(() => void 0);
|
|
1340
|
-
return next;
|
|
1333
|
+
return this.pool.render(provider, id, { width, height }, request);
|
|
1341
1334
|
}
|
|
1342
1335
|
/** Forgets every picture and failure and disposes the renderers (e.g. after the provider changes). */
|
|
1343
1336
|
reset() {
|
|
@@ -1346,9 +1339,7 @@ var VideoEffectsEngine = class {
|
|
|
1346
1339
|
this.pending.clear();
|
|
1347
1340
|
this.failures.clear();
|
|
1348
1341
|
this.descriptions.clear();
|
|
1349
|
-
|
|
1350
|
-
});
|
|
1351
|
-
this.renderers.clear();
|
|
1342
|
+
this.pool.clear();
|
|
1352
1343
|
}
|
|
1353
1344
|
subscribe(listener) {
|
|
1354
1345
|
this.listeners.add(listener);
|
|
@@ -2389,4 +2380,4 @@ export {
|
|
|
2389
2380
|
toVideoFfmpeg,
|
|
2390
2381
|
toVideoLoudnessMeasure
|
|
2391
2382
|
};
|
|
2392
|
-
//# sourceMappingURL=chunk-
|
|
2383
|
+
//# sourceMappingURL=chunk-G6WXWS4Y.js.map
|