Each line end of a curve drawn as lines moved out by the curve's whole gap
from the chords beside it, including the part along the chord. Where a
curve runs out and back along almost one line, that part points along the
curve, so the end moved past the turn: a cubic from (0, 0) out to x = 75
and back drew its band out to x = 112.5. The ends now move only across
their chords.
Hue and saturation jitter replaced a linked solid paint with an unlinked
one whenever the adjustment returned a color, even when rounding to f32
gave back the same components (a hue jitter of 1e-50 degrees, or a Lab
saturation jitter of 1e-6). recolor_paint now keeps the paint, and its
link, when the adjusted color equals the original. Follows #9929, which
added the same rule for Brightness Jitter.
The DXF and HP-GL writers set the expanded-object count to the 16,000,000
limit when one symbol instance was too large for what was left, so every
later instance was left out even when it fit. A rejected instance now
leaves the count unchanged, as the PDF and .ai editing writers do. Tests
preload the count per test instead of starting every export near the limit.
Follows #9751, which made the same change in the EPS, legacy .ai and
metafile writers.
The Copy button set a `copy` field before confirming, and a refusal turned
it off again. The dialog ends a refusal when its values change, so the
reasons "switch back to the document where Transform Each was opened",
"the document where Transform Each was opened has closed", "finish the
active edit before applying Transform Each" and the revert reason were
shown for no frame under the rows.
Copy is no longer a dialog field. The dialog records that the held OK came
from Copy and passes `copy: true` to `object.transformEach` for that
confirm only. A refused Copy leaves the values unchanged, so its reason
stays until a value changes, and the next plain OK does not copy. A press
of Copy while an OK is already waiting does not turn it into a copy.
These lists read the value their select proposed this pass, so an entry
highlighted with the arrow keys was applied before it was chosen, and
Escape left it applied. Each one now reads the committed entry:
- Bullets and Numbering's Alignment
- Character Style Options' Fill and Stroke
- the Composite Fonts parts table's Style
- the 3D (Classic) Map Art page's Symbol
- Find Font's Replace With Font From and Find In
Each list has a test that highlights an entry with the arrow keys,
checks that nothing changed, presses Escape and checks again, and then
chooses an entry with Enter.
The tool rail built every slot again in every frame: a command and a
caption for each tool, and a walk of the tool catalog for each slot's
id. It now keeps the tool groups its slots came from and builds the
slots again only when those groups or the UI language change. Slot ids
come from a table built once.
The Properties panel listed its Quick Actions in every frame, which
checks several commands and walks the selection. The list is now kept
with a key made of the menus' state, the document and its revision, the
tool and isolation mode, and is listed again only when the key changes.
Frame benchmark (1920x1080 at 2x, 400 objects, median UI-thread time of
300 frames): idle 5.64 ms to 5.51 ms, 400 objects selected 17.75 ms to
16.46 ms; allocations per frame 13,439 to 13,121 idle and 70,090 to
68,169 selected. The tests count the slots built and the Quick Actions
lists made per frame.
stroke.set names its appearance item through item_target_at as the paint commands do. The test
fails without the change to item_target_at: stroke.set with `target: "content"` and an `id`
answered {objects: 1}.
The canvas measured the art and artboards of the whole document in every
pass to size its view target, so a frame cost grew with the object count.
view_target now reads content_bounds_of, which keeps one measure per open
document and measures again only when that document's revision moves.
The status bar's Zoom field, Rotation menu and artboard navigator now show
in a MemoView keyed on the view, the artboard, the document revision and
the language, so idle frames replay them instead of laying them out.
#8099 added five @msg rows to id.tsv (the opacity messages for
paint.setFill and paint.setStroke) that the catalog already had at lines
487 to 491, so main's gate failed on
i18n::tests::bundled_catalogs_are_consistent with "defined twice (same
context and source text)". The second copy is removed; the first copy
is kept.
item_target now reads `target` with `ids` or `id` too, so the comment above the early read in
apply_paint_opacity names only the case it still covers: selected characters take the paint before
item_target runs.
tests::script_window::controls_are_drawn_at_the_size_the_script_gave_them took the first text
input in the accessibility update. The field exposes two, the field itself, named Text and
200 points wide, and the editor inside its 6-point padding, 188 points wide, and egui lists the
update's nodes in hash-map order, which other widgets in the frame change. After #9255 merged, the
editor came first and the test failed although the field is drawn at its preferred width. The test
now looks the field up by its name.
ui.colorWheel answers contrast, contrastFor and contrastBackground since #7718, and the test
#8099 added still expected the keys from before it. The test now sets contrast and contrastFor,
checks that a null keeps each of them, and expects contrastBackground, whose null unpins the
background.
#8099 added five @msg rows to id.tsv that #7642 had already added, so
i18n::tests::bundled_catalogs_are_consistent failed on the repeated definitions. The later copies
are removed; the rows #7642 added stay.
item_target_at read `target` only when no `ids` or `id` was given, so paint.setFill and
paint.setStroke with an `id` and a target such as "content" painted the object instead of
refusing it, and tests::paintopacity::a_bad_target_is_refused_with_an_id_or_selected_characters
(added in #8099) failed. item_target_at now reads `target` first, for every command that names
its item through it, and the selected-part path no longer needs its own early read.
#9970 fixed the 3D dialogs' OK on main by ending the running preview before the values run again.
This takes out this branch's earlier fix (LivePreview::rerun_next) so the two do not overlap.
Turning the Bleed link on sets all four sides to Top's bleed, as the
linked fields did before the row was rebuilt. A drag on a side's name
scrubs its field again.
The Fold Lines panel's Fold Angle field ran addon.packaging.setFoldAngle
with each value as it was typed, so Escape left the typed angle on the
selected lines. The field's edits now run in one undo scope
(EditPath::Scope, as the Parametric Shape panel does): Enter keeps the
angle as one undo step, and Escape restores the lines and leaves no
undo step.
#9945 placed every frame drawn by reproject_frame on whole device pixels.
That also moved the cached frame shown while the canvas is panned,
zoomed, resized or moved to another display by up to half a device pixel,
so it no longer sat where the document maps it, and main's gate failed on
canvas::tests::cached_frames_keep_their_scale_during_resize_rotation_and_dpi_changes.
A frame now snaps only when it was rendered for the current center, zoom,
canvas size and pixel density. A frame reprojected while the view changes
keeps its exact document mapping until the replacement arrives, and steady
frames stay sharp as #9945 intended.
Strokes narrower than four raster tolerances had their outline fitted and
flattened at a tolerance as fine as 1/16 of the raster tolerance, so each
side of a thin curve took about four times the lines a wider stroke takes,
and every frame drew them all. A plain thin stroke (no dashes, no width
profile) along a path with curves is now drawn as lines first, within a
sixth of its width of the curve, and each side of each line is offset by
exactly half the width. The band keeps its width, the outline takes one
line per side for each line of the path. Where two lines meet at a small
angle both sides go to where their offsets cross; sharper corners get the
stroke's join, open ends its caps, and a closed path keeps its hole. Dashed
and profiled thin strokes, and thin strokes along straight paths, are
unchanged.
On 200 cubic curves about 100 device pixels across, a 0.5 px stroke's
outline goes from 15,559 lines to 7,514 (4,288 before #3273).