@pixerate/editor 0.268.1 → 0.269.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 +27 -27
- package/dist/agent/index.js +1 -1
- package/dist/animation-editor/index.cjs +61 -61
- package/dist/animation-editor/index.js +5 -5
- package/dist/brushes/import/abr.d.cts +48 -0
- package/dist/brushes/import/abr.d.ts +48 -0
- package/dist/brushes/import/bplist.d.cts +24 -0
- package/dist/brushes/import/bplist.d.ts +24 -0
- package/dist/brushes/import/pack.d.cts +82 -0
- package/dist/brushes/import/pack.d.ts +82 -0
- package/dist/brushes/import/zip.d.cts +31 -0
- package/dist/brushes/import/zip.d.ts +31 -0
- package/dist/brushes/index.cjs +26 -6
- package/dist/brushes/index.d.cts +2 -0
- package/dist/brushes/index.d.ts +2 -0
- package/dist/brushes/index.js +22 -2
- package/dist/{chunk-SIFAIGB3.js → chunk-3AJCEJNH.js} +2 -162
- package/dist/{chunk-YXP6X3SY.cjs → chunk-3KNQ2W6X.cjs} +697 -10
- package/dist/{chunk-QNY7BDFP.js → chunk-4CPOKP27.js} +1 -1
- package/dist/{chunk-J4GXP53R.cjs → chunk-4NMPUJUK.cjs} +86 -86
- package/dist/{chunk-LDOD7VCT.js → chunk-4YSPQGZW.js} +1 -1
- package/dist/{chunk-JBB3GDBB.cjs → chunk-56RHCIJV.cjs} +2 -2
- package/dist/{chunk-4IMD2TLY.cjs → chunk-AI4F33IV.cjs} +3166 -2966
- package/dist/{chunk-YOVXQHA3.cjs → chunk-BENSE3VX.cjs} +23 -23
- package/dist/{chunk-VDGBHYC7.js → chunk-F7OO3DHP.js} +157 -1
- package/dist/{chunk-UVTO3D4E.js → chunk-FUDP5QBB.js} +1 -1
- package/dist/{chunk-3XDSNIGF.js → chunk-ININNHLM.js} +687 -0
- package/dist/{chunk-WIC7TG73.cjs → chunk-M4UQA2T4.cjs} +18 -18
- package/dist/{chunk-ITURMC2M.js → chunk-N3UMQVKX.js} +176 -176
- package/dist/{chunk-UWEQ55MY.cjs → chunk-N4KP3UQR.cjs} +157 -1
- package/dist/{chunk-D5BXSOSU.js → chunk-QGVTOCNB.js} +3118 -2918
- package/dist/{chunk-M6DNZNVY.js → chunk-RWDSSK2I.js} +4 -2
- package/dist/{chunk-CVFAAZXE.cjs → chunk-SPIO2GJU.cjs} +8 -6
- package/dist/{chunk-RHEMMGCN.cjs → chunk-T4JPGBW3.cjs} +173 -173
- package/dist/{chunk-HFY5LG5J.js → chunk-THBJHPUL.js} +1 -1
- package/dist/{chunk-NPWWSCWT.cjs → chunk-VBRHE4AM.cjs} +35 -35
- package/dist/{chunk-AZC2NDAR.js → chunk-WB22XMW3.js} +6 -6
- package/dist/{chunk-NIBFDFYW.cjs → chunk-YBMUHIOM.cjs} +12 -172
- package/dist/extensions/index.cjs +18 -4
- package/dist/extensions/index.d.cts +1 -0
- package/dist/extensions/index.d.ts +1 -0
- package/dist/extensions/index.js +17 -3
- package/dist/extensions/prompt-editor.d.cts +109 -0
- package/dist/extensions/prompt-editor.d.ts +109 -0
- package/dist/generation/index.cjs +15 -15
- package/dist/generation/index.js +3 -3
- package/dist/grammar/index.cjs +4 -4
- package/dist/grammar/index.js +7 -7
- package/dist/image-editor/index.cjs +785 -785
- package/dist/image-editor/index.js +6 -6
- package/dist/index.cjs +27 -13
- package/dist/index.js +23 -9
- package/dist/paint-editor/index.cjs +91 -91
- package/dist/paint-editor/index.js +6 -6
- package/dist/vector/index.cjs +1001 -1001
- package/dist/vector/index.js +6 -6
- package/package.json +1 -1
- package/skills/pixerate-brushes/SKILL.md +11 -2
- package/skills/pixerate-brushes-design/SKILL.md +2 -0
package/dist/vector/index.js
CHANGED
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
traceField,
|
|
36
36
|
traceVectorImage,
|
|
37
37
|
vectorTraceContours
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-THBJHPUL.js";
|
|
39
39
|
import {
|
|
40
40
|
rasterizeCoverage
|
|
41
41
|
} from "../chunk-ADMRNWR7.js";
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
reverseMorphContour,
|
|
67
67
|
subpathToMorphContour,
|
|
68
68
|
turnMorphContour
|
|
69
|
-
} from "../chunk-
|
|
69
|
+
} from "../chunk-4CPOKP27.js";
|
|
70
70
|
import {
|
|
71
71
|
DEFAULT_VECTOR_FONT,
|
|
72
72
|
IDENTITY_MATRIX,
|
|
@@ -556,14 +556,14 @@ import {
|
|
|
556
556
|
withVectorStrokes,
|
|
557
557
|
withVectorTargetPaint,
|
|
558
558
|
zigzagPaths
|
|
559
|
-
} from "../chunk-
|
|
559
|
+
} from "../chunk-FUDP5QBB.js";
|
|
560
560
|
import {
|
|
561
561
|
snapshotBrushLibrary
|
|
562
562
|
} from "../chunk-KZI3YWKW.js";
|
|
563
563
|
import "../chunk-JL6YH5WD.js";
|
|
564
564
|
import {
|
|
565
565
|
createProvenance
|
|
566
|
-
} from "../chunk-
|
|
566
|
+
} from "../chunk-RWDSSK2I.js";
|
|
567
567
|
import {
|
|
568
568
|
bezierPathBounds,
|
|
569
569
|
bezierPathToSvg,
|
|
@@ -615,8 +615,8 @@ import "../chunk-HVVR5PZW.js";
|
|
|
615
615
|
import {
|
|
616
616
|
deflate
|
|
617
617
|
} from "../chunk-QGHEDC7B.js";
|
|
618
|
-
import "../chunk-
|
|
619
|
-
import "../chunk-
|
|
618
|
+
import "../chunk-3AJCEJNH.js";
|
|
619
|
+
import "../chunk-F7OO3DHP.js";
|
|
620
620
|
import {
|
|
621
621
|
EDITOR_DOCUMENT_FORMAT,
|
|
622
622
|
defineEditorDocument,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pixerate-brushes
|
|
3
|
-
description: How to find, describe, create, change, check and share brushes in the Pixerate brush library through list_brush_presets, describe_brush, create_brush, update_brush, duplicate_brush, remove_brush, check_brush, export_brushes, import_brushes, preview_brush, add_brush_source and list_brush_sources - brushes made of facets (kind, medium and variety or tool, tip, marks, dynamics, behaviour, light, motion, colour), image tips and tip grain made from image sources, the built-in presets, and the host profiles that say what the paint editor, image editor, canvas and vector strokes can render. Use when asked to make, design, tweak, save, copy, delete, export, import or check a brush, make a brush from an image (a scanned mark, a leaf, a texture), give a brush grain, find a brush for a medium (pencil, ink, watercolour, oil, airbrush, highlighter), or make a brush work in another editor.
|
|
3
|
+
description: How to find, describe, create, change, check and share brushes in the Pixerate brush library through list_brush_presets, describe_brush, create_brush, update_brush, duplicate_brush, remove_brush, check_brush, export_brushes, import_brushes, import_brush_pack, preview_brush, add_brush_source and list_brush_sources - brushes made of facets (kind, medium and variety or tool, tip, marks, dynamics, behaviour, light, motion, colour), image tips and tip grain made from image sources, the built-in presets, and the host profiles that say what the paint editor, image editor, canvas and vector strokes can render. Use when asked to make, design, tweak, save, copy, delete, export, import or check a brush, make a brush from an image (a scanned mark, a leaf, a texture), give a brush grain, bring in a Photoshop .abr or Procreate .brush / .brushset pack, find a brush for a medium (pencil, ink, watercolour, oil, airbrush, highlighter), or make a brush work in another editor.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Brushes
|
|
@@ -79,7 +79,10 @@ drawn.
|
|
|
79
79
|
part; keep the `licence` it came with), then `create_brush` with `tip: { shape: "stamp",
|
|
80
80
|
stamps: ["source:<id>"] }` for an image tip, or `tip.grain.source` for grain.
|
|
81
81
|
`list_brush_sources` lists them and which brushes use each.
|
|
82
|
-
7. **
|
|
82
|
+
7. **Bring in a pack.** `import_brush_pack` with the file (base64), its `fileName` and the
|
|
83
|
+
`licence` it came with. Read `brushes` (with `renderable` for this host), `unsupported` (what
|
|
84
|
+
was not mapped) and `licence`, then `preview_brush` a few and tune them with `update_brush`.
|
|
85
|
+
8. **Share it.** `export_brushes` writes a library file; `import_brushes` adds one (version 1
|
|
83
86
|
files of the paint editor's older brushes are migrated). `check_brush` with `host` before
|
|
84
87
|
handing a brush to another editor.
|
|
85
88
|
|
|
@@ -132,6 +135,11 @@ drawn.
|
|
|
132
135
|
not strokes already painted. Objects marks take stickers only, so an image source there is
|
|
133
136
|
dropped (`problems` says so). Brush packs are often licensed for personal use only: keep the
|
|
134
137
|
`licence` text with the source.
|
|
138
|
+
- **Brush packs.** Only the tips (and Procreate grain) are imported: dynamics, pencil curves,
|
|
139
|
+
patterns, dual brushes and wet settings are listed in `unsupported`, so imported brushes paint
|
|
140
|
+
with default feel; tune them. Imported image tips are stamp tips, so canvas, vector and the image
|
|
141
|
+
editor can't paint them (`renderable` false). Packs are often for personal use only: pass and
|
|
142
|
+
keep their `licence`; never redistribute a library file of imported brushes without checking it.
|
|
135
143
|
- **Out-of-range values** are refused by the schema (`tip.size` is 1..2500 px); a stored brush
|
|
136
144
|
is clamped on import and reported in `problems`.
|
|
137
145
|
- **The paint editor paints from this library.** Its `set_brush` picks a brush by id here and
|
|
@@ -159,4 +167,5 @@ drawn.
|
|
|
159
167
|
| `import_brushes` | Add a library `file` (v2, v1 migrated, or a bare list): built-in ids and taken ids are skipped unless `overwrite`. Returns `added`, `replaced`, `skipped`, `problems`. |
|
|
160
168
|
| `preview_brush` | Only when the host renders previews: a sample stroke with a brush (`id`, `width`, `height`, `color`) as an image. |
|
|
161
169
|
| `add_brush_source` | Add an image (`name`, `image` PNG data: URL, optional `id`, `channel` auto / alpha / darkness / lightness, `invert`, `licence`, `origin`, `overwrite`) as a source for image tips and grain. Returns `id`, `ref` (`source:<id>`), `width`, `height`, `problems`, `replaced`. Then `create_brush` / `update_brush` with the ref in `tip.stamps` or `tip.grain.source`. |
|
|
170
|
+
| `import_brush_pack` | Import a Photoshop `.abr` or Procreate `.brush` / `.brushset` (`file` base64 or a data: URL, `fileName`, optional `format`, `prefix`, `licence`, `overwrite`). Returns `format`, `brushes` (id, name, `renderable` here), `sources`, `skipped`, `unsupported`, `licence`, `problems`. Then `preview_brush` and `update_brush` to tune. |
|
|
162
171
|
| `list_brush_sources` | The library's image sources (`text`, `offset`, `limit`). Returns `sources` (id, ref, name, width, height, licence, origin, `usedBy` brush ids) and `total`. Call before naming a `source:` ref. |
|
|
@@ -63,6 +63,7 @@ Ask when you cannot tell from the request; say what you assumed when you can.
|
|
|
63
63
|
| A colour that depends on the background (chalk, white ink) | `colour.default` as a light / dark pair `{ light, dark }`: the editor takes the side for its colour scheme when the brush is chosen. |
|
|
64
64
|
| A shape as the tip (stars, leaves, a logo) | `tip.shape` stamp with `stamps` (an editor stamp or a ref from `find_stickers`), continuous marks; it paints in the user's colour. Keep the sticker's colours with `marks` objects. Paint editor only. |
|
|
65
65
|
| A spray can or mist | `basedOn` `spray-can`, or `medium` spray with `marks` scatter (`density`, `size`). Paint editor only. |
|
|
66
|
+
| From a brush pack the user owns (.abr, .brushset) | `import_brush_pack` with its `licence`, pick the closest imported brush, then `update_brush` its feel (pressure, jitter, grain): packs import tips, not dynamics. |
|
|
66
67
|
| A change to a built-in | `duplicate_brush`, then `update_brush` the copy. |
|
|
67
68
|
| Tune a brush from a host that can't paint all of it | `update_brush` there: what the host can't use is kept (`kept`), not stripped; refused only if the change adds it. |
|
|
68
69
|
|
|
@@ -101,3 +102,4 @@ channel: "darkness" }` → `create_brush` `{ id: "scan-charcoal", name: "Scan ch
|
|
|
101
102
|
- `check_brush`: prove it works for the host, and get a degraded spec when it doesn't.
|
|
102
103
|
- `preview_brush`: look at a sample stroke when the host renders previews.
|
|
103
104
|
- `add_brush_source`, `list_brush_sources`: images for image tips and grain.
|
|
105
|
+
- `import_brush_pack`: tips and grain from a Photoshop or Procreate pack.
|