@pixerate/editor 0.206.0 → 0.208.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/animation-editor/index.cjs +60 -59
- package/dist/animation-editor/index.js +6 -5
- package/dist/{brushstrokeRender-7LXCU7PD.js → brushstrokeRender-C3UU6GVC.js} +5 -4
- package/dist/{brushstrokeRender-VO4ZTWVA.cjs → brushstrokeRender-EAJNE6WP.cjs} +12 -11
- package/dist/canvas/index.cjs +8 -8
- package/dist/canvas/index.js +1 -1
- package/dist/{chunk-2N2QPO3H.js → chunk-2PBZBRP5.js} +9 -7
- package/dist/{chunk-7NW46N7I.cjs → chunk-3EHPLDFQ.cjs} +54 -52
- package/dist/{chunk-H367YTXI.js → chunk-42TWUPNJ.js} +13 -387
- package/dist/chunk-474IQG74.cjs +384 -0
- package/dist/{chunk-MLC7HUHO.js → chunk-BGOCAUXH.js} +1 -1
- package/dist/chunk-DWYQPL2A.js +2010 -0
- package/dist/{chunk-YXKLVD56.js → chunk-F7YA3MMC.js} +2 -2
- package/dist/{chunk-ZZGPYNS2.js → chunk-G4E6RUPC.js} +1 -1
- package/dist/chunk-HVVR5PZW.js +384 -0
- package/dist/{chunk-FR2Q2LVF.cjs → chunk-I7G3RSUJ.cjs} +35 -35
- package/dist/chunk-K6PXS6DO.cjs +102 -0
- package/dist/{chunk-ZIDUPSP4.js → chunk-KFIOEOCQ.js} +24 -761
- package/dist/{chunk-V7GWZIZK.cjs → chunk-KWNMBMKG.cjs} +23 -21
- package/dist/chunk-L3G23N5Y.js +763 -0
- package/dist/{chunk-GHCXLQ47.js → chunk-NDMXB4PR.js} +2 -2
- package/dist/{chunk-CWM3CUUX.cjs → chunk-OLNIPTB3.cjs} +39 -413
- package/dist/{chunk-EBDCRTZI.cjs → chunk-PQ3H2AAN.cjs} +92 -90
- package/dist/{chunk-BRKVNXDZ.cjs → chunk-QAUIZPYI.cjs} +7 -7
- package/dist/{chunk-UYXL6ZWQ.cjs → chunk-QE7D7TZR.cjs} +494 -1231
- package/dist/chunk-QYLWG22N.cjs +763 -0
- package/dist/{chunk-YQ5C5BVK.cjs → chunk-ROVK6AXX.cjs} +60 -60
- package/dist/{chunk-HGTDMKNE.cjs → chunk-UOGKSVRQ.cjs} +126 -221
- package/dist/{chunk-EL5PAHNP.js → chunk-USQCKRZG.js} +6 -4
- package/dist/{chunk-36OKQDCF.js → chunk-WJ2RBZMM.js} +5 -3
- package/dist/chunk-X4LUGTQX.cjs +2010 -0
- package/dist/{chunk-NQMP3CWF.js → chunk-YBJXCQTR.js} +15 -110
- package/dist/chunk-ZIF4UJJ6.js +102 -0
- package/dist/{chunk-WTW7QRTS.cjs → chunk-ZMHPQ6HP.cjs} +1 -1
- package/dist/image-editor/controller.d.cts +28 -3
- package/dist/image-editor/controller.d.ts +28 -3
- package/dist/image-editor/index.cjs +2150 -3380
- package/dist/image-editor/index.js +675 -1905
- package/dist/image-editor/selection/index.d.cts +2 -0
- package/dist/image-editor/selection/index.d.ts +2 -0
- package/dist/image-editor/selection/refine-edits.d.cts +13 -4
- package/dist/image-editor/selection/refine-edits.d.ts +13 -4
- package/dist/image-editor/selection/segment/focus.d.cts +2 -0
- package/dist/image-editor/selection/segment/focus.d.ts +2 -0
- package/dist/image-editor/selection/segment/grabcut.d.cts +4 -2
- package/dist/image-editor/selection/segment/grabcut.d.ts +4 -2
- package/dist/image-editor/selection/segment/sky.d.cts +2 -0
- package/dist/image-editor/selection/segment/sky.d.ts +2 -0
- package/dist/image-editor/selection/segment/subject.d.cts +2 -1
- package/dist/image-editor/selection/segment/subject.d.ts +2 -1
- package/dist/image-editor/selection/segment/work.d.cts +5 -0
- package/dist/image-editor/selection/segment/work.d.ts +5 -0
- package/dist/image-editor/selection/select-and-mask.d.cts +136 -0
- package/dist/image-editor/selection/select-and-mask.d.ts +136 -0
- package/dist/image-editor/selection/worker.d.cts +126 -0
- package/dist/image-editor/selection/worker.d.ts +126 -0
- package/dist/image-editor/selection-worker.cjs +14 -0
- package/dist/image-editor/selection-worker.d.cts +12 -0
- package/dist/image-editor/selection-worker.d.ts +12 -0
- package/dist/image-editor/selection-worker.js +14 -0
- package/dist/image-editor/types.d.cts +8 -0
- package/dist/image-editor/types.d.ts +8 -0
- package/dist/paint/index.cjs +6 -5
- package/dist/paint/index.js +5 -4
- package/dist/paint-editor/index.cjs +394 -390
- package/dist/paint-editor/index.js +18 -14
- package/dist/raster/index.cjs +22 -18
- package/dist/raster/index.js +29 -25
- package/dist/vector/index.cjs +986 -985
- package/dist/vector/index.js +6 -5
- package/package.json +11 -1
- package/skills/pixerate-image-editor/SKILL.md +1 -1
- package/skills/pixerate-image-selection-masking/SKILL.md +4 -2
package/dist/vector/index.js
CHANGED
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
reverseMorphContour,
|
|
44
44
|
subpathToMorphContour,
|
|
45
45
|
turnMorphContour
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-BGOCAUXH.js";
|
|
47
47
|
import {
|
|
48
48
|
DEFAULT_VECTOR_FONT,
|
|
49
49
|
IDENTITY_MATRIX,
|
|
@@ -516,8 +516,8 @@ import {
|
|
|
516
516
|
withVectorStrokes,
|
|
517
517
|
withVectorTargetPaint,
|
|
518
518
|
zigzagPaths
|
|
519
|
-
} from "../chunk-
|
|
520
|
-
import "../chunk-
|
|
519
|
+
} from "../chunk-NDMXB4PR.js";
|
|
520
|
+
import "../chunk-F7YA3MMC.js";
|
|
521
521
|
import {
|
|
522
522
|
createProvenance
|
|
523
523
|
} from "../chunk-M6DNZNVY.js";
|
|
@@ -553,14 +553,15 @@ import {
|
|
|
553
553
|
import "../chunk-V2ZCJRDM.js";
|
|
554
554
|
import {
|
|
555
555
|
GRAIN_PATTERNS
|
|
556
|
-
} from "../chunk-
|
|
556
|
+
} from "../chunk-2PBZBRP5.js";
|
|
557
557
|
import "../chunk-ODBT55Q7.js";
|
|
558
558
|
import {
|
|
559
559
|
bytesToBase64,
|
|
560
560
|
decodePng,
|
|
561
561
|
isPng,
|
|
562
562
|
parseDataUrl
|
|
563
|
-
} from "../chunk-
|
|
563
|
+
} from "../chunk-42TWUPNJ.js";
|
|
564
|
+
import "../chunk-HVVR5PZW.js";
|
|
564
565
|
import {
|
|
565
566
|
deflate
|
|
566
567
|
} from "../chunk-QGHEDC7B.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixerate/editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.208.0",
|
|
4
4
|
"description": "UI-agnostic rich text and media editing core library",
|
|
5
5
|
"author": "Pixerate",
|
|
6
6
|
"license": "MIT",
|
|
@@ -174,6 +174,16 @@
|
|
|
174
174
|
"default": "./dist/image-editor/index.cjs"
|
|
175
175
|
}
|
|
176
176
|
},
|
|
177
|
+
"./image-editor/selection-worker": {
|
|
178
|
+
"import": {
|
|
179
|
+
"types": "./dist/image-editor/selection-worker.d.ts",
|
|
180
|
+
"default": "./dist/image-editor/selection-worker.js"
|
|
181
|
+
},
|
|
182
|
+
"require": {
|
|
183
|
+
"types": "./dist/image-editor/selection-worker.d.cts",
|
|
184
|
+
"default": "./dist/image-editor/selection-worker.cjs"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
177
187
|
"./paint-editor": {
|
|
178
188
|
"import": {
|
|
179
189
|
"types": "./dist/paint-editor/index.d.ts",
|
|
@@ -269,7 +269,7 @@ in the source frame at the document's bit depth, colour mode and profile. Read
|
|
|
269
269
|
| `grow_selection` | Select › Grow: add connected pixels within `tolerance` (default 32) of a selected colour; follows colour, not distance. `sample`, `sampleMerged`. Fails when nothing is selected. Returns the summary. |
|
|
270
270
|
| `select_similar` | Select › Similar: add every pixel in the image within `tolerance` of a selected colour, connected or not. Fails when nothing is selected. Returns the summary. |
|
|
271
271
|
| `reselect` | Bring back the last selection `deselect` cleared (one undo step). Fails when there is none. Returns the summary. |
|
|
272
|
-
| `refine_selection` | Select and Mask: snap the selection edge to image edges within `radius` px (0..64, default 8), with `smartRadius`, `smooth` 0..100, `feather` px, `contrast` 0..100 and `shiftEdge` -100..100 %, then `output` to `selection` (default), `layer-mask`, `new-layer` or `new-layer-with-mask` (on `layerId`, default active; new layers hide the source), with `decontaminate` 0..100 for new layers. `edits` (`quick-select`, `brush` add/subtract
|
|
272
|
+
| `refine_selection` | Select and Mask: snap the selection edge to image edges within `radius` px (0..64, default 8), with `smartRadius`, `smooth` 0..100, `feather` px, `contrast` 0..100 and `shiftEdge` -100..100 %, then `output` to `selection` (default), `layer-mask`, `new-layer` or `new-layer-with-mask` (on `layerId`, default active; new layers hide the source), with `decontaminate` 0..100 for new layers. `edits` (`quick-select`, `brush`, `lasso`, `object` add/subtract; `refine-brush` over hair) apply first; `refineMode: "object"` uses the host model. One step; returns `refineMode`, `layerId` / `newLayerId`. Use on hair, fur, foliage or a coarse AI mask. |
|
|
273
273
|
| `update_adjustment_layer` | Change a layer's `enabled` (false hides it without deleting), `blend`, `opacity` (0..1) or `name` in one undo step. Returns the layer. Its parameters change with `set_adjustments`. Toggle `enabled` to compare a layer's effect before and after. |
|
|
274
274
|
| `move_adjustment_layer` | Move a layer to index `to` (0 = bottom, applied first; past the top means top). Order matters: a curves layer above a hue/saturation layer works on its output. Fails when the layer is already there. Returns the ids bottom to top. |
|
|
275
275
|
| `remove_adjustment_layer` | Delete a layer and its mask. Prefer hiding it with `update_adjustment_layer` when the user may want it back. Returns the remaining ids. |
|
|
@@ -59,8 +59,10 @@ This skill is the method. `pixerate-image-editor` has the full tool reference.
|
|
|
59
59
|
- `refine_selection` snaps to real edges: radius 2–4 for hard edges, 8–20 for hair and fur;
|
|
60
60
|
`smartRadius: true` for mixed edges. For flyaway hair beyond the radius, add `edits` with a
|
|
61
61
|
`refine-brush` stroke along it (size covering the strands); fix misses and leaks in the same
|
|
62
|
-
call with `quick-select` or `
|
|
63
|
-
|
|
62
|
+
call with `quick-select`, `brush` or `lasso` strokes, or an `object` box (`mode:
|
|
63
|
+
"subtract"` to remove). These are the Select and Mask workspace's own tools, so a person
|
|
64
|
+
can open the same edits in the workspace. With a host model, `refineMode: "object"`
|
|
65
|
+
refines from the model's outline.
|
|
64
66
|
- `shiftEdge` −10..−30 % tightens a refined edge that picked up background.
|
|
65
67
|
**Check:** `percent` changed by roughly what you intended (a few percent at most for a
|
|
66
68
|
cleanup).
|