Commit Graph
10620 Commits
Author SHA1 Message Date
.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 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 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
.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
.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 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
dotCooCoo fda03c81ed .ai import: a placed EPS file whose bytes the editing data includes opens as a placed document
A .ai file's editing data can include a placed EPS file's bytes between
%%BeginDocument: and %%EndDocument. The reader did not read those bytes:
in the %AI5_BeginPlace form the placed file showed only the preview the
data keeps of it, or an unread placeholder box without one, and in the
version 7 form the art the file draws came in as editable paths with a
note that placed files weren't read.

- The reader keeps those bytes (up to 256 MB) and makes the placed file a
  placed document of them, in the file's bounding box where the
  matrix puts it. It draws its art whether or not its file is found, and
  a native save keeps the bytes. The version 7 form's placed EPS art is
  no longer editable on open.
- A placed file stays as before when its bytes are a DCS file (File >
  Place makes those linked images), have no bounding box of their own,
  carry a VectorCraft document (as VectorCraft's EPS export writes),
  don't read as an EPS file, or belong to a file named .ai or .ait.
  What reading the bytes warns of is in the open result.
- One with a preview that an image variable binds stays the linked image
  showing its preview, as a placed PDF page does.
- The link takes the size and hash of the bytes, so a file found unchanged
  is neither missing nor modified.
- Drawing and the open check each read at most 8 placed EPS files inside
  one another, so a file whose included files include others opens.
  The open check draws the placed documents inside the bytes from their
  previews, and it reads each included file once at each depth. A file
  nested 12 levels deep opens with at most 8 drawing reads and 72
  checks.
- File > Package with Copy Fonts reads the type of a placed EPS file, as
  it reads a placed PDF page's, and of the EPS files it includes in turn,
  pattern art included.
- On %_ lines the %_ that starts each line is taken off. Then one line
  end is taken off the end of the bytes when another line end comes
  before it: the one the %%BeginDocument: line ends with when the bytes
  end with it, otherwise the last one. An LF after a CR is kept with it
  when the file's first line ends with CRLF.

Docs: docs/target-app-parity.md.
2026-11-28 01:16:09 -08:00
dotCooCoo 658151d45c Docs: Outline view row says which layers draw placed documents crossed in Preview mode
The Outline view row in docs/ui-parity.md said Preview mode draws linked
images and placed documents as before. On screen, a layer whose Preview
is off draws in outline in Preview mode, so its placed documents are
crossed and its linked images show their crossed frames. A template layer
in Outline mode draws them as Preview mode does. The row now says so.
2026-11-28 01:08:44 -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
.CooCoo 11ee54db00 Merge pull request #9058 from dotCooCoo/fix/issue-8583
Part of #8583: document tab titles draw in a condensed face, so more tabs fit
2026-11-28 00:43:51 -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
.CooCoo 150998c32d Merge pull request #8990 from dotCooCoo/feat/web-stylus-wheel
Web: the Paintbrush records an airbrush pen's stylus wheel
2026-11-28 00:10:14 -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
dotCooCoo 326a5f83f2 Merge main into fix/issue-8583 2026-11-27 23:37:43 -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