Commit Graph
12481 Commits
Author SHA1 Message Date
dotCooCoo 5fd750057b Concept to Vector: seam fills under Flat Color, and scripts can stop generate
Flat Color traces abutting fills, and each fill was drawn on its own, so
a light hairline showed wherever two colors met. The built-in provider
now lays the trace's seam fills under the fills, as Image Trace's
Abutting method with Fills does. Seam strokes are trimmed to half their
width inside the image, so they do not paint past its border, and they
are added only in the anchors and paths that every style's traced paths
leave of the limits, so they never make a later style's trace fail.

conceptVector.generate run from a script now stops when the script is
asked to stop, as imageTrace.make does, and keeps no job.
2026-12-04 22:30:24 -08:00
dotCooCoo 5050a2b628 Merge main into feat/concept-to-vector-providers 2026-12-04 18:22:25 -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
.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 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
.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 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 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
dotCooCoo 635a726c1f Merge main into feat/concept-to-vector-providers
Conflicts resolved by keeping both sides: the session state and script
and batch rollbacks keep the Concept to Vector jobs beside main's retype
hand-off, clipboard counts and plug-in events; the plug-in deny list
keeps main's entries in order. The Control bar and Properties' Quick
Actions take main's framework buttons with Concept to Vector added
after Crop Image, and the task bar test uses main's helpers. In
docs/ui-parity.md the Concept to Vector row moves into main's table
with its Headless column.
2026-12-04 15:41:35 -08:00
dotCooCoo d467c36805 Merge main into fix/trace-preset-bracket-names 2026-12-04 15:32:09 -08:00
.CooCoo 41b87e5d7d Merge pull request #10184 from dotCooCoo/fix/dialog-keys-ui-inspect
MCP: dialog params texts match the keys and fields ui.inspect lists
2026-12-04 15:29:47 -08:00
.CooCoo 6c8ede6578 Merge pull request #10863 from dotCooCoo/fix/agents-ui-tools-report-window-errors
Agents: a UI tool reports why the window could not be reached
2026-12-04 15:29:42 -08:00
.CooCoo 5e45e0b00f Merge pull request #10843 from dotCooCoo/fix/agents-headless-fail-closed
Agents: a headless agent session with no usable agent folder gets no file access
2026-12-04 15:29:38 -08:00
.CooCoo 2612015ffc Merge pull request #10090 from dotCooCoo/feat/artboard-rect-guides
Arrange Tools: Add Artboard Guides puts a guide rectangle inside or outside artboards
2026-12-04 15:29:34 -08:00
.CooCoo 1b02d80af7 Merge pull request #10855 from dotCooCoo/fix/confined-marked-links-keep-canvas-markers
Links: a confined links.marked call leaves the canvas markers alone
2026-12-04 15:29:25 -08:00
.CooCoo 88694da6eb Merge pull request #10628 from dotCooCoo/fix/script-remove-trace-source
Scripts: remove() refuses a tracing's shown source image
2026-12-04 15:29:17 -08:00
.CooCoo d802cf3cd5 Merge pull request #9259 from dotCooCoo/feat/scripts-api-layer-path-items
Scripts: layers and groups give their own path items
2026-12-04 15:29:12 -08:00
dotCooCoo 6c28ad2390 Docs: composite font placement errors apply only when the placed art uses one
file.place checks the composite fonts only when the placed art uses a
composite font that its file defines.
2026-12-04 15:28:40 -08:00
dotCooCoo 2dc8a41ff8 Merge main into fix/webp-embed-icc 2026-12-04 15:24:10 -08:00
dotCooCoo 87778a672b WebP export: Embed ICC Profile writes the sRGB profile in an ICCP chunk
WebP had no embedIcc option, and its encoder never attached a profile,
so no WebP file carried one. WebP now takes embedIcc like JPEG, TIFF and
PSD, on by default: the file becomes an extended (VP8X) file holding the
sRGB profile in an ICCP chunk, lossless or lossy. embedIcc: false writes
the plain file as before.

- document.export and Export for Screens' settings.webp take embedIcc,
  and document.formats lists it for WebP.
