@pixerate/editor 0.269.0 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/editor",
3
- "version": "0.269.0",
3
+ "version": "0.269.1",
4
4
  "description": "UI-agnostic rich text and media editing core library",
5
5
  "author": "Pixerate",
6
6
  "license": "MIT",
@@ -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 selection, channel or layer mask as a greyscale PNG
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`: ants, Quick Mask tint or hidden
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