The gate's test-lint step flags an all() assertion with no length check in dashes_start_at_each_lines_base_point. The test now asserts the row at y 50 holds more than the four pieces it compares.
A pattern line's dash start is the sum of the base and the boundary's
center along the line and the whole counts of offsets, each reduced to
within half a period. Those reduced terms were added in plain floating
point, so a small term was rounded away before larger ones cancelled: a
family based and offset 2^54 along, with a dash 16 long in a period of
2^57, drew the line along the bottom of a unit square from x 0.5 instead
of x 0. The terms are now added with their rounding errors kept apart and
added back after the sum is reduced, for the dash start and for each
line's phase.
Palette windows hide while the main window shows a popup, and an open flyout
is one. A built-in workspace now opens its panel's flyout when it is
switched to, so a panel floated by a command in Essentials Classic (Color's
flyout) and the other workspaces that open one opened its window hidden, and
a_panel_floated_in_any_built_in_workspace_opens_a_shown_window failed on main.
The command that reveals a floating window now closes the open flyout.
Co-authored-by: FredApps <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Part of #10797.
On the OpenGL backend, Preferences and floating panels drew their content
offset down and right by a title bar and border, while clicks landed at the
unshifted positions. These windows draw their own title bar, so winit makes
them undecorated, but it still gives them the WS_CAPTION and WS_BORDER styles,
and on these systems the frame stays reserved for the window surface. The
guard added for #1758 removes the two styles from the main window only.
A viewport hook now records every undecorated window other than the main
one as eframe creates it, and runs the same guard on it at creation and
before each of its frames, so the styles stay off when winit puts them back.
Windows with the system title bar are left alone, and a window's record is
dropped with the window.
A pattern line's dash start is now taken from each term reduced to within
half a period before the terms are added: the base and the boundary's
center along the line, and each whole count of offsets, with the rounding
error of the count times the offset reduced on its own. Offset counts
that cancel (2^30 offsets each way, 2^30 along) no longer drop the
center's 50, and a base 1e19 along keeps its remainder of 4 in a period
of 6, so the dashes start at x 4 instead of x 0.
The elements that end the period before a span now take their ends from
the distances summed back from that period's end. A dash 1e16 long
before a gap no longer ends at its rounded start plus its length, which
drew a stroke into the gap.
A pattern family based far from the boundary lost the fraction of the
boundary's center: base minus center rounded to the base, so a family
based 1e19 away drew its lines through the center instead of at whole
offsets. The base and the center are now each measured from the line
through the origin before the offset count is taken.
Each pattern line is now measured from its point nearest the boundary's
center, with its dash start as a signed distance within one period. A
dash period far longer than the boundary (dashes 1e16 long) left the
line's origin about 2e16 away, where the span tolerance dropped every
span and the hatch drew nothing. The elements that end the period before
a span are measured back from that period's end, so a long period no
longer moves a dash's start.
- Pattern line spacings and dash periods are refused only when they are
below the precision of the boundary's coordinates, or when the lines and
dashes that actually cross the boundary exceed the per-hatch limits. Two
small areas far apart no longer refuse a fine pattern.
- A line family based far from the boundary is moved to the line nearest
it by whole offsets (and its dashes by whole periods), so its line
indices fit and each line keeps its dash phase.
- A dot that ends the period before a span's start is drawn on the span's
start.
- A pattern of dashes and dots is checked for every object and path point
it makes before either path is made, and charges nothing when it is
left out.
- A gradient hatch whose gradient reaches past the coordinate limit keeps
its gradient when its boundary is in range; a gradient that cannot be
placed becomes a solid fill.
- The dense-pattern warning and docs/mcp.md name the edge and work limits,
and docs/mcp.md says when island styles fall back to filling every loop.
- Tests check which loops each island style keeps and that a block's
boundary fallback takes each insert's linetype.
- Fixes the clippy cloned_ref_to_slice_refs error in the hatch tests.
- A pattern of dashes and dots puts the dots on a path of their own with
round caps, grouped with the dashes, which keep butt caps, so the dashes
no longer grow into their gaps.
- Pattern spans are dropped only when they have no length at the
precision of their own coordinates, and each boundary loop is flattened
to within its own size, so small loops far from the rest of a hatch keep
their pattern lines and their curves.
- The shift of a CURVED or INVCURVED gradient moves it up, as it moves
the other named gradients.
- A block whose pattern hatch draws its pattern no longer depends on the
insert's linetype, and filled art no longer depends on its lineweight
or linetype, so inserts that differ only in those share one symbol. A
pattern hatch drawn as its boundary still takes the insert's linetype.
- The dash clipping test crosses the boundary, and the inverse gradient
test checks the stop counts.
Every boundary loop of a hatch went into one even-odd area, which is
right for the normal island style (group 75 = 0) only. With the outer
style (1) the area inside an outermost loop and outside the islands
directly in it is hatched, and islands inside islands are not; with
the ignore style (2) only the outermost loops are, and islands leave no
holes. This applies to solid, gradient and pattern hatches.
A loop counts as inside another when its bounds lie within the other's,
its area is smaller, and most of up to 16 points taken just inside it
lie inside the other loop. Each loop is measured around its own center,
so loops far from the origin, or far from each other, keep their
precision. A hatch whose nesting test would take more than 10,000,000
steps is filled as if every loop were a boundary, with a warning.
With unchanged settings OK closes the dialog before the document, history and object checks run (crates/ui-egui/src/panels/three_d/raster.rs:147), so docs/mcp.md and docs/three-d.md now say the refusals apply when there are changes.
During an add-on dialog's preview, a command from outside the dialog no
longer acts on a path whose selected anchors the preview renumbered (Set
Corners recut it), so Clear does not delete other points of the base
path. A refused outside command leaves the dialog's own selection as it
was, while a command that ran, such as Deselect, still sets it. The
journal records the selection the command acts on before it, so an
action replays it on the same objects.
When a region's decoded data went past the size limit and its record had
no group 94, or a group 94 at or above the decoded length, the reader
kept the whole oversized buffer in the drawing until the import ended.
The region was still left out later, but its data stayed in memory. The
reader now checks the stored length after the declared-size cut and
drops the record when it is still over the limit. A declared size within
the limit still cuts the data and loads it.
Pattern hatches came in as their boundary outlines, and gradient hatches
were filled with their first color.
- A pattern hatch now draws its pattern lines (groups 53, 43 to 46 and
49): each family's lines clipped to the boundary (even-odd, as solid
hatches fill), cut into dashes and dots that start from each line's
base point, and stroked at the hatch's lineweight without its linetype.
Dots get round caps. A user-defined double hatch (group 77) with one
family gets the perpendicular family too.
- A gradient hatch (groups 450 to 470) is filled with a linear or radial
gradient at its angle across the boundary, in its two colors or one
color shaded or tinted (452, 462); the shift (461) moves the center up
and left. The named gradients map to linear and radial ones by
VectorCraft's own rule (hatch.rs). Gradient colors "by block" or "by
layer" on layer 0 resolve through the insert, and a block holding one
becomes a symbol per look.
- A pattern hatch without usable pattern lines, with more than 20,000
dashes, or past the drawing's budget of 2,000,000 dashes or
200,000,000 clipping steps still comes in as its boundary, with a
warning.
Docs: docs/mcp.md (DXF import), docs/file-format-parity.md (DXF row).
In the Flatpak build the save panel answers with a path in the document
portal, which puts only that exact name into the folder picked. Three
more save panels changed the answer before writing, so the write
succeeded inside the portal and no file appeared:
- Keyboard Shortcuts > Export Text added or replaced the extension of
the format picked (list became list.pdf).
- Save Metadata Template added .xmp to a name typed without it.
- Unembed added the stored image format's extension to a name typed
without one (links.unembed does this in the engine).
Each now opens the save panel again in the answer's folder, suggesting
the completed name, and the status bar says why. Its answer is written.
Paths outside the portal are unchanged. The check reuses the helper the
main Save and Export flows use, now shared as
io::save::portal_ask_again, and the engine exposes
links::unembed_path so the panel knows the name Unembed writes.
Open and Place read .jpe files in any letter case, but the dialogs' JPEG filter adds only the lowercase extension, and GTK matches filter patterns case-sensitively.
The corner radius test from #10864 expected Reverse Path Direction to leave
the Direct-Selected anchor index unchanged, so that the same index named a
different corner. Reverse Path Direction now moves the selection with its
points, so the picked anchor is the same corner at its reversed index, with
its sides swapped.
The test now checks both cases for each of its six paths: the picked anchor
follows its point and the unfinished radius is dropped, and picking the old
index again after the reversal names a different corner and drops the
radius. corner_radii reads every anchor, so an open path's end reads 0.
Typed RGB values convert from the RGB profile of the document the window
shows (or the working RGB profile) to the script document's RGB profile,
and separate through its CMYK profile only in a CMYK document. Hex,
screen-sample, HSB and web-snapped picks start in display sRGB.