Commit Graph
26477 Commits
Author SHA1 Message Date
dotCooCoo 53eb048dc9 Tests: check the hatch dash row's length before its all() assertion
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.
2026-12-05 05:47:54 -08:00
dotCooCoo cc1749993d Merge main into fix/dxf-hatch-pattern-gradient 2026-12-05 02:20:05 -08:00
dotCooCoo f651cf6d1b DXF/DWG import: dash phases keep small terms when large ones cancel
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.
2026-12-05 02:20:05 -08:00
5ee0ebc7be Panels: a floating window revealed with a flyout open shows (#10934)
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]>
2026-12-05 11:09:44 +01:00
.CooCoo db70c0ce11 Merge pull request #10932 from dotCooCoo/fix/gl-frame-offset-secondary-windows
Windows: floating panels and dialogs draw where the pointer is on OpenGL
2026-12-05 01:38:07 -08:00
dotCooCoo 6996cc7878 Windows: floating panels and dialogs draw where the pointer is on OpenGL
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.
2026-12-05 01:13:36 -08:00
dotCooCoo 323aa1d56f DXF/DWG import: dash phases keep their remainders; long dashes keep their ends
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.
2026-12-05 01:04:57 -08:00
dotCooCoo 28776f1903 DXF/DWG import: far pattern bases keep their phase; long dash periods draw
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.
2026-12-05 00:25:31 -08:00
dotCooCoo 3b4530af42 DXF/DWG import: close pattern lines far apart draw; far gradients keep their fill
- 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.
2026-12-04 23:43:37 -08:00
dotCooCoo db476ae168 DXF/DWG import: hatch dots keep dashes' lengths; short spans and shifted curved gradients draw
- 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.
2026-12-04 22:58:04 -08:00
dotCooCoo 8070fc5b7f Merge main into fix/dxf-hatch-pattern-gradient
# Conflicts:
#	crates/cad/src/import.rs
#	crates/cad/src/import/entity.rs
#	docs/file-format-parity.md
2026-12-04 22:42:46 -08:00
.CooCoo f10dd40cb4 Merge pull request #10537 from dotCooCoo/fix/artboard-seam-zero-spacing
Artboards: touching artboards cast no shadow on each other
2026-12-04 22:38:25 -08:00
.CooCoo 65d61c56db Merge pull request #10133 from dotCooCoo/feat/font-sheet
Type Tools: Create Font Sheet sets a sample text in every font, labeled
2026-12-04 22:36:34 -08:00
.CooCoo a15bd42649 Merge pull request #10834 from dotCooCoo/fix/remove-all-image-frame-clip
Scripts: pathItems.removeAll keeps a clipping path that still holds an image
2026-12-04 22:30:41 -08:00
.CooCoo 4ca2c350d3 Merge pull request #10876 from dotCooCoo/fix/jpe-jpeg-extension
File formats: JPEG files named .jpe open and place
2026-12-04 22:29:22 -08:00
.CooCoo 1e39f80ee2 Merge pull request #10879 from dotCooCoo/fix/reverse-path-keeps-anchor-selection
Paths: Reverse Path Direction keeps the same anchors direct-selected
2026-12-04 22:28:51 -08:00
.CooCoo 5ba94c7509 Merge pull request #10882 from dotCooCoo/fix/raster-settings-opened-objects
3D: Raster Settings OK sets the objects the dialog opened on
2026-12-04 22:28:20 -08:00
.CooCoo 4a7fe04e81 Merge pull request #10888 from dotCooCoo/fix/targa-color-model
Targa export: a Color Model option writes grayscale files
2026-12-04 22:27:33 -08:00
.CooCoo e418292946 Merge pull request #10889 from dotCooCoo/fix/dwg-listed-without-decoder
File formats: DWG is listed as readable only where a decoder reads it
2026-12-04 22:27:01 -08:00
.CooCoo db8d2c11e9 Merge pull request #10890 from dotCooCoo/fix/scoped-remove-all-walk
Scripts: a group's pathItems.removeAll() walks only the group
2026-12-04 22:26:30 -08:00
.CooCoo 6cca4c8968 Merge pull request #10895 from dotCooCoo/fix/artboard-guides-preview-keeps-delete
Plug-ins: an edit made during an add-on dialog's preview survives Cancel and OK
2026-12-04 22:25:59 -08:00
.CooCoo 9deca69775 Merge pull request #10897 from dotCooCoo/fix/dxf-region-import
DXF/DWG import: REGION entities open as filled paths
2026-12-04 22:25:28 -08:00
.CooCoo 99e8dc3f72 Merge pull request #10898 from dotCooCoo/fix/script-color-pick-document-profiles
Scripts: a Color Picker pick converts through the script document's profiles
2026-12-04 22:24:58 -08:00
.CooCoo 86c1bed1a3 Merge pull request #10899 from dotCooCoo/fix/dwg-place-previewed-drawing
DXF Import: OK places the drawing the dialog previewed, not the file as it is on disk
2026-12-04 22:24:27 -08:00
.CooCoo c523594bc9 Merge pull request #10912 from dotCooCoo/fix/flatpak-portal-save-names
Save: Export Text, Unembed and metadata templates ask again for a name the Flatpak file chooser did not grant
2026-12-04 22:21:37 -08:00
dotCooCoo 3e1fb85fd6 DXF/DWG import: hatches follow their island style
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.
2026-12-04 22:09:32 -08:00
dotCooCoo 8d6b48c52e Merge main into fix/artboard-seam-zero-spacing 2026-12-04 22:05:58 -08:00
dotCooCoo e81d7d9b3a Merge main into feat/font-sheet 2026-12-04 21:37:34 -08:00
dotCooCoo 59da3bd87a Merge main into fix/jpe-jpeg-extension 2026-12-04 21:35:16 -08:00
dotCooCoo 028ff072e2 Docs: Raster Settings OK refuses only when there are changes to apply
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.
2026-12-04 21:26:00 -08:00
dotCooCoo 168d6c9cce Plug-ins: an outside command leaves recut paths and a refused step alone
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.
2026-12-04 21:17:55 -08:00
dotCooCoo 7548988c4c Merge main into fix/dxf-region-import 2026-12-04 21:00:23 -08:00
dotCooCoo 039234712f DXF import: region data longer than the size limit is not kept
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.
2026-12-04 21:00:20 -08:00
dotCooCoo 0569b88d83 Merge main into fix/reverse-path-keeps-anchor-selection 2026-12-04 20:37:39 -08:00
dotCooCoo 31876d6775 Merge main into feat/font-sheet 2026-12-04 20:36:17 -08:00
dotCooCoo fc73fd9e2a Merge main into fix/dxf-hatch-pattern-gradient 2026-12-04 20:33:00 -08:00
dotCooCoo 787c489cfc DXF/DWG import: pattern hatches keep their pattern and gradient hatches their gradient
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).
2026-12-04 20:33:00 -08:00
dotCooCoo cf10a40bc7 Merge main into fix/artboard-seam-zero-spacing 2026-12-04 20:29:18 -08:00
dotCooCoo f8cdebe86d Save: Export Text, Unembed and metadata templates ask again in the Flatpak file chooser
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.
2026-12-04 20:25:49 -08:00
.CooCoo ec875e7201 Merge pull request #10906 from dotCooCoo/fix/main-revert-hinting-back-on
Main: revert #10894 (font hinting back on) to fix the floated-panel window test
2026-12-04 20:11:38 -08:00
dotCooCoo b54ce6910e Revert "Merge pull request #10894 from dotCooCoo/fix/font-hinting-back-on"
This reverts commit 88851063c0, reversing
changes made to 7802fe94be.
2026-12-04 20:08:54 -08:00
.CooCoo 857ea2aa94 Merge pull request #10892 from dotCooCoo/fix/composite-installed-name-place
Place: placed type keeps an installed font that shares a composite font's name
2026-12-04 20:02:26 -08:00
.CooCoo c58b291771 Merge pull request #10816 from dotCooCoo/fix/craft-libs-pin-language-packs
Dependencies: move the craft-libs pin to craft-libs main 69c746e9
2026-12-04 19:42:37 -08:00
.CooCoo 1597047278 Merge pull request #10873 from dotCooCoo/fix/dxf-group-block-reference
DXF export: Always Export Group as Block Reference
2026-12-04 19:41:55 -08:00
dotCooCoo 6ab79bce2e Docs: the JPEG filter lists only the lowercase .jpe
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.
2026-12-04 19:37:30 -08:00
dotCooCoo 4e438a4525 Properties: the reversal test follows the reversed anchor selection
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.
2026-12-04 19:36:44 -08:00
dotCooCoo d556e768f7 Docs: name the source profile of each script color pick
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.
2026-12-04 19:31:49 -08:00
dotCooCoo c5e2098a59 Merge main into fix/raster-settings-opened-objects
# Conflicts:
#	ROADMAP.md
2026-12-04 19:25:58 -08:00
.CooCoo 558191ec37 Merge pull request #10901 from dotCooCoo/fix/warm-no-test-executables
xtask: the cache warm no longer builds integration test executables
2026-12-04 19:24:38 -08:00
dotCooCoo 348b561d3c Merge main into fix/dwg-listed-without-decoder 2026-12-04 19:11:56 -08:00