@pixerate/editor 0.125.0 → 0.126.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/animation-editor/index.cjs +9 -11
- package/dist/animation-editor/index.cjs.map +1 -1
- package/dist/animation-editor/index.js +2 -4
- package/dist/animation-editor/index.js.map +1 -1
- package/dist/{chunk-G6WXWS4Y.js → chunk-FICSDDDF.js} +2 -2
- package/dist/{chunk-QDJKUBWE.cjs → chunk-JODTP4DP.cjs} +176 -5
- package/dist/chunk-JODTP4DP.cjs.map +1 -0
- package/dist/{chunk-XZWOLXWA.js → chunk-QFSTQHZY.js} +174 -3
- package/dist/chunk-QFSTQHZY.js.map +1 -0
- package/dist/{chunk-UXFI3CDZ.cjs → chunk-SFCPGMCT.cjs} +8 -8
- package/dist/{chunk-UXFI3CDZ.cjs.map → chunk-SFCPGMCT.cjs.map} +1 -1
- package/dist/effects/index.cjs +32 -34
- package/dist/effects/index.cjs.map +1 -1
- package/dist/effects/index.js +3 -5
- package/dist/effects/index.js.map +1 -1
- package/dist/image-editor/index.cjs +13 -15
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.js +2 -4
- package/dist/image-editor/index.js.map +1 -1
- package/dist/paint-editor/index.cjs +728 -108
- package/dist/paint-editor/index.cjs.map +1 -1
- package/dist/paint-editor/index.d.cts +246 -9
- package/dist/paint-editor/index.d.ts +246 -9
- package/dist/paint-editor/index.js +631 -11
- package/dist/paint-editor/index.js.map +1 -1
- package/dist/vector/index.cjs +6 -8
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.js +2 -4
- package/dist/vector/index.js.map +1 -1
- package/dist/video-editor/index.cjs +269 -271
- package/dist/video-editor/index.cjs.map +1 -1
- package/dist/video-editor/index.js +3 -5
- package/dist/video-editor/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/pixerate-paint-editor/SKILL.md +40 -1
- package/dist/chunk-IOXKXQNW.cjs +0 -178
- package/dist/chunk-IOXKXQNW.cjs.map +0 -1
- package/dist/chunk-QDJKUBWE.cjs.map +0 -1
- package/dist/chunk-TGKT5QAB.js +0 -178
- package/dist/chunk-TGKT5QAB.js.map +0 -1
- package/dist/chunk-XZWOLXWA.js.map +0 -1
- /package/dist/{chunk-G6WXWS4Y.js.map → chunk-FICSDDDF.js.map} +0 -0
package/dist/vector/index.cjs
CHANGED
|
@@ -481,12 +481,10 @@ var _chunkV5YGPRCZcjs = require('../chunk-V5YGPRCZ.cjs');
|
|
|
481
481
|
var _chunkQQKTOA4Ucjs = require('../chunk-QQKTOA4U.cjs');
|
|
482
482
|
|
|
483
483
|
|
|
484
|
-
var _chunkQDJKUBWEcjs = require('../chunk-QDJKUBWE.cjs');
|
|
485
484
|
|
|
486
485
|
|
|
487
486
|
|
|
488
|
-
|
|
489
|
-
var _chunkIOXKXQNWcjs = require('../chunk-IOXKXQNW.cjs');
|
|
487
|
+
var _chunkJODTP4DPcjs = require('../chunk-JODTP4DP.cjs');
|
|
490
488
|
|
|
491
489
|
|
|
492
490
|
|
|
@@ -7380,7 +7378,7 @@ var VectorEditorController = (_class7 = class _VectorEditorController {
|
|
|
7380
7378
|
}
|
|
7381
7379
|
// --- Provider effects ---
|
|
7382
7380
|
/** The effects provider slot (see `setEffectsProvider`). */
|
|
7383
|
-
__init57() {this.effects = new (0,
|
|
7381
|
+
__init57() {this.effects = new (0, _chunkJODTP4DPcjs.EffectsSlot)()}
|
|
7384
7382
|
/** The registered effects provider, or `null`. */
|
|
7385
7383
|
get effectsProvider() {
|
|
7386
7384
|
return this.effects.provider;
|
|
@@ -7404,10 +7402,10 @@ var VectorEditorController = (_class7 = class _VectorEditorController {
|
|
|
7404
7402
|
/** The effect's picture as group children, scaled into `box` (an affine fit). */
|
|
7405
7403
|
async vectorEffectPicture(effect, values) {
|
|
7406
7404
|
const provider = this.effects.require();
|
|
7407
|
-
if (!provider.applyVectorEffect) throw new (0,
|
|
7405
|
+
if (!provider.applyVectorEffect) throw new (0, _chunkJODTP4DPcjs.EffectUnsupportedError)(`${provider.name} has no vector effects.`);
|
|
7408
7406
|
const d = await provider.describe(effect);
|
|
7409
|
-
if (d.kind !== "vector") throw new (0,
|
|
7410
|
-
const resolved =
|
|
7407
|
+
if (d.kind !== "vector") throw new (0, _chunkJODTP4DPcjs.EffectUnsupportedError)(`"${d.id}" (${d.name}) is a ${d.kind} effect; the vector editor adds vector effects, which bring their own picture${d.kind === "motion" ? " (apply motion in the animation editor)" : ""}.`, d.id);
|
|
7408
|
+
const resolved = _chunkJODTP4DPcjs.resolveEffectValues.call(void 0, d, values);
|
|
7411
7409
|
const motion = await provider.applyVectorEffect(d.id, this.toSvg(), resolved);
|
|
7412
7410
|
const parsed = _chunkQQKTOA4Ucjs.parseVectorSvg.call(void 0, motion.svg);
|
|
7413
7411
|
if (!parsed.nodes.length) throw new Error(`"${d.name}" drew no shapes the editor can read.`);
|
|
@@ -16819,7 +16817,7 @@ function createVectorEffectsToolProvider(controller, options = {}) {
|
|
|
16819
16817
|
const effects = _optionalChain([g, 'optionalAccess', _728 => _728.providerEffect]) ? [info(g)] : [];
|
|
16820
16818
|
return { target: id, effect: _nullishCoalesce(removed, () => ( effects[0])), effects };
|
|
16821
16819
|
};
|
|
16822
|
-
return
|
|
16820
|
+
return _chunkJODTP4DPcjs.createEffectToolProvider.call(void 0, {
|
|
16823
16821
|
id: _nullishCoalesce(options.id, () => ( "vector-effects")),
|
|
16824
16822
|
namespace: options.namespace,
|
|
16825
16823
|
target: { noun: "group", id: `For apply_effect: "document" for the top level, or a group id to put the picture in. For update_effect and remove_effect: the effect group's id from list_applied_effects.` },
|