@pixerate/editor 0.250.0 → 0.252.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/agent/index.cjs +40 -41
- package/dist/agent/index.js +9 -10
- package/dist/animation/index.cjs +6 -7
- package/dist/animation/index.js +5 -6
- package/dist/animation-editor/index.cjs +70 -70
- package/dist/animation-editor/index.js +12 -12
- package/dist/brushes/index.cjs +2087 -0
- package/dist/brushes/index.d.cts +17 -0
- package/dist/brushes/index.d.ts +17 -0
- package/dist/brushes/index.js +2087 -0
- package/dist/brushes/library.d.cts +104 -0
- package/dist/brushes/library.d.ts +104 -0
- package/dist/brushes/migrate.d.cts +17 -0
- package/dist/brushes/migrate.d.ts +17 -0
- package/dist/brushes/normalize.d.cts +15 -0
- package/dist/brushes/normalize.d.ts +15 -0
- package/dist/brushes/presets.d.cts +12 -0
- package/dist/brushes/presets.d.ts +12 -0
- package/dist/brushes/profiles.d.cts +85 -0
- package/dist/brushes/profiles.d.ts +85 -0
- package/dist/brushes/resolve.d.cts +56 -0
- package/dist/brushes/resolve.d.ts +56 -0
- package/dist/brushes/schema.d.cts +29 -0
- package/dist/brushes/schema.d.ts +29 -0
- package/dist/brushes/tools.d.cts +37 -0
- package/dist/brushes/tools.d.ts +37 -0
- package/dist/brushes/types.d.cts +323 -0
- package/dist/brushes/types.d.ts +323 -0
- package/dist/{brushstrokeRender-2FHFLSEG.js → brushstrokeRender-5PYSKZIJ.js} +8 -8
- package/dist/{brushstrokeRender-QGRXOKDA.cjs → brushstrokeRender-7FLLSQEC.cjs} +14 -14
- package/dist/canvas/index.cjs +57 -58
- package/dist/canvas/index.js +31 -32
- package/dist/chart/index.cjs +159 -160
- package/dist/chart/index.js +9 -10
- package/dist/{chunk-NOHJP5TK.js → chunk-2ZJ4DT3M.js} +1 -1
- package/dist/{chunk-XZNU4DUX.cjs → chunk-3NS5C7FB.cjs} +76 -76
- package/dist/{chunk-UTI5IITZ.cjs → chunk-4ZC5QJE2.cjs} +3 -3
- package/dist/{chunk-SMSGP2HQ.js → chunk-5JNA6LLY.js} +1 -1
- package/dist/{chunk-RD7RX52G.cjs → chunk-5UEFBM2M.cjs} +207 -18
- package/dist/{chunk-WA44NKPF.js → chunk-62Z5WLRA.js} +1 -1
- package/dist/{chunk-BVRRIW7F.js → chunk-6GRUVGKU.js} +3 -3
- package/dist/{chunk-QARCM66V.js → chunk-6ZZKRH7R.js} +3 -3
- package/dist/{chunk-BP6KSGVD.js → chunk-7272D3K2.js} +4 -6
- package/dist/{chunk-NTRAVM2I.js → chunk-7P6VF3FG.js} +2 -2
- package/dist/chunk-APX63ILU.js +173 -0
- package/dist/{chunk-W7L4HUT2.cjs → chunk-CJ6TBL2N.cjs} +16 -16
- package/dist/{chunk-7PT4RJL5.cjs → chunk-EUIDTZNQ.cjs} +111 -113
- package/dist/{chunk-CXXXAZ7H.js → chunk-F6R67I3A.js} +1 -1
- package/dist/{chunk-I7NJPHWV.cjs → chunk-FQPUF2W2.cjs} +35 -606
- package/dist/{chunk-D5KGAO4Z.js → chunk-GCVFEPJG.js} +2 -573
- package/dist/{chunk-LEQKZGQI.js → chunk-GOBOCZZI.js} +1 -1
- package/dist/{chunk-KDLBJ6QR.js → chunk-GYMMNCFT.js} +3 -3
- package/dist/{chunk-NUTMINJZ.cjs → chunk-H7ET2ISK.cjs} +52 -52
- package/dist/chunk-HS6QDWDF.cjs +1029 -0
- package/dist/{chunk-T7KQEMAE.cjs → chunk-HUAISCUX.cjs} +18 -18
- package/dist/{chunk-YGQVCQTG.js → chunk-ILP77UD6.js} +1 -1
- package/dist/{chunk-S6OT6CTS.cjs → chunk-IWEVV63O.cjs} +31 -33
- package/dist/{chunk-M2VKFE5L.cjs → chunk-JFHBXNR2.cjs} +88 -88
- package/dist/{chunk-WPUXGDH4.cjs → chunk-JPEHXIB5.cjs} +10 -10
- package/dist/chunk-JSDND7DF.cjs +173 -0
- package/dist/{chunk-36ZTV7WO.js → chunk-L6Y7TSQ4.js} +1 -1
- package/dist/{chunk-YW43M56C.cjs → chunk-LFMKWGFL.cjs} +1 -1
- package/dist/{chunk-V6DT2CDH.js → chunk-M2TPMYJE.js} +1 -1
- package/dist/{chunk-LJZRHVZV.cjs → chunk-M5GLQQWG.cjs} +2 -2
- package/dist/{chunk-JEGJP4OW.js → chunk-MHLU6GRJ.js} +196 -7
- package/dist/{chunk-KMPM5JM5.js → chunk-MONXNVZK.js} +4 -6
- package/dist/chunk-MTKY6K3Q.js +1029 -0
- package/dist/{chunk-MOW3JMNG.cjs → chunk-N76AMOKE.cjs} +42 -42
- package/dist/{chunk-75K3W4D6.cjs → chunk-NKGB64CW.cjs} +16 -16
- package/dist/{chunk-SGPIVHJB.js → chunk-P3K2JCJA.js} +3 -3
- package/dist/chunk-PXDIAYB6.cjs +594 -0
- package/dist/{chunk-3TWOCSCY.js → chunk-QC3OXRE4.js} +9 -9
- package/dist/{chunk-YM6ZBTXG.cjs → chunk-QLSGTCYT.cjs} +23 -23
- package/dist/{chunk-7YW7T5TJ.js → chunk-RHPSE2YR.js} +2 -2
- package/dist/{chunk-44BMJJVA.cjs → chunk-RUONPPMC.cjs} +8 -8
- package/dist/{chunk-ATK6ABN3.cjs → chunk-SABJMH6M.cjs} +145 -12
- package/dist/{chunk-XWOLPNBW.cjs → chunk-SOSBOS5T.cjs} +22 -22
- package/dist/{chunk-PPFJHTW5.cjs → chunk-TFF2GTGN.cjs} +22 -24
- package/dist/{chunk-X7WRL5ZZ.cjs → chunk-TLOGFIIV.cjs} +37 -37
- package/dist/chunk-TXFWZ5ZJ.js +594 -0
- package/dist/{chunk-GXAK6Q5J.js → chunk-UFEDHACQ.js} +2 -2
- package/dist/{chunk-GA4EU4P3.cjs → chunk-UXETV2NC.cjs} +4 -4
- package/dist/{chunk-N4DFDI73.js → chunk-WKMUBATU.js} +1 -1
- package/dist/{chunk-3R5P3DVY.cjs → chunk-WRZ6C4TU.cjs} +6 -6
- package/dist/{chunk-U4NUOKBT.js → chunk-WZOGDKCQ.js} +134 -1
- package/dist/{chunk-6ADHGQ73.js → chunk-YBAPT7NL.js} +2 -4
- package/dist/color/index.cjs +4 -6
- package/dist/color/index.js +7 -9
- package/dist/export/index.cjs +7 -8
- package/dist/export/index.js +6 -7
- package/dist/extensions/index.cjs +10 -11
- package/dist/extensions/index.js +9 -10
- package/dist/gradient/index.cjs +33 -34
- package/dist/gradient/index.js +4 -5
- package/dist/image-editor/index.cjs +845 -844
- package/dist/image-editor/index.js +39 -38
- package/dist/index.cjs +16 -17
- package/dist/index.js +10 -11
- package/dist/paint/index.cjs +6 -4
- package/dist/paint/index.js +21 -19
- package/dist/paint-editor/brushes.d.cts +1 -2
- package/dist/paint-editor/brushes.d.ts +1 -2
- package/dist/paint-editor/index.cjs +2193 -694
- package/dist/paint-editor/index.js +1575 -76
- package/dist/paint-editor/mark-settings.d.cts +104 -0
- package/dist/paint-editor/mark-settings.d.ts +104 -0
- package/dist/paint-editor/procedural.d.cts +2 -75
- package/dist/paint-editor/procedural.d.ts +2 -75
- package/dist/paint-editor/stickers.d.cts +1 -22
- package/dist/paint-editor/stickers.d.ts +1 -22
- package/dist/raster/index.cjs +2 -2
- package/dist/raster/index.js +9 -9
- package/dist/stickers/index.cjs +10 -10
- package/dist/stickers/index.js +9 -9
- package/dist/tokens/index.cjs +3 -4
- package/dist/tokens/index.js +2 -3
- package/dist/tools/skill-evals.d.cts +8 -1
- package/dist/tools/skill-evals.d.ts +8 -1
- package/dist/typography/index.cjs +7 -8
- package/dist/typography/index.js +2 -3
- package/dist/vector/index.cjs +974 -974
- package/dist/vector/index.js +12 -12
- package/dist/video-editor/index.cjs +6 -7
- package/dist/video-editor/index.js +5 -6
- package/package.json +11 -1
- package/skills/README.md +2 -0
- package/skills/pixerate-brushes/SKILL.md +104 -0
- package/skills/pixerate-brushes-design/SKILL.md +88 -0
- package/skills/pixerate-brushes-design/evals/canvas-chalk.json +15 -0
- package/skills/pixerate-brushes-design/evals/pink-highlighter.json +15 -0
- package/skills/pixerate-brushes-design/evals/port-to-vector.json +17 -0
- package/dist/chunk-4JNWA3VT.cjs +0 -302
- package/dist/chunk-7AHBW2CQ.cjs +0 -200
- package/dist/chunk-F67XMVDI.js +0 -200
- package/dist/chunk-GT77U7QG.cjs +0 -2637
- package/dist/chunk-OTEPAQJX.js +0 -2637
- package/dist/chunk-WKH5ZAUA.js +0 -302
package/dist/paint/index.js
CHANGED
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
spotHealPixels,
|
|
30
30
|
spotHealWindow,
|
|
31
31
|
toneOf
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-62Z5WLRA.js";
|
|
33
33
|
import {
|
|
34
34
|
bestOffset,
|
|
35
35
|
contentAwareFill,
|
|
@@ -137,6 +137,24 @@ import {
|
|
|
137
137
|
} from "../chunk-WQCNC4DK.js";
|
|
138
138
|
import {
|
|
139
139
|
BrushstrokeCache,
|
|
140
|
+
GRAIN_PATTERNS,
|
|
141
|
+
GRAIN_TILE,
|
|
142
|
+
PaperGrain,
|
|
143
|
+
brushstrokeDataUrl,
|
|
144
|
+
brushstrokeKey,
|
|
145
|
+
brushstrokeSamples,
|
|
146
|
+
brushstrokeStrokeOptions,
|
|
147
|
+
brushstrokeToCanvas,
|
|
148
|
+
grainCatch,
|
|
149
|
+
grainHeights,
|
|
150
|
+
isBrushstrokeBrush,
|
|
151
|
+
paintPathStroke,
|
|
152
|
+
pathStrokeCoverage,
|
|
153
|
+
pathStrokeDabs,
|
|
154
|
+
renderBrushstroke,
|
|
155
|
+
strokeGrainCatch
|
|
156
|
+
} from "../chunk-TXFWZ5ZJ.js";
|
|
157
|
+
import {
|
|
140
158
|
CoverageMap,
|
|
141
159
|
DEFAULT_BLENDER,
|
|
142
160
|
DEFAULT_BRUSH,
|
|
@@ -146,8 +164,6 @@ import {
|
|
|
146
164
|
DEFAULT_SMUDGE,
|
|
147
165
|
DabWalker,
|
|
148
166
|
EMPTY_MIXER_LOAD,
|
|
149
|
-
GRAIN_PATTERNS,
|
|
150
|
-
GRAIN_TILE,
|
|
151
167
|
MAX_BRUSH_SIZE,
|
|
152
168
|
MIXER_DRAIN,
|
|
153
169
|
MIXER_PICKUP_RATE,
|
|
@@ -168,7 +184,6 @@ import {
|
|
|
168
184
|
PaintExchange,
|
|
169
185
|
PaintGradientSampler,
|
|
170
186
|
PaintSourceError,
|
|
171
|
-
PaperGrain,
|
|
172
187
|
SmudgeTip,
|
|
173
188
|
StrokeCoverage,
|
|
174
189
|
TIP_GRADIENT_STEPS,
|
|
@@ -178,11 +193,6 @@ import {
|
|
|
178
193
|
applyStrokeToTile,
|
|
179
194
|
blendRadius,
|
|
180
195
|
blenderDab,
|
|
181
|
-
brushstrokeDataUrl,
|
|
182
|
-
brushstrokeKey,
|
|
183
|
-
brushstrokeSamples,
|
|
184
|
-
brushstrokeStrokeOptions,
|
|
185
|
-
brushstrokeToCanvas,
|
|
186
196
|
cleanMixer,
|
|
187
197
|
coverageTileCoord,
|
|
188
198
|
createBlenderScratch,
|
|
@@ -190,10 +200,7 @@ import {
|
|
|
190
200
|
dabRect,
|
|
191
201
|
exchangeRates,
|
|
192
202
|
gradientDabColor,
|
|
193
|
-
grainCatch,
|
|
194
|
-
grainHeights,
|
|
195
203
|
hexToPaintRgb,
|
|
196
|
-
isBrushstrokeBrush,
|
|
197
204
|
isGradientPaint,
|
|
198
205
|
loadMixer,
|
|
199
206
|
mixerRates,
|
|
@@ -203,29 +210,24 @@ import {
|
|
|
203
210
|
normalizeMixer,
|
|
204
211
|
normalizeSmudge,
|
|
205
212
|
paintGradientMappingFor,
|
|
206
|
-
paintPathStroke,
|
|
207
213
|
paintSourceColor,
|
|
208
214
|
paintSourceCss,
|
|
209
215
|
parsePaintSource,
|
|
210
|
-
pathStrokeCoverage,
|
|
211
|
-
pathStrokeDabs,
|
|
212
216
|
put255,
|
|
213
217
|
rasterizeDab,
|
|
214
218
|
readPaintSource,
|
|
215
219
|
removePaintGradientStop,
|
|
216
|
-
renderBrushstroke,
|
|
217
220
|
resolvePaintGradient,
|
|
218
221
|
reversePaintGradient,
|
|
219
222
|
scalePaintGradient,
|
|
220
223
|
smoothPoints,
|
|
221
224
|
solidPaint,
|
|
222
|
-
strokeGrainCatch,
|
|
223
225
|
tipFalloff,
|
|
224
226
|
tipReach,
|
|
225
227
|
tipShape,
|
|
226
228
|
updatePaintGradientStop,
|
|
227
229
|
walkDabs
|
|
228
|
-
} from "../chunk-
|
|
230
|
+
} from "../chunk-GCVFEPJG.js";
|
|
229
231
|
import {
|
|
230
232
|
TileableNoise,
|
|
231
233
|
hash2,
|
|
@@ -239,6 +241,7 @@ import {
|
|
|
239
241
|
BRUSHSTROKE_MIN_SCALE,
|
|
240
242
|
brushstrokeScaleBucket
|
|
241
243
|
} from "../chunk-ODBT55Q7.js";
|
|
244
|
+
import "../chunk-OTTT5N3K.js";
|
|
242
245
|
import {
|
|
243
246
|
PIGMENT_BANDS,
|
|
244
247
|
PIGMENT_LAMBDA_MIN,
|
|
@@ -252,7 +255,6 @@ import {
|
|
|
252
255
|
rgbToReflectance,
|
|
253
256
|
setPigmentColor
|
|
254
257
|
} from "../chunk-IRSTHLQQ.js";
|
|
255
|
-
import "../chunk-OTTT5N3K.js";
|
|
256
258
|
import "../chunk-HVVR5PZW.js";
|
|
257
259
|
import "../chunk-QGHEDC7B.js";
|
|
258
260
|
export {
|
|
@@ -9,8 +9,7 @@ import { type BlenderSettings, type SmudgeSettings } from '../paint/blending.cjs
|
|
|
9
9
|
import type { MixingModel } from '../paint/exchange.cjs';
|
|
10
10
|
import { type PaintGradientSource, type PaintSource } from '../paint/gradient-paint.cjs';
|
|
11
11
|
import { type MixerSettings } from '../paint/mixer.cjs';
|
|
12
|
-
import { type StickerSettings } from './
|
|
13
|
-
import { type BristleSettings, type ParticleSettings } from './procedural.cjs';
|
|
12
|
+
import { type BristleSettings, type ParticleSettings, type StickerSettings } from './mark-settings.cjs';
|
|
14
13
|
/**
|
|
15
14
|
* How a brush makes marks: `dab` (dabs into a stroke buffer, or dab by dab through the pick-up /
|
|
16
15
|
* mix exchange when its behaviour asks for it), `eraser` (removes alpha), `mixer` (the Mixer
|
|
@@ -9,8 +9,7 @@ import { type BlenderSettings, type SmudgeSettings } from '../paint/blending.js'
|
|
|
9
9
|
import type { MixingModel } from '../paint/exchange.js';
|
|
10
10
|
import { type PaintGradientSource, type PaintSource } from '../paint/gradient-paint.js';
|
|
11
11
|
import { type MixerSettings } from '../paint/mixer.js';
|
|
12
|
-
import { type StickerSettings } from './
|
|
13
|
-
import { type BristleSettings, type ParticleSettings } from './procedural.js';
|
|
12
|
+
import { type BristleSettings, type ParticleSettings, type StickerSettings } from './mark-settings.js';
|
|
14
13
|
/**
|
|
15
14
|
* How a brush makes marks: `dab` (dabs into a stroke buffer, or dab by dab through the pick-up /
|
|
16
15
|
* mix exchange when its behaviour asks for it), `eraser` (removes alpha), `mixer` (the Mixer
|