@pixerate/editor 0.240.0 → 0.241.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 +58 -58
- package/dist/animation-editor/index.js +3 -3
- package/dist/{brushstrokeRender-WB67GMUP.js → brushstrokeRender-MOYGEXOC.js} +2 -2
- package/dist/{brushstrokeRender-MPOM7BFW.cjs → brushstrokeRender-UKADOV5D.cjs} +5 -5
- package/dist/canvas/index.cjs +8 -8
- package/dist/canvas/index.js +1 -1
- package/dist/{chunk-NKTNLJUJ.cjs → chunk-5BR7LC24.cjs} +99 -11
- package/dist/{chunk-ZXNO3ZOX.cjs → chunk-7F4G74UQ.cjs} +35 -35
- package/dist/{chunk-AD7GA3TL.cjs → chunk-AFLMXITL.cjs} +23 -23
- package/dist/{chunk-PP6BXVRL.cjs → chunk-HGGJ36HR.cjs} +1 -1
- package/dist/{chunk-BBUE3UJL.cjs → chunk-HW72ABGR.cjs} +86 -86
- package/dist/{chunk-7YGBSFC6.js → chunk-ILM6GYAX.js} +1 -1
- package/dist/{chunk-THXFU3JB.cjs → chunk-KCMV2534.cjs} +2 -2
- package/dist/{chunk-3E36VDMJ.js → chunk-NE6OOKWJ.js} +1 -1
- package/dist/{chunk-RV5DKZHU.js → chunk-QP2B3MID.js} +1 -1
- package/dist/{chunk-UUBO6RB5.js → chunk-UDBDYZET.js} +1 -1
- package/dist/{chunk-PJYG6FCF.js → chunk-XBZK47LV.js} +98 -10
- package/dist/{chunk-XK4SST43.js → chunk-ZDPLZDTT.js} +1 -1
- package/dist/image-editor/index.cjs +775 -775
- package/dist/image-editor/index.js +4 -4
- package/dist/paint-editor/controller.d.cts +67 -0
- package/dist/paint-editor/controller.d.ts +67 -0
- package/dist/paint-editor/effect-paint.d.cts +60 -3
- package/dist/paint-editor/effect-paint.d.ts +60 -3
- package/dist/paint-editor/index.cjs +676 -430
- package/dist/paint-editor/index.js +282 -36
- package/dist/paint-editor/stickers.d.cts +6 -0
- package/dist/paint-editor/stickers.d.ts +6 -0
- package/dist/paint-editor/thick.d.cts +4 -0
- package/dist/paint-editor/thick.d.ts +4 -0
- package/dist/paint-editor/wet.d.cts +8 -0
- package/dist/paint-editor/wet.d.ts +8 -0
- package/dist/vector/index.cjs +962 -962
- package/dist/vector/index.js +4 -4
- package/package.json +1 -1
- package/skills/pixerate-paint-editor/SKILL.md +17 -21
- package/skills/pixerate-paint-editor/references/effect-paint.md +25 -0
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { type MixerLoad, type PaintTileTarget, type RgbTriple } from '../paint/exchange.cjs';
|
|
17
17
|
import { type PaintGradientSource } from '../paint/gradient-paint.cjs';
|
|
18
|
+
import { type EffectPaintPixels } from './effect-paint.cjs';
|
|
18
19
|
import { TiledSurface, type RasterRect } from '../raster/surface.cjs';
|
|
19
20
|
import type { PaintBrush } from './brushes.cjs';
|
|
20
21
|
import { type PenPoint, type StrokeCopy } from './engine.cjs';
|
|
@@ -63,6 +64,8 @@ export interface ThickStrokeInit {
|
|
|
63
64
|
copies: readonly StrokeCopy[];
|
|
64
65
|
/** Gradient paint (resolved): the colour varies along the impasto. */
|
|
65
66
|
paint?: PaintGradientSource | null;
|
|
67
|
+
/** Effect paint: each pixel's colour is the effect's there (its alpha scales the coverage); the relief is unchanged. */
|
|
68
|
+
effect?: EffectPaintPixels | null;
|
|
66
69
|
}
|
|
67
70
|
/** One impasto stroke: colour through the exchange, height and material into live channel tiles. */
|
|
68
71
|
export declare class ThickStrokeDriver {
|
|
@@ -74,6 +77,7 @@ export declare class ThickStrokeDriver {
|
|
|
74
77
|
private readonly height;
|
|
75
78
|
private readonly material;
|
|
76
79
|
private readonly paint;
|
|
80
|
+
private readonly centre;
|
|
77
81
|
private tip;
|
|
78
82
|
private lastRaw;
|
|
79
83
|
private lastFed;
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { type MixerLoad, type PaintTileTarget, type RgbTriple } from '../paint/exchange.js';
|
|
17
17
|
import { type PaintGradientSource } from '../paint/gradient-paint.js';
|
|
18
|
+
import { type EffectPaintPixels } from './effect-paint.js';
|
|
18
19
|
import { TiledSurface, type RasterRect } from '../raster/surface.js';
|
|
19
20
|
import type { PaintBrush } from './brushes.js';
|
|
20
21
|
import { type PenPoint, type StrokeCopy } from './engine.js';
|
|
@@ -63,6 +64,8 @@ export interface ThickStrokeInit {
|
|
|
63
64
|
copies: readonly StrokeCopy[];
|
|
64
65
|
/** Gradient paint (resolved): the colour varies along the impasto. */
|
|
65
66
|
paint?: PaintGradientSource | null;
|
|
67
|
+
/** Effect paint: each pixel's colour is the effect's there (its alpha scales the coverage); the relief is unchanged. */
|
|
68
|
+
effect?: EffectPaintPixels | null;
|
|
66
69
|
}
|
|
67
70
|
/** One impasto stroke: colour through the exchange, height and material into live channel tiles. */
|
|
68
71
|
export declare class ThickStrokeDriver {
|
|
@@ -74,6 +77,7 @@ export declare class ThickStrokeDriver {
|
|
|
74
77
|
private readonly height;
|
|
75
78
|
private readonly material;
|
|
76
79
|
private readonly paint;
|
|
80
|
+
private readonly centre;
|
|
77
81
|
private tip;
|
|
78
82
|
private lastRaw;
|
|
79
83
|
private lastFed;
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
import { type MixerLoad, type RgbTriple } from '../paint/exchange.cjs';
|
|
25
25
|
import { type WetFlowSpec } from '../paint/wet/flow.cjs';
|
|
26
26
|
import { type PaintGradientSource } from '../paint/gradient-paint.cjs';
|
|
27
|
+
import { type EffectPaintPixels } from './effect-paint.cjs';
|
|
27
28
|
import { type WetParams, type WetTilt } from '../paint/wet/model.cjs';
|
|
28
29
|
import { type WetGpuProvider } from '../paint/wet/gpu.cjs';
|
|
29
30
|
import { WetWorld, type WetBackendInfo, type WetPaperInput, type WetSnapshot, type WetWorldOptions } from '../paint/wet/world.cjs';
|
|
@@ -53,6 +54,12 @@ export interface WetStrokeInit {
|
|
|
53
54
|
} | null;
|
|
54
55
|
/** Gradient paint (resolved): each dab's pigment comes from it. */
|
|
55
56
|
paint?: PaintGradientSource | null;
|
|
57
|
+
/**
|
|
58
|
+
* Effect paint: each pixel's pigment is the effect's colour there (its alpha scales the
|
|
59
|
+
* coverage), shifted by the paint the brush picks up. It then flows, blooms and granulates with
|
|
60
|
+
* the water like any pigment.
|
|
61
|
+
*/
|
|
62
|
+
effect?: EffectPaintPixels | null;
|
|
56
63
|
}
|
|
57
64
|
/**
|
|
58
65
|
* One wet-brush stroke: pen samples → dabs → wet tool edits. Points are applied only while the
|
|
@@ -75,6 +82,7 @@ export declare class WetStrokeDriver {
|
|
|
75
82
|
private tip;
|
|
76
83
|
private cov;
|
|
77
84
|
private readonly paint;
|
|
85
|
+
private readonly centre;
|
|
78
86
|
private readonly depth;
|
|
79
87
|
constructor(init: WetStrokeInit);
|
|
80
88
|
private readonly sampler;
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
import { type MixerLoad, type RgbTriple } from '../paint/exchange.js';
|
|
25
25
|
import { type WetFlowSpec } from '../paint/wet/flow.js';
|
|
26
26
|
import { type PaintGradientSource } from '../paint/gradient-paint.js';
|
|
27
|
+
import { type EffectPaintPixels } from './effect-paint.js';
|
|
27
28
|
import { type WetParams, type WetTilt } from '../paint/wet/model.js';
|
|
28
29
|
import { type WetGpuProvider } from '../paint/wet/gpu.js';
|
|
29
30
|
import { WetWorld, type WetBackendInfo, type WetPaperInput, type WetSnapshot, type WetWorldOptions } from '../paint/wet/world.js';
|
|
@@ -53,6 +54,12 @@ export interface WetStrokeInit {
|
|
|
53
54
|
} | null;
|
|
54
55
|
/** Gradient paint (resolved): each dab's pigment comes from it. */
|
|
55
56
|
paint?: PaintGradientSource | null;
|
|
57
|
+
/**
|
|
58
|
+
* Effect paint: each pixel's pigment is the effect's colour there (its alpha scales the
|
|
59
|
+
* coverage), shifted by the paint the brush picks up. It then flows, blooms and granulates with
|
|
60
|
+
* the water like any pigment.
|
|
61
|
+
*/
|
|
62
|
+
effect?: EffectPaintPixels | null;
|
|
56
63
|
}
|
|
57
64
|
/**
|
|
58
65
|
* One wet-brush stroke: pen samples → dabs → wet tool edits. Points are applied only while the
|
|
@@ -75,6 +82,7 @@ export declare class WetStrokeDriver {
|
|
|
75
82
|
private tip;
|
|
76
83
|
private cov;
|
|
77
84
|
private readonly paint;
|
|
85
|
+
private readonly centre;
|
|
78
86
|
private readonly depth;
|
|
79
87
|
constructor(init: WetStrokeInit);
|
|
80
88
|
private readonly sampler;
|