- WebP Options (Export As and Export for Screens' Format Settings) gets
  an Embed ICC Profile checkbox.
- Docs: docs/mcp.md and docs/file-format-parity.md.
2026-12-04 15:24:10 -08:00
dotCooCoo 7dc78396e0 Merge main into feat/scripts-api-d5-swatches-symbols 2026-12-04 15:11:24 -08:00
dotCooCoo c4105eecb3 Merge main into fix/prefs-agents-control-clients 2026-12-04 14:59:28 -08:00
dotCooCoo a6b3d0c0a9 DWG: .dwt templates and .dws standards files open as DWG drawings
Drawing templates (.dwt) and drawing standards files (.dws) are DWG
files, but File > Open and File > Place did not list or read them.

- Both extensions are in the open and place dialogs and go through the
  DXF Import Options after the drawing is converted, as a .dwg does.
- A .dws file is read as format `dwg`. A .dwt file is format `dwt` and
  opens as a new untitled document, as a .cdt template does.
- The format is found from the content; a DXF named .dwt stays a DXF.
- Exporting to dws or dwt says to export DXF instead.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-12-04 14:44:29 -08:00
dotCooCoo 63bc8cbf77 Merge main into fix/cad-clipboard-paste 2026-12-04 14:33:04 -08:00
dotCooCoo 889327e85d Paste: read CAD apps' metafiles on Windows and copied DXF, DWG and HP-GL files
Paste on Windows never read the enhanced metafile that CAD and office
apps put on the clipboard as vector art: windows_formats had no entry for
EMF, so the app pasted their bitmap instead, or nothing. The Windows
clipboard holds an EMF as a handle (CF_ENHMETAFILE, which Windows also
makes from CF_METAFILEPICT), so the app now copies its records with
GetEnhMetaFileBits, at most 64 MiB, and pastes them through
clipboard.importEmf.

A .dxf, .dwg or HP-GL plot file copied in a file manager did not paste,
because file_flavour had no flavour for them, though Open and Place read
all three. They now paste as image/vnd.dxf, image/vnd.dwg and
application/vnd.hp-hpgl through the new command clipboard.importCad
{dataBase64, format: dxf|dwg|hpgl, center?}, read as document.open reads
the file. A file pastes this way only when its bytes are the format, so
a chart script named .plt is not taken for a plot.

Fixes #10819.
2026-12-04 14:32:59 -08:00
.CooCoo 60759e4575 Merge pull request #10859 from dotCooCoo/fix/dxf-polyface-mesh-import
DXF/DWG import: polyface and polygon meshes come in seen from above
2026-12-04 14:29:11 -08:00
.CooCoo d8c3e479f7 Merge pull request #10853 from dotCooCoo/fix/rotate-rendered-every-fill
3D: Rotate in rendered mode checks every fill it draws
2026-12-04 14:20:40 -08:00
.CooCoo 29ac02f682 Merge pull request #10845 from dotCooCoo/fix/agents-settings-automation
Agents: Preferences saves no agent settings once automation drove the window
2026-12-04 14:20:32 -08:00
.CooCoo 15d90d3f53 Merge pull request #10852 from dotCooCoo/fix/placed-undefined-family-composite
Place: placed type keeps its font when the document has a composite font of its family's name
2026-12-04 14:20:12 -08:00
.CooCoo 34b9ce755a Merge pull request #10771 from dotCooCoo/fix/bitmap-smoothing-every-view
Preferences: Display Bitmaps as Anti-aliased Images turns image smoothing off in every view
2026-12-04 14:19:51 -08:00
.CooCoo 113edfe404 Merge pull request #10194 from dotCooCoo/fix/match-objects-guards
Arrange Tools: Match Objects refuses restacks into locked, blend and Live Paint containers
2026-12-04 14:19:46 -08:00
dotCooCoo 4d30cb1b73 Docs: say when a UI tool reports a window connection error
docs/mcp.md now says that a UI-only tool returns the window-required
message in a headless session, including one the closed-app choice
started, and returns the window lookup, launch or authentication error
otherwise.
2026-12-04 13:22:26 -08:00
dotCooCoo a92e961058 Docs: composite fonts that placed editable art brings, and their errors
docs/mcp.md now says which composite fonts file.place and links.embed
bring with editable art, when a placed font keeps its name, reuses an
equal one or takes a free name, and quotes the errors that stop the
placement before either document changes.
2026-12-04 13:17:59 -08:00
dotCooCoo 4c34424df0 DXF import: polyface and polygon meshes come in seen from above
Polyface mesh and polygon mesh POLYLINEs were dropped with a warning.
They now come in as one path each, their height dropped:

- A polyface mesh draws each face's visible edges. A face with every
  edge visible is a closed outline; an edge whose vertex number is
  negative is left out. A face that names a vertex the mesh doesn't
  have is left out with a warning.
- A polygon mesh draws its M and N lines, closed when the mesh is
  closed in M or N. A smoothed mesh draws its surface vertices
  (groups 73 and 74), not its frame. A mesh whose vertices don't fill
  its grid is left out with a warning.
- 3DFACE leaves out the edges its group 70 hides, as polyface faces do.

Docs: docs/mcp.md (DXF import).
2026-12-04 13:08:42 -08:00
dotCooCoo de2a7a958b Live Corners: a pixel-grid snap converts relative radii as an anchor move does
With relative rounding, a move that bent a straightened corner converted
its stored radius to a fraction of the bent corner's maximum. When the
pixel-grid snap then straightened the corner again, the radius stayed in
those units, so the move changed the radius and recorded an undo step
although no anchor moved, and the corner rounded at the wrong size when
bent later. The snap of a path with Live Corners now converts the radii
of corners it straightens or bends, with the same rule as an anchor
edit, and a move the snap takes back counts as no change when the radii
differ only by rounding.

The help of object.setLiveShape, path.moveAnchor and path.moveAnchors
and docs/mcp.md now say that a straightened corner keeps its radius and
the path stays live.
2026-12-04 12:59:02 -08:00
dotCooCoo 6c314c4cd6 Docs: the control protocol gives Don't Save in one ui.dialog.set request
ui.dialog.set with fields and action "confirm" sets choice (and
applyToAll) and confirms the same Save Changes question in one request,
so no other dialog is answered between the two. The control-protocol row
now gives that form beside the two-request one, and the Save Changes test
checks the line and sends both one-request forms through the control
handler.
2026-12-04 12:57:51 -08:00
dotCooCoo 97ecde45b8 Links: describe when links.marked leaves the canvas markers alone
The canvas markers stay as they are when the caller's read folders do
not cover the same files as the document's, or when a script command
makes the call. The links.marked help text, docs/mcp.md and the
progress-doc line now say both, in place of "read folders differ".
2026-12-04 12:56:43 -08:00
dotCooCoo 49186cb426 Merge main into feat/scripts-api-layer-path-items 2026-12-04 12:28:26 -08:00