Commit Graph
5393 Commits
Author SHA1 Message Date
.CooCoo 5f1eec6cd9 Merge pull request #9291 from dotCooCoo/feat/scripts-document-views
Scripts: Document.views exposes each drawn document window
2026-11-28 08:02:30 -08:00
.CooCoo 2f4bc715db Merge pull request #9901 from dotCooCoo/fix/direct-shift-click-group-member
Direct Selection: a Shift-click on a member of a selected group deselects only that member
2026-11-28 08:02:19 -08:00
.CooCoo deab21a93c Merge pull request #9913 from dotCooCoo/feat/distorted-image-mosaic
Object Mosaic: tiles of a distorted image follow its corners
2026-11-28 08:02:13 -08:00
.CooCoo 072bce3489 Merge pull request #9916 from dotCooCoo/feat/scatter-brush-saturation-jitter
Brushes: Scatter Brush Options has Saturation Jitter, a per-copy saturation move
2026-11-28 08:02:10 -08:00
.CooCoo e260844903 Merge pull request #9923 from dotCooCoo/fix/parametric-shape-accepted
Parametric Shape: canceling a panel edit restores the shape or the tool's next shape
2026-11-28 08:02:04 -08:00
.CooCoo f59c044080 Merge pull request #9921 from dotCooCoo/feat/move-several-handles
Direct Selection: picked direction handles move together
2026-11-28 08:02:02 -08:00
dotCooCoo 88fb7a8128 Merge main into feat/scripts-document-views 2026-11-28 07:25:53 -08:00
dotCooCoo 6f012b6621 File formats: .pcraft documents open and place as one image
File › Open and File › Place read layered raster .pcraft documents
through craft-doc and store them as one PNG, sized by the document's
resolution. A placed file links like any image.

- The image is the file's full-size composite when it has one.
- Without one, the layers are combined at the canvas size when the
  document is RGB at 8 or 16 bits and every visible layer is a raster
  layer that blends Normal, with no clipping, layer effects, vector
  mask, frame, advanced blending or feathered layer mask. Hidden layers
  are not read, and an RGB ICC profile the document names is kept.
- Otherwise the composite preview comes in at the canvas's size, and
  Open, Place, links.update, links.relink and links.replaceEmbedded
  warn when it has fewer pixels than the canvas, naming both sizes and
  why the layers were not combined.
- A full-size composite or preview the file names but doesn't hold,
  can't decode or, for the full-size one, of another size than the
  canvas is an error. The Links commands decode the kept PNG before
  taking it.

The import fuzz tests cover mutated bundles and manifests.
2026-11-28 05:33:55 -08:00
dotCooCoo 41a6005414 Direct Selection: picked direction handles move together
A click on a path's direction handle picks it, a Shift-click adds it to
the picked handles or takes it away, and Escape lets them go. Picked
handles show ringed. Dragging one of two or more picked handles moves
all of them, on one path or several, by the same offset in one undo
step. A Shift-press on a handle reshapes only once the pointer has moved
3 pixels, so a Shift-click leaves the handle where it is.

The new command path.moveHandles does the move: an anchor with one
handle listed places it as path.setHandle does, an anchor with both
listed moves both and becomes a corner, and independent (Alt during the
drag) makes every listed handle's anchor a corner.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-28 04:58:12 -08:00
dotCooCoo 895a9c0080 Brushes: Scatter Brush Options has Saturation Jitter, a per-copy saturation move
A scatter brush takes a Saturation Jitter amount from 0 to 100 percent (0
by default). Each copy moves the saturation of its solid fills and
strokes, type included, by its own amount up to that many points either
way, after the colorization and the hue jitter. The amounts come from the
stroke's path and the brush name, drawn apart from the hue jitter's, so a
stroke draws the same colors on every redraw, after Save and Open, and in
export, and turning it on does not change the hue jitter's amounts.

A color keeps its hue and brightness and moves in its own model: RGB in
the HSB of its values, CMYK over C, M and Y with K kept, Lab by moving its
chroma with its lightness and hue angle kept (a and b stay within 127).
The saturation stops at none and at full. White, black and grays stay as
they are. A brush at 0 saves no saturation_jitter key; a brush without
the key reads as 0.

- brush.options takes saturation_jitter, and brush.get shows it for every
  scatter brush. Brush Options shows a Saturation Jitter field
  (ui.brushOptions field saturationJitter).
- Hue and saturation jitter share one per-copy recolor step, which takes
  a salt and a color adjustment.
- Options of Selected Object showed Hue Jitter but dropped a change to it
  on OK, since a path could not set it for itself. A path now sets its own
  hue_jitter and saturation_jitter (brush.objectOptions).
- The .ai editing data writer does not write the amount, so such a brush
  is left out of the Brushes panel there and reported.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-28 04:45:10 -08:00
