Commit Graph
12649 Commits
Author SHA1 Message Date
.CooCoo dcab528174 Merge pull request #10632 from dotCooCoo/fix/tracing-mask-art
Scripts: retracing and releasing refuse a tracing with added opacity mask art
2026-12-04 18:58:41 -08:00
dotCooCoo 29187c520d Merge main into feat/print-per-job-settings 2026-12-04 18:53:20 -08:00
.CooCoo 72801b126e Merge pull request #10896 from dotCooCoo/fix/new-group-in-shaper-group
Shaper: new groups and clipping masks no longer delete a Shaper group
2026-12-04 18:52:48 -08:00
.CooCoo 4be58b75cd Merge pull request #10144 from dotCooCoo/feat/release-containers
Artwork Cleanup: Release All Containers takes apart every group, clipping mask and compound path
2026-12-04 18:46:43 -08:00
dotCooCoo 02c4ac0f74 Scripts: a Color Picker pick converts through the script document's profiles
app.showColorPicker answers the run between slices, when the active
color settings hold the profiles of the document the window shows. A
pick in the run's own document, made or assigned other profiles by the
script, was converted to that document's RGB space and separated to CMYK
through the window's profiles instead.

The dialog now carries the RGB and CMYK profiles assigned to the run's
active document when the picker opens. On OK a display-sRGB pick (hex,
sample, HSB) is taken into that document's RGB space, RGB values typed
into the picker convert from the shown RGB profile to the document's,
and an RGB pick in a CMYK document separates through the document's
CMYK profile.
2026-12-04 18:38:31 -08:00
.CooCoo 7802fe94be Merge pull request #10726 from dotCooCoo/fix/held-dialog-outcomes
Dialogs: a control confirm of a held OK replies with the app's answer
2026-12-04 18:30:21 -08:00
dotCooCoo 60cdfc1eb4 Merge main into fix/dxf-group-block-reference
The craft-libs pins take main's rev. Until storytold/craft-libs#5381 merges,
crates/cad/src/blocks_compat.rs writes the block records, BLOCK definitions
and INSERT entities that #5381 adds to the drawing writer.
2026-12-04 18:24:34 -08:00
dotCooCoo 5050a2b628 Merge main into feat/concept-to-vector-providers 2026-12-04 18:22:25 -08:00
dotCooCoo 3795ea5bba Merge main into fix/jpe-jpeg-extension 2026-12-04 18:19:27 -08:00
dotCooCoo a680aef74a Merge main into fix/tracing-mask-art 2026-12-04 18:19:19 -08:00
dotCooCoo b63ed69db5 Merge main into fix/remove-all-image-frame-clip 2026-12-04 18:18:32 -08:00
dotCooCoo 0ca72a4a26 Merge main into fix/new-group-in-shaper-group 2026-12-04 18:18:17 -08:00
dotCooCoo ab17c55959 Merge main into fix/composite-installed-name-place 2026-12-04 18:17:54 -08:00
.CooCoo ae67ca69e6 Merge pull request #10884 from dotCooCoo/fix/script-stale-collection-before-range
Scripts: stale layers and artboards throw their stale error from index()
2026-12-04 18:10:21 -08:00
.CooCoo f4c65a2f0f Merge pull request #9053 from dotCooCoo/feat/scripts-api-d5-swatches-symbols
Scripts: documents give scripts their swatches, spots, symbols, graphic styles and brushes
2026-12-04 18:08:05 -08:00
dotCooCoo 43d4cb2a25 Merge main into feat/release-containers 2026-12-04 18:03:46 -08:00
dotCooCoo 05ed058fb1 Shaper: new groups and clipping masks no longer delete a Shaper group
A Shaper group keeps its source art at the bottom and rebuilds the rest
from it. object.newGroup with a Shaper group as parent at index 0, and
layer.clippingMask.toggle (also a script's clipped = true) on a Shaper
group, put a new object where the source art was. The group then read
no sources and was deleted. Both commands now refuse a Shaper group and
leave the document as it is; the clipping check runs before the edit
opens, so a refused call leaves typing as it is.
2026-12-04 18:02:53 -08:00
.CooCoo 85bd77b528 Merge pull request #9315 from dotCooCoo/feat/scripts-export-for-screens
Scripts: Document.exportForScreens writes artboards, assets or the document into a folder
2026-12-04 17:59:22 -08:00
.CooCoo 415fa81712 Merge pull request #10641 from dotCooCoo/fix/trace-preset-bracket-names
Scripts: loading the same built-in preset with or without brackets does not trace again
2026-12-04 17:59:16 -08:00
.CooCoo 48488547af Merge pull request #10856 from dotCooCoo/fix/live-corners-keep-straightened-radius
Live Corners: a straightened corner rounds again when a later move bends it
2026-12-04 17:59:11 -08:00
.CooCoo 32513255bd Merge pull request #10860 from dotCooCoo/fix/placed-dimension-composite-font
Place: a placed dimension keeps the composite font its label was renamed to
2026-12-04 17:59:07 -08:00
.CooCoo 0fb3f00a4b Merge pull request #10877 from dotCooCoo/fix/dwt-dws-open
DWG: .dwt templates and .dws standards files open as DWG drawings
2026-12-04 17:59:00 -08:00
.CooCoo 43e046ed33 Merge pull request #10878 from dotCooCoo/fix/webp-embed-icc
WebP export: Embed ICC Profile writes the sRGB profile in an ICCP chunk
2026-12-04 17:58:57 -08:00
dotCooCoo 48f7214daa Merge main into fix/targa-color-model 2026-12-04 17:52:30 -08:00
dotCooCoo 68dea71151 Docs: Targa's 16-bit gray files carry an 8-bit alpha
The MCP export notes said a 16-bit Targa file opens with its one-bit
alpha. That holds for 16-bit RGB files only; a 16-bit gray file stores
an 8-bit alpha.
2026-12-04 17:52:27 -08:00
dotCooCoo 5cddb35244 Merge main into feat/release-containers 2026-12-04 17:52:15 -08:00
dotCooCoo dc65d03200 Plug-ins: an outside command acts on the selection an add-on preview shows
During an add-on dialog's preview, a command from outside the dialog
now uses the selection on show, without the objects the preview made,
instead of the selection from before the preview, so Clear no longer
deletes art that was not shown selected. A failed preview runs again
when an outside command changes only the selection, and the new-art
paints a selection command loads stay with the selection it made.
2026-12-04 17:52:09 -08:00
dotCooCoo ec78385f8c Artwork Cleanup: Release All Containers keeps group paint and clipped art on locked artboards
- A group with fill or stroke rows of its own stays whole, so its members
  keep the paint the group draws for them.
- A clipping group whose shown clipped artwork overlaps a locked artboard
  stays whole even when its clipping path lies off the artboard, including
  when a target inside it is named by `ids`. Hidden artwork, art in pattern
  editing mode and runs with `clipGroups` false do not count.
2026-12-04 17:45:02 -08:00
dotCooCoo 4b54a5a5d2 Merge main into fix/dxf-region-import 2026-12-04 17:44:16 -08:00
dotCooCoo e69e51dbdd DXF import: REGION entities open as filled paths
A REGION holds its outline as solid-modeler data. The import now reads
it and draws each face's boundary loops as one filled path (even-odd),
so holes stay open. Lines, circles, ellipses and spline edges keep their
shape; coedge and edge directions and a body's transform are applied.

The data is read from the text in groups 1 and 3 (DXF R13 to 2010,
ciphered or not) and from the binary data in the ACDSDATA section (DXF
2013 and later, with either binary signature), so DWG drawings converted
to DXF bring their regions too.

Damaged data is reported instead of drawn silently: edges of other curve
types come in straight, outlines that break off are closed with a
straight line, and a spline edge whose endpoint lies on two parts of a
self-crossing curve is trimmed at the nearer one, each with a warning.
Regions that can't be read, or that go over the record or path element
limits, are left out and listed.

The DXF import fuzz tests now include REGION entities and mutated text
and binary region data.
2026-12-04 17:44:05 -08:00
dotCooCoo 79aea5c009 Place: placed type keeps an installed font that shares a composite font's name
A native file's composite font named like an installed font is not lent
while the file's type is measured for placement, so the type is laid out
in the installed font. Adoption still brought that definition in under a
free name such as "Source Sans 3 2" and renamed the type to it, so the
placed type switched to the composite font it was never measured in.
Adoption now skips the source definitions the font database does not
lend: one named like an installed font, or one that fails its own checks.
2026-12-04 17:43:01 -08:00
dotCooCoo e487e66d0c Merge main into fix/held-dialog-outcomes 2026-12-04 17:36:29 -08:00
dotCooCoo 632598888f Plug-ins: an edit made during an add-on preview survives Cancel and OK
With Add Artboard Guides previewing, deleting an artboard from the
Artboards panel ran inside the preview's interaction. On the next frame
the dialog could no longer find its artboard, canceled the preview, and
the cancel put the deleted artboard back. The same happened in every
add-on dialog: any command run while its preview showed was undone by
the next preview or by Cancel.

An add-on dialog's preview now marks its interaction (`dialog`). A
command from outside the dialog sets that interaction aside, runs on
the document without the preview as an undo step of its own, and the
dialog previews again from the command's result and selection, as a
tool drag already does. `edit.copy` and the `file.*` commands other
than `file.documentColorMode` still act on the document as the preview
shows it, and Edit Points Only keeps the old behavior, since it
previews a selection. A preview whose snapshot an outside command
changed runs again, also after a failed run.

Docs: docs/mcp.md (undo/redo row).
2026-12-04 17:29:37 -08:00
dotCooCoo 830737d1f0 File formats: DWG is listed as readable only where a decoder reads it
Web builds and FreeBSD on 64-bit ARM have no DWG decoder, yet File ›
Open, File › Place, their "All readable files" and "All placeable
files" filters, `openExtensions`, `document.formats`, the MCP open_file
description and the CLI help all offered `.dwg` there, and a DWG file
then failed in the missing decoder.

- `vectorcraft_cad::dwg::DECODES` says whether the build decodes DWG.
- `readable_format`, `open_exts()`, `place_exts()` and the per-format
  dialog filters leave DWG out where it is false; `document.formats`
  reports `dwg` as not readable there.
- An installed `.dwg` importer plug-in is used for such files on those
  builds, by File › Open, File › Place and folder batches, and the
  desktop app skips its background DWG conversion there.
- Without an importer, File › Place keeps the DWG-specific error, and a
  `.dwg` file is still not read as HP-GL.

The listing functions take the decoder availability as a parameter, so
the new test checks both cases on every platform.
2026-12-04 17:12:08 -08:00
dotCooCoo a53165fa85 Scripts: stale layers and artboards throw their stale error from index()
layers.index(n) and artboards.index(n) returned Not found for a negative
or fractional number before checking whether the collection was stale, so
a script holding a stale collection got the wrong error. Both now check
the collection first, as the art collections' index() does.
2026-12-04 17:03:47 -08:00
.CooCoo bcc1ce94fe Merge pull request #10861 from dotCooCoo/docs/place-composite-font-errors
Docs: composite fonts that placed editable art brings, and their errors
2026-12-04 17:03:34 -08:00
.CooCoo ecf3096ff0 Merge pull request #10867 from dotCooCoo/fix/save-changes-docs-choice
Docs: the save-changes question takes choice dontSave, not discard
2026-12-04 17:03:30 -08:00
.CooCoo 1a4e9fe934 Merge pull request #10850 from dotCooCoo/fix/prefs-agents-control-clients
Agents: control clients can't change the agent settings
2026-12-04 17:03:25 -08:00
dotCooCoo a8d0ac7caf Merge main into feat/print-per-job-settings 2026-12-04 16:44:13 -08:00
dotCooCoo 8ff9964b13 3D: Raster Settings OK sets the objects the dialog opened on
Raster Settings opened with the selected objects' render settings, but
OK applied the edited values to whatever was selected at OK time. An
object selected while the dialog was open took settings it was never
shown.

OK now sets the objects selected when the dialog opened. When the
document is no longer the active one, was reverted, had an Undo or
Redo, or one of those objects was changed, deleted, locked or hidden,
OK keeps the dialog open with the reason.
2026-12-04 16:41:41 -08:00
dotCooCoo 7f47355dee Docs: a dropped .jpe file is placed or opened as a dropped .jpg file is 2026-12-04 16:29:57 -08:00
dotCooCoo caa950a772 Docs: the earlier pathItems entry names the image exception to removeAll
The layer and group pathItems entry described only the text exception, so it read as if removeAll threw when a clipping group kept a visible image. It now states the image and placed-document case and the live geometry effect limit, as the Document.pathItems entry does.
2026-12-04 16:29:32 -08:00
.CooCoo 3368ac519c Merge pull request #10871 from dotCooCoo/fix/cad-clipboard-paste
Paste: read CAD apps' metafiles on Windows and copied DXF, DWG and HP-GL files
2026-12-04 16:29:31 -08:00
dotCooCoo fc2c469eb2 Docs: a straightened corner's stored radius keeps the path live
The Live Corners line said an anchor edit makes the shape a plain path when no corner has a radius. The check reads the stored radii, so a straight anchor that holds the only radius above 0 keeps the path live.
2026-12-04 16:28:41 -08:00
dotCooCoo 96e66b5e8d Merge main into feat/scripts-api-d5-swatches-symbols 2026-12-04 16:27:43 -08:00
dotCooCoo e8ebbc5707 Merge main into feat/concept-to-vector-providers 2026-12-04 16:20:12 -08:00
dotCooCoo d3d6e81975 Targa export: a Color Model option writes grayscale files
Targa Options gets a Color Model menu, RGB or Grayscale, and
`document.export` takes it as `colorModel` (`rgb` or `gray`, as BMP
does). Grayscale writes an uncompressed grayscale file (image type 3)
at 8 bits per pixel, flattened on white, or 16 bits with an 8-bit
alpha; omitting `depth` with `gray` gives 8 bits. `cmyk`, an unknown
model and a grayscale depth of 24 or 32 bits are refused with an error.
Switching the model in the dialog moves a depth the new model lacks to
that model's default.

The transparency rule of the dialog's background list now follows the
depth: 16 and 32 bits keep transparency, 8 and 24 bits are flattened.

Docs: docs/mcp.md, docs/control-protocol.md, docs/target-app-parity.md.
2026-12-04 16:12:01 -08:00
dotCooCoo 8b82ccf327 Scripts: null exportForScreens arguments throw, and a read before a closing brace is shared
- Document.exportForScreens throws a TypeError for null in place of the
  options, itemToExport or fileNamePrefix, as exportFile does for null
  options, instead of taking the defaults.
- The script checker counts a variable read just before the `}` that
  closes a function body (`function get() { return $.global['local'] }`)
  as read in that body, so a later literal's saveAs is no longer exempt.
2026-12-04 16:04:49 -08:00
dotCooCoo 42f4dddec8 File formats: JPEG files named .jpe open and place
File > Open and File > Place now list and read JPEG files with the .jpe
extension, like .jpg and .jpeg, in any letter case. The "All readable
files", "All placeable files" and JPEG filters include .jpe, and a .jpe
file dropped on the window opens as JPEG. Exports still write only .jpg
and .jpeg, and the desktop packaging declares no type for .jpe.

Supported formats for Open and Place list .jpg, .jpe and .jpeg for JPEG:
https://helpx.adobe.com/illustrator/kb/supported-file-formats-illustrator.html

Docs: docs/mcp.md, docs/file-format-parity.md, docs/target-app-parity.md.
2026-12-04 16:00:48 -08:00
dotCooCoo b8e11fb2c7 Place: a placed dimension reuses an equal composite font of the same name
When the document defined a composite font with the same name and the same
definition as one a placed dimension used, but spelled in more than the 256
bytes a dimension's family keeps (a case-insensitive match such as Kelvin
signs for k), placement copied the incoming font under a new name instead of
reusing the document's. The byte limit now applies only to an alias under
another name; a same-name reuse keeps the dimension's own spelling.

Merging main had also left a second, unguarded rename of a dimension's
family next to the guarded one, so a renamed family that was too long or
only differed in case was still written. The unguarded rename is removed.

docs/mcp.md describes how file.place renames a placed dimension's family.
2026-12-04 16:00:35 -08:00