Commit Graph
10666 Commits
Author SHA1 Message Date
.CooCoo a0890cc87b Merge pull request #9929 from dotCooCoo/feat/scatter-brush-brightness-jitter
Brushes: Scatter Brush Options has Brightness Jitter, a per-copy brightness move
2026-11-28 08:03:07 -08:00
.CooCoo 19fd9548ee Merge pull request #9835 from dotCooCoo/fix/classic-3d-unchanged-approval-b
Keep unchanged 3D options out of Undo and recorded actions
2026-11-28 08:03:00 -08:00
.CooCoo 0d10c2a88d Merge pull request #9927 from dotCooCoo/feat/parametric-shape-slice
Parametric Shape: rectangles, ellipses, polygons, stars and rings cut as slices
2026-11-28 08:02:53 -08:00
.CooCoo af9226f613 Merge pull request #9900 from dotCooCoo/fix/paste-pie-legend-colors
Paste: pies in pasted symbols and patterns follow a merged swatch's wedge colors
2026-11-28 08:02:50 -08:00
.CooCoo bc17f26ca0 Merge pull request #9403 from dotCooCoo/fix/promise-host-constructors
JavaScript: accept host constructors in Promise statics
2026-11-28 08:02:46 -08:00
.CooCoo 676d4b5593 Merge pull request #9146 from dotCooCoo/feat/toolbar-button-rename
Toolbars: Rename Button… gives a command button a label of its own
2026-11-28 08:02:44 -08:00
.CooCoo e47136ed50 Merge pull request #9905 from dotCooCoo/fix/setliveshape-linked-art
Live Shapes: a new angle, radius or line takes a linked mask and placed gradients along
2026-11-28 08:02:39 -08:00
.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 503397ab73 Merge pull request #9897 from dotCooCoo/fix/dimension-alt-whole-object-preview-bounds
Dimension: Alt whole-path dimension measures the outside of the stroke with Use Preview Bounds
2026-11-28 08:02:27 -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 fcfa7a1be8 Merge pull request #9906 from dotCooCoo/fix/polygonal-lasso-flyout
Polygonal Lasso: the tool is in the Lasso tool's flyout
2026-11-28 08:02:15 -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 7e2ee5ae03 Parametric Shape: rectangles, ellipses, polygons, stars and rings cut as slices
addon.pathtools.shape.create and addon.pathtools.shape.set take sliceStart
and sliceEnd, in degrees clockwise from the shape's top (0 to 360). The
shape is cut from the start clockwise to the end and back through its
center; a ring's slice runs back along its hole. The angles are measured
as if the shape were as high as it is wide, so 45 degrees is a
rectangle's top right corner and a slice keeps its place when the shape
is stretched along its own axes. The same start and end leave the whole
shape, rounded corners are rounded before the cut, and the arrow, cross,
heart, gear and speech bubble ignore both values. A value outside 0 to
360 is refused. The values are kept with the shape's other numbers and
with the Parametric Shape Tool's options.
2026-11-28 06:11:56 -08:00
dotCooCoo 0a74dcc564 Brushes: Scatter Brush Options has Brightness Jitter, a per-copy brightness move
A scatter brush takes a Brightness Jitter amount from 0 to 100 percent (0
by default). Each copy moves the brightness 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 and saturation jitter. The
amounts come from the stroke's path and the brush name, drawn apart from
the hue and saturation 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 their amounts.

A color keeps its hue and saturation and moves in its own model: RGB in
the HSB of its values, Gray by its ink, Lab by its lightness with a and b
kept, and CMYK by its K over the brightness its C, M and Y leave. A CMYK
color that goes brighter than its C, M and Y show with no K loses its K
and takes less C, M and Y. The brightness stops at black and at full.
White, black and grays move too. A brush at 0 saves no brightness_jitter
key; a brush without the key reads as 0.

- brush.options takes brightness_jitter, and brush.get shows it for every
  scatter brush. Brush Options shows a Brightness Jitter field
  (ui.brushOptions field brightnessJitter).
- Options of Selected Object sets a path's own brightness_jitter
  (brush.objectOptions).
- The brightness goes through the per-copy recolor step hue and
  saturation jitter use, with its own salt.