dotCooCoo d2768427df Parametric Shape: canceling a panel edit restores the shape or the tool's next shape
The Parametric Shape panel read Shape, Count, W, H, Rotation, the kind's
own values and Corner Radius with value(), which carries each proposed
value but not the value a cancel restores. With no shape selected, a W
typed and then canceled with Escape stayed as the tool option, so the
next shape drawn had the canceled width. With a shape selected, each
keystroke was its own undo step and Escape left the shape edited.

- With a shape selected, each field's gesture runs in one undo scope
  (EditPath::Scope, as the Live Shape panel's fields do): Enter keeps the
  edit as one undo step, and Escape reverts it.
- With no shape selected, the fields send the value they land on
  (events.landed(), as the Corner and Shared Edge sections do since
  #9773), so Escape restores the opening tool option.
- With no shape selected, a highlighted Shape entry applies only once it
  is chosen: a new kind resets the kind's own count and values, which a
  restored kind would not bring back.
- A field left empty still ends its gesture, so its undo step closes.

Docs: docs/mcp.md (Parametric Shape Tool), docs/ui-parity.md.
2026-11-28 04:30:59 -08:00
dotCooCoo abb9fc09a3 Object Mosaic: tiles of a distorted image follow its corners
Create Object Mosaic refused an image changed by Perspective Distort or
Free Distort. It now places each tile's cell of pixels between the
image's corners through the image's projective map, so the tiles are
four-sided shapes that follow the perspective. A new size scales them
from the top left of the image's bounds, as it does for any image, and
the spacing and Use Ratio measure a pixel by the mean length of the
image's two sides along each axis. Plain images are tiled as before.

Docs: docs/mcp.md (Create Object Mosaic and the distorted-image
paragraph), docs/target-app-parity.md.
2026-11-28 04:24:46 -08:00
.CooCoo aeed0ad5a1 Merge pull request #9807 from dotCooCoo/feat/select-inside-unfilled-shape
Selection: a click inside an unfilled closed shape selects it
2026-11-28 02:21:27 -08:00
.CooCoo da500eaa07 Merge pull request #9774 from dotCooCoo/fix/shape-control-canceled-tool-options-b-verify
Restore future shape settings when Control bar edits cancel
2026-11-28 02:21:09 -08:00
.CooCoo ba978a77a4 Merge pull request #9470 from dotCooCoo/fix/symbol-registry-budget
Charge Symbol registry hashing and correct key buffer reservations
2026-11-28 02:20:44 -08:00
dotCooCoo 3e8d293232 Direct Selection: a Shift-click on a member of a selected group deselects only that member
With a group selected, a Direct Selection Shift-click on the fill of one of its paths ran
select.toggle on the path, which added the path beside the group. The path stayed selected
through the group, and so did everything else in it.

The new select.remove command takes each target out of the selection. For a target inside a
selected group or compound path, Selection::expand_to first selects the objects inside the
outermost selected one on the way down to the target, in its place, so the rest of the group
stays selected. Hidden and locked objects and a Shaper Group's original shapes are left out. Direct Selection's Shift-click on such a path runs select.remove, and a
Shift-drag from there moves nothing. A Shift-click on one of the path's anchors runs
select.anchors with mode toggle, which now opens the group the same way and deselects only that
anchor. A path selected beside the group around it, as Group Selection leaves it, is taken out
with the group.

No public documentation describes this case, so this is VectorCraft's own rule.
2026-11-28 02:20:39 -08:00
.CooCoo 1997b26e7b Merge pull request #8828 from dotCooCoo/feat/corner-widget-hover
Live Corners: hovering a corner widget highlights the corner it controls
2026-11-28 02:16:55 -08:00
dotCooCoo 3499b7d7aa Merge main into feat/select-inside-unfilled-shape 2026-11-28 01:41:16 -08:00
.CooCoo 13fc74e4fd Merge pull request #9000 from dotCooCoo/feat/tangent-circle-ask-radius
Tangent Circle Tool: Ask For Circle Radius asks for the radius after a click
2026-11-28 01:40:20 -08:00
.CooCoo 1ed6f2f704 Merge pull request #8998 from dotCooCoo/fix/smooth-reach-pieces-bound
Smooth: a drag's segment search stays within its piece limit however many curved segments are in reach
2026-11-28 01:40:07 -08:00
dotCooCoo ca262510c8 Merge main into fix/shape-control-canceled-tool-options-b-verify 2026-11-28 01:39:04 -08:00
dotCooCoo 805758722a Merge main into feat/corner-widget-hover 2026-11-28 01:39:04 -08:00
dotCooCoo 31163418ed Merge main into fix/symbol-registry-budget 2026-11-28 01:38:44 -08:00
.CooCoo 87b3dd9a98 Merge pull request #9853 from dotCooCoo/fix/script-documents-strict-assign
Scripts: assigning documents throws in strict mode and is ignored otherwise
2026-11-28 01:24:23 -08:00
.CooCoo ad6bf48cf4 Merge pull request #9391 from dotCooCoo/fix/packaging-fold-geometry
Fold Preview: preserve panel layer order
2026-11-28 01:23:01 -08:00
.CooCoo d5e41e24dc Merge pull request #9467 from dotCooCoo/fix/template-cache-code-reachability
Collect unreachable tagged-template cache entries in the same collection
2026-11-28 01:06:17 -08:00
.CooCoo 0b933e7a36 Merge pull request #9127 from dotCooCoo/feat/plugins-web-worker
Plug-ins: the web build checks plug-ins and runs filters in a Web Worker
2026-11-28 01:04:54 -08:00
.CooCoo 31066b39c2 Merge pull request #9065 from dotCooCoo/feat/scripts-reflection
Scripts: reflect describes an object's properties and methods
2026-11-28 01:03:47 -08:00
.CooCoo a949db79fe Merge pull request #9137 from dotCooCoo/feat/plugin-api-live-effect-appearance
Plug-ins: live effects set opacity, blending and effects on their pieces
2026-11-28 00:46:29 -08:00
.CooCoo ed86cbf5ab Merge pull request #9119 from dotCooCoo/feat/toolbar-command-buttons
Toolbars: a toolbar made with New Toolbar holds menu command buttons
2026-11-28 00:45:29 -08:00
dotCooCoo fb29b84fff Merge main into fix/symbol-registry-budget 2026-11-28 00:41:46 -08:00
dotCooCoo a4a96ea4ee Merge main into fix/packaging-fold-geometry 2026-11-28 00:41:46 -08:00
dotCooCoo 7d6abb1d23 Merge main into fix/script-documents-strict-assign 2026-11-28 00:29:51 -08:00
dotCooCoo 1f6ae9841b Merge main into fix/template-cache-code-reachability 2026-11-28 00:25:34 -08:00
dotCooCoo 5f7ddb1009 Merge main into fix/smooth-reach-pieces-bound 2026-11-28 00:21:23 -08:00
dotCooCoo 6b12d7e600 Merge main into feat/tangent-circle-ask-radius 2026-11-28 00:21:17 -08:00
.CooCoo 9c5e83cdb8 Merge pull request #9359 from dotCooCoo/fix/prefs-dialog-keeps-outside-changes
Preferences: OK writes only the settings changed in the dialog
2026-11-28 00:19:56 -08:00
.CooCoo 72c555deb7 Merge pull request #9407 from dotCooCoo/feat/packaging-fold-angle-command
Document stored fold angles and role defaults
2026-11-28 00:15:19 -08:00
dotCooCoo 7317159f52 Merge main into feat/scripts-reflection 2026-11-28 00:09:37 -08:00
.CooCoo bbefa3c8e3 Merge pull request #9072 from dotCooCoo/feat/js-es2015-collections-typed-arrays
JavaScript: ES2015 realms have Map, Set, WeakMap, WeakSet and typed arrays
2026-11-27 23:55:19 -08:00
.CooCoo bacd4d0ec2 Merge pull request #8853 from dotCooCoo/feat/swatches-pattern-drag-to-canvas
Swatches: a pattern swatch dropped on empty canvas places a copy of its tile art
2026-11-27 23:52:10 -08:00
dotCooCoo e75b26cffc Merge main into feat/scripts-reflection 2026-11-27 23:38:58 -08:00
.CooCoo 9ce2299580 Merge pull request #9811 from dotCooCoo/fix/ai-envelope-stroked-line
.ai import: envelopes of a stroked straight line map from their stroked box
2026-11-27 23:35:45 -08:00
dotCooCoo 35aca2b9cd Merge main into fix/template-cache-code-reachability 2026-11-27 23:34:38 -08:00
.CooCoo 8f9fda6a7d Merge pull request #9432 from dotCooCoo/fix/script-handles-after-revert
Scripts: invalidate page-item handles after file.revert
2026-11-27 23:34:31 -08:00
dotCooCoo 48188c3b8e Merge main into fix/symbol-registry-budget 2026-11-27 23:34:11 -08:00
dotCooCoo 86500e3e9f Merge main into fix/packaging-fold-geometry 2026-11-27 23:34:08 -08:00
dotCooCoo 4d5ec01e54 Merge main into fix/prefs-dialog-keeps-outside-changes 2026-11-27 23:34:05 -08:00
dotCooCoo a87f351a7d Merge main into feat/packaging-fold-angle-command 2026-11-27 23:34:04 -08:00
.CooCoo a859b6947d Merge pull request #9027 from dotCooCoo/feat/scripts-api-d7a-variables
Scripts: documents give scripts their variables, data sets and variable libraries
2026-11-27 23:30:13 -08:00