The 29 catalogs in crates/ui-egui/src/i18n were embedded with include_str!,
21,861,200 bytes of text in every build. build.rs now compresses each
*.tsv with Brotli (quality 9, 4 MiB window) into OUT_DIR, and the
interface unpacks them when it first needs its catalogs and hands them to
I18n::from_owned. The embedded catalogs take 5,316,158 bytes.
- build.rs finds the catalogs in the folder, so adding a language is
adding its .tsv. A catalog over 8 MiB, or one it can't read, stops the
build.
- A catalog that does not unpack to exactly its recorded length of UTF-8
is left out and logged, and its language is not offered.
- On the desktop the catalogs are unpacked on several threads.
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.
A smoothed polygon mesh drops its spline-frame vertices before building the
grid, so only groups 73 and 74 describe the vertices that are left. When those
counts did not fit, the importer fell back to the frame's M and N, and a frame
whose vertex count happened to match laid the surface vertices out on the
wrong grid. The mesh is now left out with the missing-vertices warning.
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.
Plain `vectorcraft-cli mcp` checked for the window with `has_ui`, which
turns a failed launch or handshake into "no window". A UI-only tool
(`inspect_ui`, `type_text`, `answer_dialog`, `open_panel`, a window
screenshot) then said it needs the open window, even when the window was
open and the connection to it was what failed. `Backend::ui` now returns
that error, and the UI-only tools report it.
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).
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.
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.
The URL and Note fields now take their edit target from
panels::selection_target instead of a copy of its key in attributes.rs.
The shared target also holds the selected symbol part, so selecting a
part of a symbol instance drops an unfinished URL or note: attributes.set
does not edit a selected part.
A value typed into a corner radius field and not yet entered stayed in
the field when the selection moved to other corners with the same
radius, so Enter applied the old expression to the new corners: "3+"
typed with one rectangle selected and "1" Enter after selecting another
gave the second rectangle 4 pt.
Each corner radius field now passes NumberField::edit_target a key for
what it edits: the document, its File › Revert and Undo or Redo counts,
the selected objects in id order and the corners the field sets. The
key covers the Properties panel's Corner Radius, the Control bar's
Corner Radius, the Corners pop-up's Radius, a live shape's Corner
Radius and the per-corner fields of a live rectangle. The same objects
selected in another order keep the value. Rounding a Direct-Selected
corner leaves the unrounded path as it was, so a scrub that rounds it
keeps going. The per-corner fields keep a value while only the
Direct-Selected anchors change, since they set a fixed corner of each
selected live rectangle.
A live rectangle's, polygon's or star's corners keep their order and are
keyed by index and corner count, so the value stays while the shape
moves, rotates or scales, and goes when a polygon gains a side. A
corner of any other path is keyed by its index and by its subpath:
where that subpath starts, whether it is closed, and its anchors and
handles measured from its first anchor. Moving the path, or reversing
or moving another subpath, keeps the value; reversing, rotating or
scaling the corner's own subpath drops it.
PickedCorners gains these corner keys beside its command items. The
corners a live shape's Corner Radius sets, and the selected live
rectangles the per-corner fields set, are measured once per document
revision.
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.