* .ai import: blank area type keeps its frame, blank point type quiet
A text object whose story is blank (nothing but spaces and line ends)
was never made (`Story::node`), so its slot
was left empty and counted in the note "text objects on hidden layers
or hidden objects couldn't be read", shown or not.
A slot of a blank story that neither the text document nor the page
fills is now settled after the page is matched, so the page's type
still takes it where the page has some for it alone:
- Blank area type and type on a path come in as a text object that
keeps its frame or path and draws nothing (`Story::blank_frame_node`),
as VectorCraft's Type tool keeps an empty frame (#85, #154). That
covers a frame the page's spare type went past (`Merged`) too. It is
kept without being weighed against the page, and so are the later
frames of its thread.
- Blank point type draws nothing and has nothing to keep, so it is left
out without a note, as the Type tool discards empty point type.
- A blank slot takes the page's type left over only when no other open
slot can (`readable_first`), so it no longer takes another object's
type by painting order.
- A blank story's thread isn't held against an unread object that takes
one of its frames, and a thread lists only the frames still there.
Its frames are still threaded type to warps and envelopes, which
never take the place of such a frame.
The note for text objects still left out no longer says they are
hidden: "text objects whose type couldn't be read from the file's text
document or its page are left out".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* .ai import: a blank frame an unread object leaves alone isn't threaded type
When an unread object takes one frame of a blank story's two-frame
thread with it, the other frame is no longer threaded in the document,
but warps and envelopes still treated it as threaded type and so never
weighed it against its look. They now get the frames of the threads
actually kept.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Test: the lone blank frame in a warp comes in as its look, no text left
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* SVG export: preserve document unit in viewBox and width/height (#864)
When exporting SVG documents with physical units (mm, cm, in, pc), emit
the physical unit suffix on the root <svg width=... height=...>
attributes while keeping viewBox numbers and inner coordinates in 1:1 points
per SVG 1.1 coords §7.10. This avoids the 75% scaling mismatch when opening
drawings in external tools such as Inkscape or LightBurn, and preserves
the document unit setting across save/open round trips. Unitless documents
(points, pixels) continue to emit unitless dimensions.
Tested via export_physical_units_writes_unit_suffixes in vectorcraft-svg
and full round-trip svg_round_trip_preserves_document_units in vectorcraft-engine.
Ran cargo xtask ci (fmt, clippy, tests, xtask gates).
* SVG export: preserve nonzero width and viewBox on extreme small dimensions
- Export Selection to HP-GL checks the selection and starts Pen Table
from its pens, as the export writes it, and `exportSelection` is no
longer remembered for the next whole-document export.
- Pen Table with options or an artboard choice the export refuses keeps
One Pen per Color and shows the error, instead of starting from one
black pen that corrected options would keep. `automatic_pens` returns
that error.
- `automatic_pens` refuses `rect`, as `check` and the export do.
- A save panel shown in line that is canceled keeps the dialog open,
and a canceled save panel keeps the options remembered before.
Each complete catalog's PSD messages must now keep the same set of numbers (a 3
that becomes 13 fails), show the translated reason inside the slice and layer
warnings, and show the translated Open heading with the right note count.
The Bristle tip outline reads the five pen controls and leaves the
wheel unused. The bristle tip test's pen pose gives no wheel, and the
eraser test's mode error lists `stylusWheel`.
The Sizer's and the Sprayer's Average compare each instance's size on the page, so a set that
holds instances of different symbols meets at their mean drawn size. A symbol without a recorded
size is measured by its art, once per command. With Size: Average and no instance under the brush,
a sprayed instance has its symbol's own size whatever `scale` is, and new instances are spaced by
the size they are placed at. With Use Pressure Pen, a drag sample at the same position is kept when
the pressure changes by 0.05 or more.
Narrowing a scope that already carried two composed gates replaced the earlier gate's chain with the new gate, so a path only that earlier gate refused could be read. The new gate is now added at the end of the chain.
Switching away from the Selection tool while dragging a mirror axis or a
grid or radial repeat's handles left the drag's preview open under the
next tool. The Selection tool now cancels these drags on a tool switch,
as Escape already did, so the repeat goes back to its options from
before the press. A press that has not changed anything leaves no undo
step.
The deactivate doc comment now lists these drags and the Image Trace
divider.
- A scope narrowed to the confirming caller keeps the script gates of both,
and reads are exempt from them only where both scopes exempt them.
- A file read off the UI thread does the rest of its read after its profile
answer (linked files and type) off the UI thread too; an open a caller
asked for by path still finishes before OK returns.
With Show Center on, a press on a selected Image Trace object's center
point where the Split view's divider crosses it moved the divider
instead of the object. The divider now leaves a press on a shown center
point to the Selection tool, as it already did for the bounding-box
handles.
- When any solid's mapped art passes the shared limits, every solid in
the effect draws without its mapped art, so Invisible Geometry hides
all of them or none.
- A revolved group lists its surfaces with the members' shared curve
sampling, and an extruded group lists none past the faces of one
object.
- Commands refuse art on walls, bevels and Revolve's side whose curves,
cut into straight pieces at the map's scale and placed about the
surface's center, pass 400,000 points. Caps are not counted.
- Each contour's bounds test counts as a cut, in Map Art and in the side
graphics.
- On a facet whose curved edge bows out of its cell, the art reaches the
whole facet.
- A bevel as deep as the solid leaves no walls, and its bevels take the
numbers after the caps.
- Surfaces past the face limit are refused as the side is.
- threeD.mapArt keeps a deleted symbol only while the request leaves
`symbol` out.
Switching away from the Selection tool while dragging the Split view's
divider left the drag's interaction open with its preview in the
document. The Selection tool now cancels the drag on deactivate, as
Escape does, as it already did for the corner, pie, side and blend
widgets.