- 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.
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.
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.
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.
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.
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.
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.
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).
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.
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".
The answer_dialog row in docs/mcp.md and the tool description still give
Don't Save as two calls and say to give set and action in separate calls
for this question. They no longer state that a single call sends a second
confirm: that holds only while ui.dialog.set with an action replies
without a dialog key, and the two-call sequence works either way. The
conventions test no longer rejects the one-call form.
Rotate draws a plane for every fill and stroke, but rendered mode only
checked the top fill and the strokes before drawing the image. A
gradient fill below a solid top fill was drawn as a flat color in the
rendered image instead of falling back to shaded faces with the
warning. Extrude & Bevel and Inflate still check only the top fill and
strokes they build solids from.
When placed editable art names a font family that its file does not define
as a composite font, and the document defines a composite font of that
name, the placed type was measured in the file's font but drew in the
document's composite font after placement. The placed type now gets a free
name such as "Name 2", so it keeps the font it was laid out in. Placing the
same art again reuses that name.
- The renaming also covers the fonts a file carries for its type and the
label font of a live dimension, so they stay paired with the renamed runs.
- An installed family is not renamed.
- The installed-name check applies only to the composite fonts a
placement adds, so a definition already in the document does not stop it.
- docs/mcp.md describes the renaming under file.place.
With Show Missing Links on, a links.marked call from a caller confined to
other read folders saw a linked file outside them as missing and wrote that
answer to the markers the canvas draws, putting a missing-link badge on a
file that is there. The call now updates the markers only when its read
folders match those the document was opened with and no script gate is in
force; otherwise the caller gets its own answer.