- The DXF Import Options dialog test opens a DWG, confirms it at 1:1
in model space and places it.
- `vectorcraft-cli info` reads a DWG as the DXF it was written from,
and five damaged copies (cut short, overwritten, bytes flipped) end
in an error that names DWG or open with warnings, with the process
exiting normally.
- The engine's DWG and DXF test modules are listed in order.
The modules were behind cfg(all(test, ...)), which clippy's
allow-unwrap-in-tests does not read as test code. The platform
condition moves into each file as an inner attribute.
With Auto-Collapse Iconic Panels on, the Gradient panel's stop chip in an
icon column's flyout opened the stop popover, and the flyout closed in the
same frames. The popover is a layer of the window's dialog host, outside the
flyout's layers, so the focus moving into it and presses in it counted as
leaving the flyout.
The dock now notes the dialogs that open while a flyout is open. While one
of them is still open, the flyout is shown without auto-collapse; once they
close, a click away from the flyout closes it again.
File > Open, File > Place and document.dxfInfo read DWG drawings. The
craft-libs craft-dwg bridge converts the drawing to DXF bytes and the
existing DXF reader reads them, so a DWG takes the DXF Import Options
(layout, ratio or fit, lineweights, centering, merged layers) and comes
in with the same layers, blocks and units as the DXF it converts to.
What the conversion skips is listed in the warnings.
- vectorcraft-cad: dwg module. On desktop the conversion runs in a copy
of the program started with --dwg-worker (vectorcraft and
vectorcraft-cli call serve_if_asked and use_own_worker), so a damaged
file ends that copy, not the app. Inputs over 512 MiB, or a DXF
rendition over 1 GiB, are refused. The last conversion (up to 128 MiB
of DXF), or its error, is kept, so the dialog's layout list, each
layout preview and the open read the file once. R1.x and R2.x
drawings are refused with a hint to save as DXF.
- Engine: a read-only dwg format (detected by content or by .dwg),
in the open and place extension lists, not associated with the app
by packaging. DWG leaves the unsupported list; exporting to it says
to export DXF instead, Export As keeps it greyed out, and Save over
the drawing is refused.
- UI: the DXF Import Options dialog opens for .dwg files on Open,
Place and a Shift-click with the place cursor.
- NOTICE and licenses/acadrust-0.6.6/: acadrust 0.6.6 (MPL-2.0,
unmodified) and its third-party notices.
- Docs: docs/mcp.md, docs/file-format-parity.md, docs/roadmap.md and
the progress line in docs/target-app-parity.md.
Tests build DWG files from DXF drawings with craft-dwg's writer: a DWG
comes in as its DXF does (layers, bounds, strokes, units, blocks), with
the DXF options, through Place, and in dxfInfo; a truncated DWG is an
error; saving or exporting a DWG writes nothing.
Fixes#3450
A double click on a stop's marker in the Gradient panel's slider opens
the stop popover on its second press. The slider also treated that press
as a drag once the pointer moved past the drag threshold before the
release, which a hand on a trackpad often does. The stop moved a few
percent, an undo step was recorded, and the popover closed in the next
frame because its stop had changed under it.
The panel now drops the slider's edits from the press that opened the
popover, including the commit that arrives after the button is up. The
next press drags the stop as before. craft-libs#5131 fixes the slider
itself; this code goes away with the pin bump that brings it in.
The bar showed only the neutral border of its floating surface. It now
draws an outline in the accent border color over that border, on the
same pixel-rounded rect, with the floating surface's corners and the
bar's opacity.
This is a temporary workaround until craft-libs#4892, which adds
TaskBar::edge(BarEdge::Accent), is in the craft-libs pin. The pin bump
deletes accent_outline and sets that edge on the bar instead.
When Space (or Cmd+Space, Alt+Space) was let go while the canvas did not
run, for example with a dialog or another tab in front, the shortcut
board dropped the queued release and the momentary Hand or Zoom stayed
in effect. Every tool chosen afterwards then acted as the Hand until
Space was pressed and released again (#10709).
The canvas now notes the keys that were down when a momentary hold
started, and at its next pass ends the hold once none of them is down.
A hold started with no key down, as automation does, lasts until its
release.
This is a temporary workaround for storytold/craft-libs#5056, which
ends the hold inside the tool host. The helpers and the
momentary_keys field go once the craft-libs pin includes it; the
tests stay.
FontDb::new copied every bundled and craft-fonts font into the font
catalog with add_bytes, which keeps its own copy of the bytes. A CLI run
that exports a small SVG peaked at about 130 MiB, against about 26 MiB
in 0.24.1.
The database now adds the bundled fonts the first time
FontDb::catalog is called, and its own catalog lookups go through that
call. A run that never looks a font up in the catalog does not copy
them: exporting a 10 x 10 SVG with vectorcraft-cli on Linux peaks at
42 MiB instead of 130 MiB, with the same PNG. The workaround can go once
the catalog takes static bytes without copying them (craft-libs#4888).
Part of #10666
measuring_data_too_large_to_hold_in_a_loop_runs_out_of_the_budget deflated
and measured 300 MiB of zeros against the 50,000,000-operation budget, and
took about 3.9 s. It now runs with the reader limited to 1 MiB
(with_data_limit), zeros that decompress to 4 MiB, and a budget of 524,288
operations for a file whatever its length (with_ops_limit, a test-only seam
for MAX_OPS like with_data_limit). It still checks that the data is
measured in full more than once and at most five times, and runs in about
0.09 s.
read_counting now reads on its thread with the calling thread's data and
operation limits, so tests that use it can lower them.
A floating panel's OS window counted as covering the canvas even while it
was minimized, or hidden because a dialog or popup was open. Art dragged
onto the canvas and released over the spot where such a window sat was
refused, and the tools treated the pointer there as covered.
os_window_at now skips windows the OS reports minimized, and reports no
cover while a dialog or popup is open. This works around
storytold/craft-libs#4739; the checks are removed when the craft-libs pin
includes that change.
A square and an unfilled zigzag with one segment more than the planar
map's cap: Divide returns the "select fewer paths" error and leaves the
document and the undo history unchanged. With the check replaced by the
unchecked Divide, the test fails because Divide returns the square uncut.
the_data_of_an_image_too_large_to_hold_is_skipped built 300 MiB of zeros
and Flate- and LZW-encoded each of them to get past the reader's 256 MiB
data limit, and took about 8.7 s.
Tests can now lower the limit on their own thread with
`with_data_limit`; shipped builds keep the 256 MiB constant. The test
runs under a 1 MiB limit with 2 MiB of data per filter, and checks that
the Flate and LZW data is measured in full, so it fails when the lower
limit does not take effect. It now takes about 0.14 s.
When a long subpath has more segments than the tooth budget, only every
k-th segment gets teeth. comb_closes compared only the first and last
tooth positions, so a last sampled segment that ended on the first anchor
joined its tip to the first tooth across the skipped closing segment.
Each tooth now records its segment, and the comb closes only when the
segments between the last tooth and the first across the seam have no
length.
#10682 made paths::see_all_points return a Result; d22384d6 had added a call in the mask-release path of removeAll that ignored it, so clippy -D warnings fails on main. The call now passes the error on with ?, as the other three callers do.