@pixerate/editor 0.128.0 → 0.129.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/{export-BkYQvV56.d.cts → export-DRzNhrdx.d.cts} +8 -1
- package/dist/{export-DHrFJ8r_.d.ts → export-DotEEyXj.d.ts} +8 -1
- package/dist/image-editor/index.cjs +69 -18
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +2 -2
- package/dist/image-editor/index.d.ts +2 -2
- package/dist/image-editor/index.js +63 -12
- package/dist/image-editor/index.js.map +1 -1
- package/dist/paint-editor/index.d.cts +1 -1
- package/dist/paint-editor/index.d.ts +1 -1
- package/package.json +1 -1
- package/skills/pixerate-image-editor/SKILL.md +1 -1
- package/skills/pixerate-image-editor/references/color-management.md +4 -3
- package/skills/pixerate-vector/SKILL.md +1 -1
- package/skills/pixerate-vector/references/commands.md +1 -0
|
@@ -4,7 +4,7 @@ export { v as DEFAULT_FLOW, w as DEFAULT_PAINT_GRADIENT, x as DEFAULT_PAINT_GRAD
|
|
|
4
4
|
import { R as RasterRect, T as TiledSurface, a as BlendMode, b as BlendModeInfo } from '../surface-1MRncXpF.cjs';
|
|
5
5
|
export { B as BLEND_MODES, P as PAINTERLY_BLEND_MODES, i as Tile, v as isBlendMode, w as isPainterlyBlendMode, I as standardBlendMode } from '../surface-1MRncXpF.cjs';
|
|
6
6
|
import { e as EffectValue, E as EffectProvider, f as EffectDescription, a as EffectRenderRequest, b as EffectPixels, v as EffectsSlot } from '../helpers-C5aAd44p.cjs';
|
|
7
|
-
import { I as ImageEditorAssetStore, S as SerializedLayer, P as PsdExportResult } from '../export-
|
|
7
|
+
import { I as ImageEditorAssetStore, S as SerializedLayer, P as PsdExportResult } from '../export-DRzNhrdx.cjs';
|
|
8
8
|
import { V as VideoProject, D as VideoFfmpegExport } from '../export-Cbr9IqpJ.cjs';
|
|
9
9
|
import { g as PresenceStore, e as PresenceClock, d as PresenceActorInfo, c as PresenceActor, f as PresenceState } from '../presence-Cb6WhcrQ.cjs';
|
|
10
10
|
import { a as AgentToolProvider, A as AgentTool } from '../registry-BqA1AZt0.cjs';
|
|
@@ -4,7 +4,7 @@ export { v as DEFAULT_FLOW, w as DEFAULT_PAINT_GRADIENT, x as DEFAULT_PAINT_GRAD
|
|
|
4
4
|
import { R as RasterRect, T as TiledSurface, a as BlendMode, b as BlendModeInfo } from '../surface-1MRncXpF.js';
|
|
5
5
|
export { B as BLEND_MODES, P as PAINTERLY_BLEND_MODES, i as Tile, v as isBlendMode, w as isPainterlyBlendMode, I as standardBlendMode } from '../surface-1MRncXpF.js';
|
|
6
6
|
import { e as EffectValue, E as EffectProvider, f as EffectDescription, a as EffectRenderRequest, b as EffectPixels, v as EffectsSlot } from '../helpers-CPWcK504.js';
|
|
7
|
-
import { I as ImageEditorAssetStore, S as SerializedLayer, P as PsdExportResult } from '../export-
|
|
7
|
+
import { I as ImageEditorAssetStore, S as SerializedLayer, P as PsdExportResult } from '../export-DotEEyXj.js';
|
|
8
8
|
import { V as VideoProject, D as VideoFfmpegExport } from '../export-ClPKUB-v.js';
|
|
9
9
|
import { g as PresenceStore, e as PresenceClock, d as PresenceActorInfo, c as PresenceActor, f as PresenceState } from '../presence-Cb6WhcrQ.js';
|
|
10
10
|
import { a as AgentToolProvider, A as AgentTool } from '../registry-D-4fit9C.js';
|
package/package.json
CHANGED
|
@@ -385,7 +385,7 @@ in the source frame at the document's bit depth, colour mode and profile. Read
|
|
|
385
385
|
| `clean_mixer_brush` | Empty the Mixer Brush pickup well (`emptyReservoir: true` also drops the loaded paint, so it only smears). View state, not an undo step. Returns the load. |
|
|
386
386
|
| `get_color_profile` | Read-only. The document's profile (`name`, `builtin` id or null, `colorSpace`, `srgb`), the Proof Setup or null, and the built-in profiles. |
|
|
387
387
|
| `assign_profile` | Make the document's numbers mean colours in `profile` (built-in id or `icc:<base64>`; RGB only). The look changes, pixels do not. One undo step. Returns the profile. |
|
|
388
|
-
| `convert_to_profile` | Convert
|
|
388
|
+
| `convert_to_profile` | Convert the document into `profile` keeping its look (`intent`, `bpc`): pixel layers, shape and text colours, effect and annotation colours. Then assign it. One undo step. Returns the profile, `convertedLayerIds` and `unconvertedLayerIds` (smart objects). |
|
|
389
389
|
| `set_proof_setup` | Soft-proof the viewport through `profile` (`intent`, `bpc`, `simulatePaper`, `gamutWarning`), or `off: true`. View state. Returns the setup. |
|
|
390
390
|
| `set_color_mode` | Image › Mode: `rgb`, `cmyk` (with the press `profile`, default coated-cmyk, and the separation `intent`) or `lab`. Pixels stay RGB; CMYK documents proof through their profile and `export_psd` writes CMYK / Lab channels. One undo step. Returns the profile summary with `mode`. |
|
|
391
391
|
| `convert_colors` | Read-only. `colors` #rrggbb from the document's profile (or `from`) to `to`: channel `values` 0..1 (CMYK, RGB, grey), `hex` for RGB, and `lab`. |
|
|
@@ -32,9 +32,10 @@ means sRGB. The viewport assumes an sRGB display and converts other working spac
|
|
|
32
32
|
- The working space must be RGB: CMYK and Lab are document modes (`set_color_mode`) for
|
|
33
33
|
output, not spaces you edit numbers in. Adjustment layers keep their RGB settings in a CMYK or
|
|
34
34
|
Lab PSD, where Photoshop applies them to its own channels; `export_psd` warns.
|
|
35
|
-
- `convert_to_profile` converts pixel layers (and the source image)
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
- `convert_to_profile` converts pixel layers (and the source image), shape fills and strokes,
|
|
36
|
+
text colours, layer-effect colours (gradient stops included) and annotation colours, and
|
|
37
|
+
re-renders shape and type layers. Smart objects keep their contents' numbers and are listed in
|
|
38
|
+
`unconvertedLayerIds`: convert inside them (`edit_smart_object_contents`) if the look matters.
|
|
38
39
|
- Images opened from a URL or file in the browser arrive already converted to sRGB by the
|
|
39
40
|
browser, so their own profile is not kept; PSDs keep theirs (resource 1039).
|
|
40
41
|
- `export_psd` always embeds the profile; PNG and JPEG exports embed it when it is not sRGB.
|
|
@@ -343,7 +343,7 @@ contents whole while you work, without losing the mask.
|
|
|
343
343
|
|
|
344
344
|
| Command | Use it to |
|
|
345
345
|
| --- | --- |
|
|
346
|
-
| `vector.addEffect` | Add a live path effect `type` (trim, roundCorners, puckerBloat, twist, zigzag, wiggle, offset, merge, repeater, envelope, contour: concentric steps blending to end colours, blockShadow: the shape swept along an angle under it, a long shadow when endOpacity fades) with `params` to `ids`, at `index` in the stack (default last). Effects apply top to bottom. Returns `{ effects: [{ nodeId, effectId }] }`. |
|
|
346
|
+
| `vector.addEffect` | Add a live path effect `type` (trim, roundCorners, puckerBloat, twist, zigzag, wiggle, offset, merge, repeater, envelope, contour: concentric steps blending to end colours, blockShadow: the shape swept along an angle under it, a long shadow when endOpacity fades, extrude: shaded side faces making the shape a solid, parallel or toward a vanishing point) with `params` to `ids`, at `index` in the stack (default last). Effects apply top to bottom. Returns `{ effects: [{ nodeId, effectId }] }`. |
|
|
347
347
|
| `vector.updateEffect` | Change effect `effectId` on `nodeId`: `params` (merged), `enabled`, or move it to `index` (0 applies first). Returns the node's effect stack. |
|
|
348
348
|
| `vector.removeEffect` | Remove effect `effectId` from `nodeId`. |
|
|
349
349
|
| `vector.envelope` | Warp with a live envelope: a `preset` (arc, arcLower, arcUpper, arch, bulge, shellLower, shellUpper, flag, wave, fish, rise, fisheye, inflate, squeeze, twist) with `bend`, `horizontal`, `vertical` (percent, -100 to 100) and `orientation`; or a `mesh` of `rows` x `columns` (1 to 16, optional control `points`); or `topObject: true` (top closed path becomes the envelope), `release: true`, `expand: true`. Reapplying changes an existing envelope. |
|
|
@@ -112,6 +112,7 @@ default below. Lengths are in the node's own units, angles degrees, percentages
|
|
|
112
112
|
| repeater | copies 3, offset 0, position {x 100, y 0}, anchor {x 0, y 0}, rotation 0, scale {x 100, y 100} (%), startOpacity 100, endOpacity 100 (%), composite `below` | Copy i is moved, rotated and scaled k = i + offset times about the anchor; fractional copies fade the last one. Radial patterns: position {0, 0}, rotation 360 / copies. |
|
|
113
113
|
| contour | direction `inside`, steps 4, offset 6, fillColor `#ffffff`, strokeColor null, acceleration 0, join `round`, miterLimit 4 | CorelDRAW's Contour: each shape plus `steps` concentric copies `offset` apart (`center`: inward until the shape is used up), their fill and stroke blending to the end colours (null keeps the shape's colour); inside steps draw over the shape, outside ones under it. Acceleration −100…100 holds the colour back (positive) or rushes it (negative). Use for embossed badges, topographic lines and soft glows. |
|
|
114
114
|
| blockShadow | angle 45 (degrees, 0 right, 90 down), distance 20, color `#1e293b` (null: the shape's own fill), opacity 100, endOpacity 100 (%) | CorelDRAW's Block Shadow: each shape swept `distance` along `angle` as one solid shape drawn under all of them. Set endOpacity below opacity (e.g. 0) with a long distance for a flat-design long shadow. The direction is in the node's own space, so it turns with the node. Put it last in the stack so it shadows the final shapes. |
|
|
115
|
+
| extrude | mode `parallel`, angle 45, depth 30, vanishingPoint {x 0, y -300} (offset from the middle), toward 30 (%), color null (the shape's own fill), lightAngle -135 (light from the top left), shading 60 (%) | CorelDRAW's Extrude: one side face per edge (curves flattened), back to front, under the shape. Parallel moves the back `depth` along `angle`; perspective pulls it `toward` percent to the vanishing point. Faces lighten as they face the light and darken facing away. Use for 3D lettering, isometric blocks and buttons; put it last in the stack. |
|
|
115
116
|
| envelope | style `arc`, bend 50, horizontal 0, vertical 0, orientation `horizontal`, rows 2, columns 2, mesh null | Prefer `vector.envelope`. |
|
|
116
117
|
|
|
117
118
|
Effects apply in stack order (index 0 first) to everything above them; effects after a repeater
|