@pixerate/editor 0.269.2 → 0.271.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/README.md +5 -2
- package/dist/agent/index.cjs +30 -30
- package/dist/agent/index.js +3 -3
- package/dist/animation-editor/index.cjs +62 -62
- package/dist/animation-editor/index.js +4 -4
- package/dist/canvas/editorDocument.d.cts +3 -1
- package/dist/canvas/editorDocument.d.ts +3 -1
- package/dist/canvas/index.cjs +53 -27
- package/dist/canvas/index.js +34 -8
- package/dist/chart/index.cjs +21 -21
- package/dist/chart/index.js +2 -2
- package/dist/{chunk-GBEF2D4P.js → chunk-23YL2EAB.js} +1 -1
- package/dist/{chunk-QGVTOCNB.js → chunk-6ZSFRRJI.js} +1 -1
- package/dist/{chunk-4YSPQGZW.js → chunk-B5W677L7.js} +1 -1
- package/dist/{chunk-4NMPUJUK.cjs → chunk-DDL3ZBHK.cjs} +86 -86
- package/dist/{chunk-T4JPGBW3.cjs → chunk-DGITFN73.cjs} +8 -8
- package/dist/{chunk-PY4GWSE2.cjs → chunk-EBFPMSJO.cjs} +27 -5
- package/dist/{chunk-NS62CQ2B.js → chunk-GAZPHCTV.js} +23 -2
- package/dist/{chunk-YYBW6DF2.cjs → chunk-GSLOH2IN.cjs} +2 -2
- package/dist/{chunk-56RHCIJV.cjs → chunk-JJ2H25JG.cjs} +237 -170
- package/dist/{chunk-CBVNCWJM.cjs → chunk-LBDC5434.cjs} +2 -2
- package/dist/{chunk-BENSE3VX.cjs → chunk-M2ZVPU7L.cjs} +23 -23
- package/dist/{chunk-MQ6MGIQM.js → chunk-NMZQMPFZ.js} +1 -1
- package/dist/{chunk-AI4F33IV.cjs → chunk-NQUKTRKN.cjs} +45 -45
- package/dist/{chunk-4CPOKP27.js → chunk-QYXUE37Q.js} +1 -1
- package/dist/{chunk-MWUZCEFT.js → chunk-S2XPXA47.js} +1 -1
- package/dist/{chunk-EHLOCVWB.js → chunk-T2URHAJX.js} +27 -5
- package/dist/{chunk-FUDP5QBB.js → chunk-TNHDCP4R.js} +70 -3
- package/dist/{chunk-VBRHE4AM.cjs → chunk-U2ASNGO6.cjs} +35 -35
- package/dist/{chunk-WKPXOGZZ.cjs → chunk-WPLGZBNE.cjs} +23 -2
- package/dist/{chunk-N3UMQVKX.js → chunk-X4FTNFIA.js} +1 -1
- package/dist/{chunk-2OQGPEHH.cjs → chunk-XUDMRMXQ.cjs} +2 -2
- package/dist/{chunk-THBJHPUL.js → chunk-YNFSH72F.js} +1 -1
- package/dist/diagram/index.cjs +2 -2
- package/dist/diagram/index.js +1 -1
- package/dist/effects/index.cjs +8 -5
- package/dist/effects/index.js +6 -3
- package/dist/effects/pool.d.cts +9 -0
- package/dist/effects/pool.d.ts +9 -0
- package/dist/effects/types.d.cts +2 -0
- package/dist/effects/types.d.ts +2 -0
- package/dist/extensions/index.cjs +5 -5
- package/dist/extensions/index.js +4 -4
- package/dist/gradient/index.cjs +2 -2
- package/dist/gradient/index.js +1 -1
- package/dist/history/HistoryManager.d.cts +9 -0
- package/dist/history/HistoryManager.d.ts +9 -0
- package/dist/history/index.cjs +2 -2
- package/dist/history/index.js +1 -1
- package/dist/history/types.d.cts +5 -2
- package/dist/history/types.d.ts +5 -2
- package/dist/image-editor/index.cjs +784 -784
- package/dist/image-editor/index.js +4 -4
- package/dist/index.cjs +10 -10
- package/dist/index.js +4 -4
- package/dist/paint-editor/controller.d.cts +75 -4
- package/dist/paint-editor/controller.d.ts +75 -4
- package/dist/paint-editor/effect-paint.d.cts +33 -8
- package/dist/paint-editor/effect-paint.d.ts +33 -8
- package/dist/paint-editor/effects.d.cts +4 -0
- package/dist/paint-editor/effects.d.ts +4 -0
- package/dist/paint-editor/index.cjs +692 -398
- package/dist/paint-editor/index.js +362 -68
- package/dist/paint-editor/stroke.d.cts +13 -5
- package/dist/paint-editor/stroke.d.ts +13 -5
- package/dist/parameters/index.cjs +2 -2
- package/dist/parameters/index.js +1 -1
- package/dist/vector/index.cjs +998 -998
- package/dist/vector/index.js +4 -4
- package/dist/video-editor/index.cjs +321 -321
- package/dist/video-editor/index.js +4 -4
- package/package.json +1 -1
- package/skills/pixerate-paint-editor/SKILL.md +2 -2
- package/skills/pixerate-paint-editor/references/effect-paint.md +28 -6
|
@@ -122,14 +122,14 @@ export declare class PaintStrokeSession {
|
|
|
122
122
|
/** The raw input so far (what a replay feeds back in). */
|
|
123
123
|
readonly points: PenPoint[];
|
|
124
124
|
private readonly base;
|
|
125
|
-
private
|
|
125
|
+
private live;
|
|
126
126
|
private readonly touched;
|
|
127
127
|
private readonly fresh;
|
|
128
|
-
private
|
|
129
|
-
private
|
|
128
|
+
private dry;
|
|
129
|
+
private wet;
|
|
130
130
|
private readonly wetDriver;
|
|
131
|
-
private
|
|
132
|
-
private
|
|
131
|
+
private thickDriver;
|
|
132
|
+
private stickerSpray;
|
|
133
133
|
/** Light paint: the stroke's twin over the light channel, and what it left there. */
|
|
134
134
|
private readonly lightTwin;
|
|
135
135
|
private lightResult;
|
|
@@ -144,6 +144,14 @@ export declare class PaintStrokeSession {
|
|
|
144
144
|
/** The mask stencils this stroke was painted with when they are not the editor's (replays). */
|
|
145
145
|
maskStencils: readonly import('./stencils.cjs').Stencil[] | null;
|
|
146
146
|
constructor(host: StrokeSessionHost, init: StrokeSessionInit);
|
|
147
|
+
/** Sets up the marks' engine (every kind but wet, which the wet layer paints), sampling `effect` for effect paint. */
|
|
148
|
+
private build;
|
|
149
|
+
/**
|
|
150
|
+
* Paints the stroke so far again, sampling new effect pixels: a path-mapped effect rendered
|
|
151
|
+
* along the path drawn so far (`map: { by: 'path' }`). Only the live preview changes; the stroke
|
|
152
|
+
* keeps recording its own paint. Nothing for wet strokes or once the stroke has ended.
|
|
153
|
+
*/
|
|
154
|
+
repaintEffect(pixels: EffectPaintPixels): void;
|
|
147
155
|
/** The stroke's twin over the light channel: the same marks in grey at the brush's light amount (see `light.ts`). */
|
|
148
156
|
private makeLightTwin;
|
|
149
157
|
/** Light paint: the layer's light channel after the stroke, or `null` when the stroke has no twin or left it unchanged. */
|
|
@@ -122,14 +122,14 @@ export declare class PaintStrokeSession {
|
|
|
122
122
|
/** The raw input so far (what a replay feeds back in). */
|
|
123
123
|
readonly points: PenPoint[];
|
|
124
124
|
private readonly base;
|
|
125
|
-
private
|
|
125
|
+
private live;
|
|
126
126
|
private readonly touched;
|
|
127
127
|
private readonly fresh;
|
|
128
|
-
private
|
|
129
|
-
private
|
|
128
|
+
private dry;
|
|
129
|
+
private wet;
|
|
130
130
|
private readonly wetDriver;
|
|
131
|
-
private
|
|
132
|
-
private
|
|
131
|
+
private thickDriver;
|
|
132
|
+
private stickerSpray;
|
|
133
133
|
/** Light paint: the stroke's twin over the light channel, and what it left there. */
|
|
134
134
|
private readonly lightTwin;
|
|
135
135
|
private lightResult;
|
|
@@ -144,6 +144,14 @@ export declare class PaintStrokeSession {
|
|
|
144
144
|
/** The mask stencils this stroke was painted with when they are not the editor's (replays). */
|
|
145
145
|
maskStencils: readonly import('./stencils.js').Stencil[] | null;
|
|
146
146
|
constructor(host: StrokeSessionHost, init: StrokeSessionInit);
|
|
147
|
+
/** Sets up the marks' engine (every kind but wet, which the wet layer paints), sampling `effect` for effect paint. */
|
|
148
|
+
private build;
|
|
149
|
+
/**
|
|
150
|
+
* Paints the stroke so far again, sampling new effect pixels: a path-mapped effect rendered
|
|
151
|
+
* along the path drawn so far (`map: { by: 'path' }`). Only the live preview changes; the stroke
|
|
152
|
+
* keeps recording its own paint. Nothing for wet strokes or once the stroke has ended.
|
|
153
|
+
*/
|
|
154
|
+
repaintEffect(pixels: EffectPaintPixels): void;
|
|
147
155
|
/** The stroke's twin over the light channel: the same marks in grey at the brush's light amount (see `light.ts`). */
|
|
148
156
|
private makeLightTwin;
|
|
149
157
|
/** Light paint: the layer's light channel after the stroke, or `null` when the stroke has no twin or left it unchanged. */
|
|
@@ -4,7 +4,7 @@ var _chunkSJ2CPTQCcjs = require('../chunk-SJ2CPTQC.cjs');
|
|
|
4
4
|
require('../chunk-2BSBFBOA.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkWPLGZBNEcjs = require('../chunk-WPLGZBNE.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkDWJJI6RTcjs = require('../chunk-DWJJI6RT.cjs');
|
|
@@ -461,7 +461,7 @@ var ParametersController = (_class = class {
|
|
|
461
461
|
__init12() {this.applying = false}
|
|
462
462
|
|
|
463
463
|
constructor(options) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);_class.prototype.__init10.call(this);_class.prototype.__init11.call(this);_class.prototype.__init12.call(this);_class.prototype.__init13.call(this);_class.prototype.__init14.call(this);
|
|
464
|
-
this.history = _nullishCoalesce(options.history, () => ( new (0,
|
|
464
|
+
this.history = _nullishCoalesce(options.history, () => ( new (0, _chunkWPLGZBNEcjs.HistoryManager)()));
|
|
465
465
|
this.schema = options.schema;
|
|
466
466
|
this.userPresets = (_nullishCoalesce(options.presets, () => ( []))).map((p) => ({ ...p, values: { ...p.values }, builtIn: false }));
|
|
467
467
|
this.time = _nullishCoalesce(options.time, () => ( 0));
|