* fix(effects): draw dark dots in RGB Color Halftone
(cherry picked from commit 2dbe91af9f)
* Cover dark-on-light RGB halftone polarity
Updated halftone tests to clarify behavior regarding pixel brightness and dot sizes.
(cherry picked from commit babd60e332)
* effects: bound Color Halftone dots at full coverage
(cherry picked from commit 8fb0bf55607762df6e3acc2ed7ed37a643fea022)
* effects: describe Color Halftone ink coverage
(cherry picked from commit 0dbf12514095b6e12cb4414055d8ac47ee1fbcdc)
* Document the change to saved RGB halftones
* Test the bounded edge overlap of full halftone dots
---------
Co-authored-by: Mex <44814932+MMexicann@users.noreply.github.com>
Co-authored-by: dotCooCoo <RobertLeeLW@gmail.com>
#8770 renamed the chrome test helper Shown::starting to app_bar_control,
which looks only in the window's title bar because the Tools panel can
hold a control with the same name. The test
the_app_bar_home_is_small_and_menu_titles_pad_their_text came in with
2030c7b2d2 while #8770 was open and still called starting, so
vectorcraft-ui-egui's tests no longer compile on main (E0599 at
chrome/tests.rs:573). The test now calls app_bar_control("Home").
* Tools: add search beside Edit Toolbar
Open the existing tool-aware command palette from the Tools footer, preserving the customization button and fitting both column layouts.
Closes#8758.
* Format the toolbar Search interaction regressions
* Format the native Search tooltip expectation
* Use the current stroke paint API in Properties
* Scope app-bar test lookups to the title bar
---------
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
The composite import test now checks the H's top and bottom as well as its
width and height, so a shift of the drawn glyph fails it. The mesh export test
samples each patch's center, so swapped column fills fail it.
The test called Entropy::seeded directly, so it still passed if export
stopped reading the OS random source. Entropy::new now reads the OS
bytes and the time through seed_sources(), which a test can set for
its thread, and the test runs protect with fixed OS bytes, other OS
bytes and a failed OS read. The OS read in vectorcraft-js's os_random()
is now one function for tests and builds alike.
ui.menuDialog opens the Group by Row dialog, so its params text and the
MCP UI catalog name addon.arrange.groupRows with the other Arrange Tools
dialogs.
The PDF, EPS, SVG mesh, metafile hatch and distorted-image tests now
assert the values the input gives: the Letter page a page without area
falls back to, the H glyph's box from its font metrics, the middle gray
of each mesh piece, the 8 of 64 hatch pixels, and the bounds of the
placement taken at the image's center.
Realm::with_os_random made a realm and then replaced its seed, so the
test still passed if Interp::new stopped seeding from the OS random
source. The OS read now goes through os_random(), which a test can set
for the realms made on its thread, and with_os_random builds its realm
with Realm::new. The test fails when Interp::new uses a fixed seed.
the_menu_family_list_now_does_not_wait_for_the_scan holds the font scan
at a named pipe and released it with one blocking open for writing. That
open waits for any reader and lets go only the readers already waiting.
When the scan reached the pipe after the release, or ran on the test's
own thread because its background thread did not start, nothing opened
the pipe again and the test waited until the job timed out (a gate shard
on pull request 10368 ran for over two hours).
The release thread now opens the pipe for reading and writing, which
does not wait for a reader, and repeats that until the scan has ended.
The thread is joined after the list that waits for the scan.
reads_of counts reads by buffer address and never forgets them, so a buffer
allocated where another test's freed buffer was read starts with that count.
linked_pages_read_the_file_once_and_a_blank_page_keeps_its_crop_box asserted
reads_of(&blob) == 0 and failed once that way under 16 test threads.
Each read now gets a sequence number. read_mark returns the next one and
reads_of_since counts only the reads at or after a mark. The linked-pages test
takes a mark before opening the file.
The recolor adjustment test read test.af from the repository root and
returned early when the file was absent, so it never ran in CI. It now
builds a magenta rectangle with an attached Recolor adjustment in the
test and checks that lightness 1 imports as a white fill, that
lightness 0.5 at hue 0 draws pure red, and that a hidden adjustment
leaves the fill unchanged.
A hex string broken by a byte that is neither a hex digit nor white space
is no string: the hostile-input scan goes on from the next byte, so a
cross-reference stream after it is still read. A font a PDF carries with
restricted license flags (OS/2 fsType 0x0002) keeps drawing its type, and
a PDF saved from the document draws that type as outlines with the license
warning instead of embedding the font again.
A corner in one subpath gave the stroke's join to the lines of a curve
in another subpath that met at the same point, so a miter could be
drawn there instead of a round join. The corners are now kept per
subpath and each subpath of the outline reads only its own.
Test: a curve's outline is the same with and without a second subpath
that has a corner at the curve's start.
The PDF encryption and Math.random seed tests read their source files
and searched for names. They now build the seed from given OS bytes:
equal bytes give an equal stream, other bytes give another stream, and
a failed OS read is an error for the PDF key. Mixing any other source
into either seed fails the tests.
The PDF seed is split into Entropy::seeded, which takes the OS bytes
and the time, and the module doc now names the OS random source.
quadrant() had local closures that repeated ellipse_arc() and segment().
It now calls those helpers, as elliptical_quadrant() does. The geometry
is unchanged.
Alt is a tool modifier, and pressing and releasing it without a click
moved the keys to the menu bar on Windows and Linux. The next tool
letter then opened the menu with that access key (V opened View, W
Window, T Type) instead of choosing the tool. While the canvas has the
keys, the canvas now takes the lone Alt tap. F10 and Alt with a letter
still open the menus, and a lone Alt in a field or on the bar is
unchanged.
Since #9972 a thin stroke along a curve is drawn as lines, and where two
of those lines met at a sharp angle the stroke's own join was drawn
there. Along smooth anchors that sit close together after a bend, or a
curve that bends tightly, the lines turn sharply, so a miter join drew a
spike past the stroke and the smooth curve showed sharp corners on the
canvas. The document's anchors are unchanged; only the drawing was
wrong.
The stroke's join is now drawn only at the path's own corners, where
two segments meet with tangents that are not in line. Where the lines a
curve is drawn with turn sharply they meet with a round join, as the
stroke along the curve itself is round there.
Tests: a bend followed by smooth anchors 0.1 and 1 apart keeps every
outline point within the stroke's width of the curve and covers it;
with long handles the outline matches the curve's own outline away
from its edge; 200 random cubics with a miter join keep their outline
within the stroke's width of the curve.
listed_applied_edited_and_undone checks five representative catalog entries and an unknown effect id instead of every raster effect, and applies out-of-range parameters to Radial Blur and Unsharp Mask. Every effect is still drawn by each_effect_changes_the_canvas_and_draws_the_same_twice.
When the sweep cuts the paths into more than SHAPE_BUILDER_MAX_MAP_EDGES
pieces, the Shape Builder falls back to the regions of the filled areas,
which are capped separately. The docs said it then finds no regions.
Below 50% the Elliptical dot was an ellipse clipped to the cell's
diamond, so from 40% horizontal neighbors met at a single point and at
50% the dot reached the vertical neighbors too. The dot is now an
ellipse as wide as its cell at 40%; past that it is clipped to the
cell's side, which makes a bridge to the next dot, and to a middle-tone
cut line through the quadrant's center, which keeps the short side
apart until 60%. Areas still match the tone.