@pixerate/editor 0.268.2 → 0.269.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/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-image-selection-masking/SKILL.md +8 -8
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
|
@@ -36,6 +36,10 @@ This skill is the method. `pixerate-image-editor` has the full tool reference.
|
|
|
36
36
|
|
|
37
37
|
## Working method
|
|
38
38
|
|
|
39
|
+
Apply early: an unapplied selection changes nothing if the run stops. Once it's roughly right, do
|
|
40
|
+
step 5, then refine. For a layer mask, `load_selection_from_mask`, refine, then `add_layer_mask`
|
|
41
|
+
`from: "selection"` replaces it. Stop and report once step 7 passes.
|
|
42
|
+
|
|
39
43
|
1. **Choose the method by subject** (see the decision table).
|
|
40
44
|
**Check:** `get_selection` → `empty: false` and a plausible `percent` (for a person in a
|
|
41
45
|
portrait, typically 15–50 %). A wand or range above about 80 % has flooded: undo, then lower
|
|
@@ -216,14 +220,11 @@ This skill is the method. `pixerate-image-editor` has the full tool reference.
|
|
|
216
220
|
- `select_polygon`: the lasso, along a contour; with `snapToEdges`, the Magnetic Lasso
|
|
217
221
|
- `quick_select`: brush strokes that grow out to the region's edges
|
|
218
222
|
- `select_object`: the object in a box or under a point
|
|
219
|
-
- `select_focus_area`: what is in focus
|
|
220
|
-
- `select_sky`: the sky
|
|
223
|
+
- `select_focus_area`, `select_sky`: what is in focus; the sky
|
|
221
224
|
- `select_layer_transparency`: a layer's own pixels
|
|
222
225
|
- `grow_selection`, `select_similar`: add similar colour, connected or anywhere
|
|
223
|
-
- `reselect`: undo a deselect
|
|
224
226
|
- `save_selection`, `load_selection_from_channel`, `list_channels`, `set_channel_properties`, `duplicate_channel`, `delete_channel`: keep and manage selections as alpha channels
|
|
225
|
-
- `export_mask_image`: a
|
|
226
|
-
- `load_channel_from_image`: a mask image into a new channel
|
|
227
|
+
- `export_mask_image`, `load_channel_from_image`: a mask out to a greyscale PNG, and back into a channel
|
|
227
228
|
- `set_quick_mask`: paint the selection
|
|
228
229
|
- `fill_pixels`, `blur_stroke`: fill or soften the selection in Quick Mask mode
|
|
229
230
|
- `magic_wand`: similar colour from a seed
|
|
@@ -231,8 +232,7 @@ This skill is the method. `pixerate-image-editor` has the full tool reference.
|
|
|
231
232
|
- `select_subject`: a subject by description with a host model; without one, the most salient subject
|
|
232
233
|
- `load_selection_from_image`: AI or saved mattes
|
|
233
234
|
- `load_selection_from_mask`: a layer mask back to a selection
|
|
234
|
-
- `set_selection_display`:
|
|
235
|
-
- `set_mask_view`: a layer mask alone in grey or as a red overlay, to check it
|
|
235
|
+
- `set_selection_display`, `set_mask_view`: how a selection shows; a layer mask alone in grey or as a red overlay
|
|
236
236
|
- `add_vector_mask`, `set_vector_mask_path`, `set_vector_mask_properties`, `get_vector_mask`: sharp, editable path masks
|
|
237
237
|
- `rasterize_vector_mask`, `remove_vector_mask`: turn a vector mask into pixels, or drop it
|
|
238
238
|
- `selection_to_path`, `path_to_selection`: a selection's outline as Bézier paths, and a path back into a selection
|
|
@@ -252,5 +252,5 @@ This skill is the method. `pixerate-image-editor` has the full tool reference.
|
|
|
252
252
|
- `copy_pixels`, `cut_pixels`, `paste_pixels`: the editor clipboard
|
|
253
253
|
- `add_adjustment_layer`, `apply_effect`, `add_smart_filter`: masked by an active selection
|
|
254
254
|
- `paint_stroke`: paint on a mask with `channel: "mask"`
|
|
255
|
-
- `undo_image`: take back a step
|
|
255
|
+
- `undo_image`, `reselect`: take back a step or a deselect
|
|
256
256
|
- `set_layer_properties`, `add_effect_layer`: clipping
|