The begin hook marked a pass as stirred for every PointerMoved event, so a canvas tool host re-hovered a still pointer, with a full hit test, on every pass that repeated the pointer's position. A move now stirs the pass only when it goes to a new position or carries a pen or touch reading. The last move's position is kept per viewport and cleared when the pointer leaves the window.
A wrapping SpaceBetween row spread its children over its room whenever they
fit one line, even when that line also held a direct egui allocation. The
spread started at the row's start edge, so a child covered the allocation.
The row now spreads only when its content is no wider than its children with
the gap between them; otherwise it keeps the wrapping placement.
* sensing: an owner's parts read their press without a search of its last-pass parts for each one
part_press_in searched the owner's parts of the last pass for every part it
read, so an owner with n parts did n searches of n entries in each pass. It
now searches only for a part that a hit of the pass names: the press target,
a hovered shape or the aside press.
The new trial counts the searches over 3 idle frames of a 400-part root: 1200
before, at most 9 after, and the hovered part still reads hover.
* sensing: count part lookups per viewport instead of in a thread_local
The lookup counter for the many-parts test now lives in the viewport's
arenas behind the testing feature, and known_part_lookups takes the
context, so contract/no-global-state has no thread_local in sensing.rs.
Lands #3916 onto main after #3909 and #3914. The only change from the
approved head is the merge resolution in tests/it/find_dialog.rs: all
three PRs appended a test at the end of the file, and all are kept.
Co-Authored-By: batistalucasv <175663788+batistalucasv@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lands #3914 onto main after #3909. The only change from the approved
head is the merge resolution in tests/it/find_dialog.rs: both PRs
appended a test at the end of the file, and both tests are kept.
Co-Authored-By: batistalucasv <175663788+batistalucasv@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Validate Operation.icon length/characters in validate_canvas, cap laser power
to 0..=100, reject negative tab offsets, and avoid duplicate error prefixes.
- Fix stale operation/layer doc comments, target shapes[0] directly in the
minimal text test, and add format-crate round-trip coverage for operations.
`many_unmatched_lt_is_fast` asserted that a parse of 256,000 `<` and one
`>` took under 2 s, and `unclosed_angle_brackets_are_escaped_in_one_pass`
asserted under 5 s for 200,000 `<`. On a loaded machine the first took
2.01 s and failed, and 0.10 s when run again.
The TTML writer's tag parser now reads the caption text through a small
`Reader` type in a child module of `ttml.rs`. Its only accessors are
`byte(index)` and `suffix(start)`, an iterator that reads each byte
through `byte`. In test builds `byte` counts its calls. `parse_tag` and
`QuoteCache::next` take a `Reader` in place of a `&[u8]`, and the tag
name is built from the bytes as they are read. Parsing behavior and
output do not change.
The two unit tests write each text at 50,000 and 100,000 characters and
assert at most three byte reads per character of text, and that twice
the text costs less than three times as many reads. With a search for
`>` after every `<` put back in `parse_tag` through `suffix` or through
repeated `byte` calls, both fail at the first assertion: 5,000,050,000
byte reads in a text of 100,000, and 5,000,250,000 in a text of 100,001.
The same search written against the slice (`bytes.get(i..)`) does not
compile, because `Reader` has no `get` method and its field is private.
The count covers only reads through `Reader`. `inline` still holds the
caption text as a `&str`, and a search over it is not counted: with
`rest[1..].find('>')` added to the check for `<` in `inline`,
`many_unmatched_angle_brackets_before_one_gt_are_read_once` passes. A
change that hands the parser the raw slice again, through a new accessor
or parameter, is not counted either.
The integration test keeps its output check as `many_unmatched_lt_stay_text`.
An owner that shows a component through PaintUi::inner offered its own owner a
Folded record built only from its own enabled state and its text part, so an
inner component's disabled state stopped one level up. With two inner levels
over a disabled text part, the outermost node stayed enabled and a request that
acts on it reached the intermediate component. The record now also carries the
disabled state the owner received from its own inner component.
The owner's node stands for an inner component's focus stop and sends the
requests it receives to that component. Its routing entry was disabled
only with the owner, so ReplaceSelectedText or SetValue on an enabled
owner still reached an inner field whose text part was disabled. The
inner component now tells the owner's report whether it, or its text
part, is disabled, and the owner's entry is disabled with it.
A wrapping SpaceBetween row counted only its craft children when deciding whether its content fits one line. A direct egui allocation that wrapped onto a second line left the count unchanged, so the real run spread the row and the allocation ran past the row's end edge. The row now also compares how far its content reaches below its top with its tallest child.
When the row spreads its children on one line, its measuring run now reports the line they sit on as the row's first line, as an unwrapped row does, instead of the first child's own first line. A parent row then places the spread children on its own line.