- 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 06:07:40 -08:00
dotCooCoo bb47b10d48 Docs: W and H match the preview-bounds dimension only for an unrotated path 2026-11-28 05:58:45 -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 95442aa792 Merge main into fix/promise-host-constructors 2026-11-28 05:32:32 -08:00
dotCooCoo f2975348b9 Merge main into fix/classic-3d-unchanged-approval-b 2026-11-28 05:07:36 -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
dotCooCoo 28af430081 Dimension: a guide's preview bounds leave out its stroke
A path made into a guide paints no strokes, but painted_box still measured its
stroke, so a Use Preview Bounds dimension of a whole guide reached past its
outermost points. painted_box now returns None for a guide, which covers both
preview_extents and reach. The parity note says W and H match only when the
path has no geometry effect, in line with docs/dimensions.md.
2026-11-28 03:31:46 -08:00
dotCooCoo af8b62bdd9 Merge main into feat/toolbar-button-rename
Rename Button now opens through the craft UI framework: the dialog is a
hosted parameter dialog like New Toolbar, its OK is held while the label
is refused, and an OK after switching workspaces is refused. The button
context menu item and the button face use the framework Menu and Button;
the face paints the label of its own while the accessible name keeps the
command name after it. Tests drive the dialog through panel_harness.
2026-11-28 03:26:32 -08:00
dotCooCoo 9e246c0598 Live Shapes: a new angle, radius or line takes a linked mask and placed gradients along
object.setLiveShape rewrote only the path after a new Rectangle, Ellipse
or Polygon Angle, Polygon Radius, Side Length, Make Sides Equal, Line
Length or Line Angle, so a linked opacity mask, placed gradients and
pattern tiles stayed where they were. The edit now applies the transform
between the old and new shape to the object, as object.scale and
object.rotate do, and then sets the new shape. Scale Strokes & Effects
and Transform Patterns come from the new `strokes` and `patterns` params
or the preferences. Corner radii in the mask keep their size, an object
named twice moves once, and the bounding box keeps its angle.

Transform Patterns is now noted in the journal when only the art of a
linked opacity mask uses a pattern, so a replay of object.move,
object.scale and the other transforms moves those tiles alike.
2026-11-28 03:16:59 -08:00
.CooCoo b335904091 Merge pull request #9888 from dotCooCoo/feat/ai-inline-placed-eps
.ai import: a placed EPS file whose bytes the editing data includes opens as a placed document
2026-11-28 03:14:10 -08:00
.CooCoo d3de968852 Merge pull request #9859 from dotCooCoo/fix/direct-click-keeps-group
Direct Selection: a press on a member of a selected group keeps the group
2026-11-28 03:13:58 -08:00
dotCooCoo 05c3dffc42 Polygonal Lasso: the tool is in the Lasso tool's flyout
The Polygonal Lasso Tool joins the Lasso group in both shipped
toolbars, after the Enclosing Lasso, and stays in Object › Plug-ins ›
Polygonal Lasso. The All Tools drawer lists it once, under Select,
instead of under a heading of its own, and Edit › Keyboard Shortcuts ›
Tools lists it once. It has no default shortcut, and the Lasso keeps Q.
A toolbar the user already edited keeps its saved layout; Reset Toolbar
adds the tool. A Lasso group torn off the Tools panel shows it too.

The Enclosing Lasso moved the same way in #8333.
2026-11-28 03:13:53 -08:00
.CooCoo ab40213a4f Merge pull request #9887 from dotCooCoo/fix/outline-placed-docs-on-screen-wording
Docs: Outline view row says which layers draw placed documents crossed in Preview mode
2026-11-28 02:57:11 -08:00
dotCooCoo 1caf734c0f Docs: state the 256 MiB limit on included placed EPS bytes 2026-11-28 02:42:17 -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 27104129d0 Docs: list the placed EPS files the .ai reader leaves as before
The progress line now names the cases where a placed EPS file whose bytes
the editing data includes stays as on main: DCS bytes, no bounding box of
its own, a VectorCraft document, bytes that don't read as EPS, an `.ai` or
`.ait` file name, and a previewed file that an image variable binds.
2026-11-28 02:10:33 -08:00
dotCooCoo 3315bc4bfd Docs: limit the Preview-off exception to layers that are not templates
A template layer stays in Preview whatever its Preview flag is, so only a
layer that is not a template and has Preview off draws placed files by the
Outline rules in Preview mode.
2026-11-28 02:10:15 -08:00
dotCooCoo 23db97a4bd Dimension: Alt whole-path dimension measures the outside of the stroke with Use Preview Bounds
With Use Preview Bounds on, the box Alt shows over a path and the linear
dimension of the whole path it places now reach the outside of the
path's strokes, the width or height W and H show, instead of the
outermost anchors.

- The extent source records `preview: true` (omitted when false), so the
  dimension measures to the outside of the strokes again after later
  edits, a new stroke weight included. Files without it measure as
  before.
- A member of a compound path is measured with the compound path's
  strokes and only the arrowheads the compound path draws on that member.
  Releasing the compound path or changing which member holds the first
  or last subpath measures it again.
- The dimension line stays outside the stroke.
- `dimension.create` takes `preview` on the extent source; a value other
  than true or false is an error.

Geometry effects are not included.
2026-11-28 02:06:27 -08:00
dotCooCoo 6229784fc2 Paste: pies in pasted symbols and patterns follow a merged swatch's wedge colors
When a paste merges a global swatch and that turns a pie's wedge from
light to dark or back, the pasted pie's legend labels already take the
contrast a redraw gives them. Pies inside the art of a symbol, pattern,
brush or graph design that the paste adds kept their old label colors,
because that art was relinked without the contrast step.

The contrast step now runs inside the relink of every node tree, so it
covers pasted objects and the definitions a paste adds alike, and a
second paste matches the definition the first one added.
2026-11-28 01:57:25 -08:00
dotCooCoo 0d5fd64d02 Merge main into fix/classic-3d-unchanged-approval-b 2026-11-28 01:41:16 -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