@pixerate/editor 0.270.0 → 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.
Files changed (41) hide show
  1. package/dist/animation-editor/index.cjs +60 -60
  2. package/dist/animation-editor/index.js +3 -3
  3. package/dist/canvas/index.cjs +2 -2
  4. package/dist/canvas/index.js +1 -1
  5. package/dist/{chunk-4YSPQGZW.js → chunk-B5W677L7.js} +1 -1
  6. package/dist/{chunk-4NMPUJUK.cjs → chunk-DDL3ZBHK.cjs} +86 -86
  7. package/dist/{chunk-PY4GWSE2.cjs → chunk-EBFPMSJO.cjs} +27 -5
  8. package/dist/{chunk-56RHCIJV.cjs → chunk-JJ2H25JG.cjs} +237 -170
  9. package/dist/{chunk-CBVNCWJM.cjs → chunk-LBDC5434.cjs} +2 -2
  10. package/dist/{chunk-BENSE3VX.cjs → chunk-M2ZVPU7L.cjs} +23 -23
  11. package/dist/{chunk-4CPOKP27.js → chunk-QYXUE37Q.js} +1 -1
  12. package/dist/{chunk-MWUZCEFT.js → chunk-S2XPXA47.js} +1 -1
  13. package/dist/{chunk-EHLOCVWB.js → chunk-T2URHAJX.js} +27 -5
  14. package/dist/{chunk-FUDP5QBB.js → chunk-TNHDCP4R.js} +70 -3
  15. package/dist/{chunk-VBRHE4AM.cjs → chunk-U2ASNGO6.cjs} +35 -35
  16. package/dist/{chunk-THBJHPUL.js → chunk-YNFSH72F.js} +1 -1
  17. package/dist/effects/index.cjs +5 -2
  18. package/dist/effects/index.js +4 -1
  19. package/dist/effects/pool.d.cts +9 -0
  20. package/dist/effects/pool.d.ts +9 -0
  21. package/dist/effects/types.d.cts +2 -0
  22. package/dist/effects/types.d.ts +2 -0
  23. package/dist/image-editor/index.cjs +784 -784
  24. package/dist/image-editor/index.js +4 -4
  25. package/dist/paint-editor/controller.d.cts +75 -4
  26. package/dist/paint-editor/controller.d.ts +75 -4
  27. package/dist/paint-editor/effect-paint.d.cts +33 -8
  28. package/dist/paint-editor/effect-paint.d.ts +33 -8
  29. package/dist/paint-editor/effects.d.cts +4 -0
  30. package/dist/paint-editor/effects.d.ts +4 -0
  31. package/dist/paint-editor/index.cjs +692 -398
  32. package/dist/paint-editor/index.js +362 -68
  33. package/dist/paint-editor/stroke.d.cts +13 -5
  34. package/dist/paint-editor/stroke.d.ts +13 -5
  35. package/dist/vector/index.cjs +996 -996
  36. package/dist/vector/index.js +3 -3
  37. package/dist/video-editor/index.cjs +317 -317
  38. package/dist/video-editor/index.js +2 -2
  39. package/package.json +1 -1
  40. package/skills/pixerate-paint-editor/SKILL.md +2 -2
  41. 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 readonly live;
125
+ private live;
126
126
  private readonly touched;
127
127
  private readonly fresh;
128
- private readonly dry;
129
- private readonly wet;
128
+ private dry;
129
+ private wet;
130
130
  private readonly wetDriver;
131
- private readonly thickDriver;
132
- private readonly stickerSpray;
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 readonly live;
125
+ private live;
126
126
  private readonly touched;
127
127
  private readonly fresh;
128
- private readonly dry;
129
- private readonly wet;
128
+ private dry;
129
+ private wet;
130
130
  private readonly wetDriver;
131
- private readonly thickDriver;
132
- private readonly stickerSpray;
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. */