Since #8549 the glyphs of lines finished past MAX_PARKED were kept
until the next stroke and, past 4096 of them, matched every stroke.
A `2 Tr` word after a dense page of filled-only type then came in as a
filled object and a stroked one.
- flush_text forgets them: nothing is drawn between an operator's fill
pass and its stroke pass. end_text keeps them, since it also runs
mid fill pass for a glyph kept as an outline.
- LostFills keeps the first 4096 glyphs and matches only those; there
is no overflow that matches every stroke.
- replayed counts the lines its `left` check looks at toward
MAX_REPLAY_WORK.
* .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>
Conflicts in docs only (status lines, changelog rows and table rows):
main's entries and this branch's are both kept, each once. Main now has
this branch's first File formats row fix (#868) itself.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An action in the saved preferences whose `automaticAlignTo` was null or
not a boolean made the whole preferences file fail to load. The field
now reads such a value as false, as `key` and `color` read a value they
do not accept as none, and the other preferences load as before.
stroke.weightUp and stroke.weightDown now go through bucket_color_params and
item_target, as stroke.set and stroke.setAdvanced do, instead of skipping
item_target while the Live Paint Bucket is active. Each command still
refuses `target` and `aligned` with any tool, since neither is one of its
parameters.
- live_paint_bucket_refuses_a_bad_target_or_aligned (renamed from
live_paint_bucket_refuses_a_bad_target) runs with the Selection tool and
with the bucket, and adds stroke.set, stroke.weightUp, stroke.weightDown,
paint.swap and paint.default.
- live_paint_bucket_paint_and_stroke_commands_leave_the_selection_unpainted
adds stroke.set with `ids: null` and stroke.weightUp with `id: null`.
- The params text of the bucket-routed commands says a null ids or id
counts as none.
- docs/mcp.md names gradient.presets.apply next to paint.editGradient for a
picked symbol part, lists when a stop selected on the bucket's gradient is
deselected, and rewraps the two long lines.
docs/mcp.md now says that `automaticAlignTo` changes only `object.align`
steps, and that `object.distribute` and `object.distributeSpacing` steps
play with the `to` they were recorded with. The edited paragraphs are
rewrapped to the width of the rest of the file.
An inactive document tab shows the document's name, the view number and
the unsaved-changes mark, without the zoom and the mode in parentheses
(the color mode and view, or the opacity mask being edited). The active
tab keeps its whole title, and an inactive tab's tooltip shows the whole
title. In a 1000 pt window with twelve short-named documents, 7 tabs fit
whole instead of 3.
Tests that found tabs by the " @ " of their titles now find them by the
document's name, and the overflow tests use longer names so that a tab
still overflows. Tests that drag back to a tab read its place again
after another tab becomes current, since the current tab is wider, and
one of them checks that the pointer stays over the tab it switched to.
The drag along the strip in the tear-off test stays short of the next
tab's middle, and the reorder test checks that a long drag along the
strip floats no document.
The workspace switcher on the app bar lists the built-in workspaces,
every saved workspace and three commands. With many saved workspaces
the menu was taller than the window, and its last rows (the Reset, New
Workspace… and Manage Workspaces… commands) ran off the bottom of the
screen.
The menu now stops above the window's bottom edge and scrolls, as the
Window menu does.
object.align takes to: "auto", which aligns to the key object, key
anchor or key guide when the selection has one, else to the artboard
when exactly one object is selected and no anchor points are, else to
the selection.
New Action and Action Options have Choose Align To at playback
(automaticAlignTo on ui.action.new and ui.action.options), off by
default. With it on, playback sends to: "auto" for each object.align
step, without any artboard index the step stores, so the step uses the
active artboard; the stored steps keep their recorded params. Save
Actions writes the option, and a set that uses it is saved as file
version 7.
The dialog's strings have rows in every catalog, and docs/mcp.md
describes to: "auto", automaticAlignTo and file version 7.
Fixes#6972. Supersedes #7635.
Co-authored-by: yoriswind <yoriswind@yahoo.com>
- While the Live Paint Bucket is active, a paint or stroke command with
a null ids or id goes to the bucket's colors, as one without them does.
Before, it painted the selection, since other commands read a null ids
or id as no target.
- A bad target or aligned value is refused while the bucket is active,
as it is with any other tool, instead of changing the bucket's colors.
- stroke.weightUp and stroke.weightDown no longer read the selection's
active Appearance row while the bucket takes the weight, as stroke.set
and stroke.setAdvanced already do. The row was not used in that case.
- The params text of gradient.selectStop says that, while the bucket is
active, it selects a stop of the default paint's gradient, also with an
object of a symbol instance picked. docs/mcp.md says the same, and that
paint.editGradient without ids, id or item then changes the bucket's
gradient.
- docs/mcp.md again says that another tool chosen after the bucket keeps
its colors until a command or a new selection changes them.
* 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
Both glyph grids give their list a least height of 64 pt when the panel
leaves less room. The column count compared the rows with the room
left, so with 48 pt left two rows of twelve 22 pt cells, which fit in
the 64 pt list, made room for a bar, and the grid went to eleven
columns and a third row that scrolled. The count now uses the list's
height as drawn.
- A drop-down list that draws its own rows (blend modes, warp styles,
tracing presets) has no current option for the list to show. It
opened at its first row since the change that opens option lists at
their current option. It now opens where it was scrolled when it
closed, as before that change, and the scroll is put back after the
list takes its height beside the field: the list is taller on the pass
it opens, and the scroll was clamped to that height.
- When several options have the current name, the list scrolls to the
first of them.
- The Color Picker's heading set the dialog to the width of its content
without the scroll bar's column, and the body then left out that
column a second time. In a window 448 pt wide and 380 pt tall the
heading measured the columns side by side while the body stacked
them. The heading now keeps the column in the width.
- The Glyphs panel counts a row of its two smallest cell sizes at the
height it is drawn, a button's height, so a grid whose rows run past
the list leaves room for the bar.
Once a shape has used its 1,048,576 splits at any depth, Add Bounding Circle
still splits each further curve into up to 8 pieces, from a second budget of
7,340,032 splits shared among the shapes as the first one is. Only after
both are used up does a curve count whole by its control points' hull cut
down to its bounding box. Before, every curve past the first budget counted
whole, which can make the circle around a circle about 14% larger; with the
8 pieces the fit stays less than 0.3% larger.
- The comment on the shared budget no longer claims that the shape around
one object is independent of the other objects selected.
- shapes::enclosing_circle and convex_hull move below the star helpers.
- The "Each" label mapping in the dialog form sits after "Flip Cols".
- docs/mcp.md and docs/target-app-parity.md describe both budgets and the
size of the fit before the 0.01 pt is added.
egui rounds a wrap width to the nearest point, so a shortened title laid
out for 66.5 pt could come out 67 pt wide, and the tab then hid it as
too wide for its room. The width is now rounded down before the title
is laid out. A new test lays the title out at every quarter point from
the width of "…" to 200 pt and checks that each one fits.
With a leading tab, the tabs after it fit whole by construction, but
each one's room was the strip's width less a running sum of the widths
before it. That sum can come out a fraction of a point short of a tab's
width, which shortened the active tab's title though it fits. The tabs
after the leading tab now take their whole widths. `leading_tab` and
the new `tab_room` have unit tests, and the frame test's doc comment
now says that the strip used to end short of the » button.
A diamond gradient whose vector has no length has no inside, and the
renderer draws it with its color at 1 everywhere. With two stops at 1,
that is the first of them, which ends the stretch before it. The EPS
writer painted the last stop instead, so such a diamond came out in the
other color, and on a PostScript plate an overprinting one whose last
stop is paper white knocked out the ink below at Level 3. The writer now
paints the color at 1, and on a plate leaves the ink below when that color
is paper white, at both levels.
an_overprinting_gradient_with_a_hard_stop_at_an_end_keeps_the_ink_below_on_a_postscript_plate
compared each PostScript plate with the PostScript plate of the gradient
alone, so a writer that dropped the gradient from both still passed. It
now also reads the plates at fixed points (halfway along the vector, before
its start for the linear gradient, and past its end) and checks that the
gradient's own cyan prints there, alone and over the cyan below, where the
level's painter puts some down, and that the cyan below prints elsewhere.
shift_or_alt_let_go_after_the_release_in_the_same_frame_still_counts
checked only that the rectangle stayed ordinary art, which also holds when
the click does nothing. It now checks that New Symbol (button and menu)
makes the symbol and that Redefine Symbol changes Dot's art.
While the Live Paint Bucket is the active tool:
- each preview in one interaction starts from the colors the
interaction began with, so previewing paint.swap twice and committing
swaps once;
- a gradient stop selected on the selection's gradient is not selected,
and one selected on the bucket's gradient is not selected after
another tool is chosen;
- gradient.selectStop selects a stop of the bucket's gradient even
with an object of a symbol instance picked;
- gradient.presets.apply picks the fill or stroke by the active proxy,
not by the selection's active Appearance row;
- stroke.set and stroke.setAdvanced no longer read the selection's
Appearance row;
- the Stroke panel's Align Stroke buttons are on, as with nothing
selected, matching stroke.set, which takes every alignment.
The params text of paint.sampleColor, gradient.presets.apply,
stroke.set, stroke.weightUp and stroke.setAdvanced, the set_paint note
and the Live Paint paragraph of docs/mcp.md now describe this, and say
that the bucket takes only the color and weight of the stroke for new
art.
When the active tab was one of the last documents, the strip showed the
tabs from it to the end and left the room before them empty. The tab
before them now fills that room with its title shortened, as the tab
after the whole ones does. The tab strip takes each tab's window and
title from one list, so a docked window without a document no longer
shifts which tab is drawn as the active one. The tests check that 3
tabs fit whole and a fourth is shortened in a window 1000 pt wide.
- view.proofSetup.list lists only files named <name>.vcproof whose name
`name` takes unchanged, sorted by that name before the 100 limit.
An entry that can't be read or whose file name is not valid Unicode
sets `truncated`, and a folder that can't be read is an error instead
of an empty listing.
- ui.inspect leaves out the path of a saved setup picked in an open
Insert Menu Item dialog when it is outside the read root.
- The listing Save… starts asks for a frame when it ends, so an idle
window shows the new setup.
- Load…'s picker starts in its own default folder until a save has made
the Proof Setups folder.
- The command help, docs/mcp.md and the progress line say the buttons
and the saved setups are desktop only.
- 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.
Rows dragged to the trash before isolation mode started went to
layer.delete at once when none needed a question. ui.layerDelete now
returns an error for any row outside the isolated art, given or dropped,
and deletes nothing. OK in its question with no rows given deletes the
highlighted rows the panel lists, not every highlighted row.