@pixerate/editor 0.188.0 → 0.190.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/{chunk-IGMNJM2H.js → chunk-7ZWLDVFH.js} +979 -753
- package/dist/{chunk-JYV4R62M.cjs → chunk-T4U4O6DS.cjs} +1013 -787
- package/dist/image-editor/controller.d.cts +68 -1
- package/dist/image-editor/controller.d.ts +68 -1
- package/dist/image-editor/free-transform.d.cts +3 -6
- package/dist/image-editor/free-transform.d.ts +3 -6
- package/dist/image-editor/index.cjs +1867 -1413
- package/dist/image-editor/index.d.cts +1 -0
- package/dist/image-editor/index.d.ts +1 -0
- package/dist/image-editor/index.js +869 -415
- package/dist/image-editor/layer-tools.d.cts +1 -1
- package/dist/image-editor/layer-tools.d.ts +1 -1
- package/dist/image-editor/layers/compositor.d.cts +3 -0
- package/dist/image-editor/layers/compositor.d.ts +3 -0
- package/dist/image-editor/layers/model.d.cts +23 -0
- package/dist/image-editor/layers/model.d.ts +23 -0
- package/dist/image-editor/layers/paint-ui.d.cts +2 -1
- package/dist/image-editor/layers/paint-ui.d.ts +2 -1
- package/dist/image-editor/layers/panel.d.cts +14 -3
- package/dist/image-editor/layers/panel.d.ts +14 -3
- package/dist/image-editor/layers/serialize.d.cts +11 -0
- package/dist/image-editor/layers/serialize.d.ts +11 -0
- package/dist/image-editor/layers/shape.d.cts +5 -0
- package/dist/image-editor/layers/shape.d.ts +5 -0
- package/dist/image-editor/layers/vector-mask.d.cts +51 -0
- package/dist/image-editor/layers/vector-mask.d.ts +51 -0
- package/dist/image-editor/psd/import.d.cts +0 -7
- package/dist/image-editor/psd/import.d.ts +0 -7
- package/dist/image-editor/renderer.d.cts +6 -0
- package/dist/image-editor/renderer.d.ts +6 -0
- package/dist/image-editor/selection/gesture.d.cts +10 -0
- package/dist/image-editor/selection/gesture.d.ts +10 -0
- package/dist/image-editor/selection/layer-mask.d.cts +6 -0
- package/dist/image-editor/selection/layer-mask.d.ts +6 -0
- package/dist/image-editor/types.d.cts +8 -0
- package/dist/image-editor/types.d.ts +8 -0
- package/dist/paint-editor/index.cjs +6 -6
- package/dist/paint-editor/index.js +1 -1
- package/package.json +1 -1
- package/skills/pixerate-image-editor/SKILL.md +7 -0
- package/skills/pixerate-image-selection-masking/SKILL.md +10 -3
|
@@ -66,7 +66,9 @@ This skill is the method. `pixerate-image-editor` has the full tool reference.
|
|
|
66
66
|
by it), or `apply_selection_as_mask` with `kind`. Filters (`apply_effect`,
|
|
67
67
|
`add_smart_filter`) are also limited to an active selection.
|
|
68
68
|
- A cutout: `layer_via_copy` (the original stays), or `add_layer_mask` `from: "selection"` on
|
|
69
|
-
the layer itself.
|
|
69
|
+
the layer itself. For a hard geometric or traced edge that must stay sharp and editable
|
|
70
|
+
(a product, a screen, a window), `add_vector_mask` with the path instead; it moves and
|
|
71
|
+
transforms with the layer, and `rasterize_vector_mask` turns it into paintable pixels.
|
|
70
72
|
- Painting or fills inside it: keep the selection active and paint; `stroke_selection` for
|
|
71
73
|
an outline that follows it.
|
|
72
74
|
- Removing what it covers: `content_aware_fill` `output: "new-layer"`.
|
|
@@ -82,7 +84,9 @@ This skill is the method. `pixerate-image-editor` has the full tool reference.
|
|
|
82
84
|
`load_selection_from_image`).
|
|
83
85
|
7. **Verify.** `render_preview` at 1024 px or more, and `capture_view` on the edge at 2–8×.
|
|
84
86
|
**Check:** no fringe of the old background colour, no stair-steps, no visible line where an
|
|
85
|
-
adjustment ends.
|
|
87
|
+
adjustment ends. To judge a layer mask itself, `set_mask_view` `gray` (or `overlay`) and
|
|
88
|
+
`capture_view` with `includeOverlays: true`; holes and stray grey show plainly there. Set it
|
|
89
|
+
back to `off` afterwards. Fix by loading the mask back (`load_selection_from_mask`), refining, and
|
|
86
90
|
masking again.
|
|
87
91
|
|
|
88
92
|
## Decision table
|
|
@@ -96,7 +100,7 @@ This skill is the method. `pixerate-image-editor` has the full tool reference.
|
|
|
96
100
|
| Tones (shadows, highlights, a luminosity mask) | `select_color_range` with `preset` `shadows` / `midtones` / `highlights` |
|
|
97
101
|
| Skin for retouching | `select_color_range` `preset: "skinTones"`, then `intersect` with a box around the face |
|
|
98
102
|
| An AI matte or saved mask from the host | `load_selection_from_image` (soft: no `threshold`), then `refine_selection`; `load_channel_from_image` to keep it for later |
|
|
99
|
-
| An existing layer mask | `load_selection_from_mask` |
|
|
103
|
+
| An existing layer mask | `load_selection_from_mask` (`source: "vector"` for a vector mask) |
|
|
100
104
|
| A cutout, shape or text already on its own layer | `select_layer_transparency` (exact, soft where the layer is) |
|
|
101
105
|
| A dead pixel row or column | `select_line`, then fill or heal it |
|
|
102
106
|
|
|
@@ -192,6 +196,9 @@ This skill is the method. `pixerate-image-editor` has the full tool reference.
|
|
|
192
196
|
- `load_selection_from_image`: AI or saved mattes
|
|
193
197
|
- `load_selection_from_mask`: a layer mask back to a selection
|
|
194
198
|
- `set_selection_display`: ants, Quick Mask tint or hidden
|
|
199
|
+
- `set_mask_view`: a layer mask alone in grey or as a red overlay, to check it
|
|
200
|
+
- `add_vector_mask`, `set_vector_mask_path`, `set_vector_mask_properties`, `get_vector_mask`: sharp, editable path masks
|
|
201
|
+
- `rasterize_vector_mask`, `remove_vector_mask`: turn a vector mask into pixels, or drop it
|
|
195
202
|
- `modify_selection`: expand, contract, feather, border, smooth
|
|
196
203
|
- `refine_selection`: snap the edge to the image
|
|
197
204
|
- `transform_selection`: move or scale the outline only
|