@pixerate/editor 0.226.0 → 0.227.1
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 +66 -66
- package/dist/animation-editor/index.js +4 -4
- package/dist/{brushstrokeRender-C3UU6GVC.js → brushstrokeRender-MAHOXL7K.js} +2 -2
- package/dist/{brushstrokeRender-EAJNE6WP.cjs → brushstrokeRender-WDTKD54B.cjs} +5 -5
- package/dist/canvas/effects.d.cts +18 -0
- package/dist/canvas/effects.d.ts +18 -0
- package/dist/canvas/index.cjs +34 -15
- package/dist/canvas/index.js +21 -2
- package/dist/{chunk-ABQ2VGUB.cjs → chunk-5MQOBTNP.cjs} +13 -2
- package/dist/{chunk-LCCMOWR7.cjs → chunk-ATKKG76G.cjs} +23 -23
- package/dist/{chunk-QAUIZPYI.cjs → chunk-BQE3Y6ZO.cjs} +2 -2
- package/dist/{chunk-G4E6RUPC.js → chunk-CDP2AKMA.js} +1 -1
- package/dist/{chunk-NDMXB4PR.js → chunk-CU6ANS5L.js} +1 -1
- package/dist/{chunk-ROVK6AXX.cjs → chunk-GNZI3KYK.cjs} +95 -23
- package/dist/{chunk-I7G3RSUJ.cjs → chunk-GXLZZVR5.cjs} +35 -35
- package/dist/{chunk-C6CMQXMI.cjs → chunk-IGPEBXUD.cjs} +7 -7
- package/dist/{chunk-4PA6YS6W.cjs → chunk-K5GXW5TR.cjs} +14 -14
- package/dist/{chunk-5YLOU7VF.js → chunk-KN3Y3FRY.js} +1 -1
- package/dist/{chunk-56RFHF7O.js → chunk-LPTFDCJO.js} +1 -1
- package/dist/{chunk-IWMDW7LB.cjs → chunk-MXJP77K4.cjs} +86 -86
- package/dist/{chunk-4MDWEX44.js → chunk-PB6JV62G.js} +1 -1
- package/dist/{chunk-F7YA3MMC.js → chunk-TQOL6CF7.js} +76 -4
- package/dist/{chunk-7DZ55AIE.js → chunk-UGYUGZE2.js} +13 -2
- package/dist/{chunk-ZMHPQ6HP.cjs → chunk-V3L7U63N.cjs} +1 -1
- package/dist/{chunk-DJBYJOHM.js → chunk-XSVUNSDJ.js} +1 -1
- package/dist/{chunk-BGOCAUXH.js → chunk-YMREOA67.js} +1 -1
- package/dist/effects/index.cjs +44 -44
- package/dist/effects/index.js +2 -2
- package/dist/image-editor/index.cjs +784 -784
- package/dist/image-editor/index.js +5 -5
- package/dist/paint-editor/controller.d.cts +54 -3
- package/dist/paint-editor/controller.d.ts +54 -3
- package/dist/paint-editor/dab-stroke.d.cts +3 -0
- package/dist/paint-editor/dab-stroke.d.ts +3 -0
- package/dist/paint-editor/effect-paint.d.cts +47 -0
- package/dist/paint-editor/effect-paint.d.ts +47 -0
- package/dist/paint-editor/effect-tools.d.cts +4 -2
- package/dist/paint-editor/effect-tools.d.ts +4 -2
- package/dist/paint-editor/effects.d.cts +3 -0
- package/dist/paint-editor/effects.d.ts +3 -0
- package/dist/paint-editor/engine.d.cts +4 -0
- package/dist/paint-editor/engine.d.ts +4 -0
- package/dist/paint-editor/index.cjs +542 -315
- package/dist/paint-editor/index.d.cts +1 -0
- package/dist/paint-editor/index.d.ts +1 -0
- package/dist/paint-editor/index.js +252 -25
- package/dist/paint-editor/procedural.d.cts +4 -0
- package/dist/paint-editor/procedural.d.ts +4 -0
- package/dist/paint-editor/stroke.d.cts +9 -0
- package/dist/paint-editor/stroke.d.ts +9 -0
- package/dist/paint-editor/strokes.d.cts +6 -2
- package/dist/paint-editor/strokes.d.ts +6 -2
- package/dist/vector/index.cjs +968 -968
- package/dist/vector/index.js +5 -5
- package/dist/video-editor/index.cjs +309 -309
- package/dist/video-editor/index.js +3 -3
- package/package.json +1 -1
- package/skills/pixerate-canvas/SKILL.md +2 -1
- package/skills/pixerate-paint-editor/SKILL.md +42 -6
- package/skills/pixerate-paint-sketch-to-finish/SKILL.md +7 -0
|
@@ -13,6 +13,7 @@ import { type MixerLoad } from '../paint/mixer.cjs';
|
|
|
13
13
|
import { TiledSurface, type RasterRect } from '../raster/surface.cjs';
|
|
14
14
|
import { type PaintBrush } from './brushes.cjs';
|
|
15
15
|
import type { PaintGradientSource } from '../paint/gradient-paint.cjs';
|
|
16
|
+
import type { EffectPaintPixels, PaintEffectPaint } from './effect-paint.cjs';
|
|
16
17
|
import { type PenPoint, type StrokeCopy } from './engine.cjs';
|
|
17
18
|
import type { PaperGrain } from './paper.cjs';
|
|
18
19
|
import type { Affine } from './strokes.cjs';
|
|
@@ -76,6 +77,14 @@ export interface StrokeSessionInit {
|
|
|
76
77
|
};
|
|
77
78
|
/** Gradient paint (resolved: concrete colours), or `null` for the one colour. Recorded with the stroke. */
|
|
78
79
|
paint?: PaintGradientSource | null;
|
|
80
|
+
/**
|
|
81
|
+
* Effect paint: the effect (recorded with the stroke) and its canvas-sized pixels, which dry
|
|
82
|
+
* dab, particle and bristle brushes sample per pixel and mixer / pickup brushes per dab.
|
|
83
|
+
*/
|
|
84
|
+
effect?: {
|
|
85
|
+
source: PaintEffectPaint;
|
|
86
|
+
pixels: EffectPaintPixels;
|
|
87
|
+
} | null;
|
|
79
88
|
}
|
|
80
89
|
export interface PaintStrokeResult {
|
|
81
90
|
layerId: string;
|
|
@@ -13,6 +13,7 @@ import { type MixerLoad } from '../paint/mixer.js';
|
|
|
13
13
|
import { TiledSurface, type RasterRect } from '../raster/surface.js';
|
|
14
14
|
import { type PaintBrush } from './brushes.js';
|
|
15
15
|
import type { PaintGradientSource } from '../paint/gradient-paint.js';
|
|
16
|
+
import type { EffectPaintPixels, PaintEffectPaint } from './effect-paint.js';
|
|
16
17
|
import { type PenPoint, type StrokeCopy } from './engine.js';
|
|
17
18
|
import type { PaperGrain } from './paper.js';
|
|
18
19
|
import type { Affine } from './strokes.js';
|
|
@@ -76,6 +77,14 @@ export interface StrokeSessionInit {
|
|
|
76
77
|
};
|
|
77
78
|
/** Gradient paint (resolved: concrete colours), or `null` for the one colour. Recorded with the stroke. */
|
|
78
79
|
paint?: PaintGradientSource | null;
|
|
80
|
+
/**
|
|
81
|
+
* Effect paint: the effect (recorded with the stroke) and its canvas-sized pixels, which dry
|
|
82
|
+
* dab, particle and bristle brushes sample per pixel and mixer / pickup brushes per dab.
|
|
83
|
+
*/
|
|
84
|
+
effect?: {
|
|
85
|
+
source: PaintEffectPaint;
|
|
86
|
+
pixels: EffectPaintPixels;
|
|
87
|
+
} | null;
|
|
79
88
|
}
|
|
80
89
|
export interface PaintStrokeResult {
|
|
81
90
|
layerId: string;
|
|
@@ -8,6 +8,7 @@ import type { PenPoint, StrokeCopy } from './engine.cjs';
|
|
|
8
8
|
import type { MixerLoad } from '../paint/exchange.cjs';
|
|
9
9
|
import { type Stencil } from './stencils.cjs';
|
|
10
10
|
import { type PaintGradientSource } from '../paint/gradient-paint.cjs';
|
|
11
|
+
import { type PaintEffectPaint } from './effect-paint.cjs';
|
|
11
12
|
/** An affine map [a, b, c, d, e, f]: (x, y) → (a·x + b·y + e, c·x + d·y + f). */
|
|
12
13
|
export type Affine = readonly [number, number, number, number, number, number];
|
|
13
14
|
export declare const IDENTITY_AFFINE: Affine;
|
|
@@ -28,8 +29,11 @@ export interface RecordedStroke {
|
|
|
28
29
|
steps?: number[];
|
|
29
30
|
/** The mask stencils it was painted through (so a replay keeps to them). */
|
|
30
31
|
stencils?: Stencil[];
|
|
31
|
-
/**
|
|
32
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Gradient paint, with concrete colours (`color` is then its first stop's colour, for older
|
|
34
|
+
* readers), or effect paint (the effect it took its colours from; replays render it first).
|
|
35
|
+
*/
|
|
36
|
+
paint?: PaintGradientSource | PaintEffectPaint;
|
|
33
37
|
}
|
|
34
38
|
export declare function applyAffine(m: Affine, x: number, y: number): {
|
|
35
39
|
x: number;
|
|
@@ -8,6 +8,7 @@ import type { PenPoint, StrokeCopy } from './engine.js';
|
|
|
8
8
|
import type { MixerLoad } from '../paint/exchange.js';
|
|
9
9
|
import { type Stencil } from './stencils.js';
|
|
10
10
|
import { type PaintGradientSource } from '../paint/gradient-paint.js';
|
|
11
|
+
import { type PaintEffectPaint } from './effect-paint.js';
|
|
11
12
|
/** An affine map [a, b, c, d, e, f]: (x, y) → (a·x + b·y + e, c·x + d·y + f). */
|
|
12
13
|
export type Affine = readonly [number, number, number, number, number, number];
|
|
13
14
|
export declare const IDENTITY_AFFINE: Affine;
|
|
@@ -28,8 +29,11 @@ export interface RecordedStroke {
|
|
|
28
29
|
steps?: number[];
|
|
29
30
|
/** The mask stencils it was painted through (so a replay keeps to them). */
|
|
30
31
|
stencils?: Stencil[];
|
|
31
|
-
/**
|
|
32
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Gradient paint, with concrete colours (`color` is then its first stop's colour, for older
|
|
34
|
+
* readers), or effect paint (the effect it took its colours from; replays render it first).
|
|
35
|
+
*/
|
|
36
|
+
paint?: PaintGradientSource | PaintEffectPaint;
|
|
33
37
|
}
|
|
34
38
|
export declare function applyAffine(m: Affine, x: number, y: number): {
|
|
35
39
|
x: number;
|