Follow-up to the review of #9147 (script palettes):
- A waiting click or change that can no longer run (its control was
disabled, hidden or removed by an earlier handler) is dropped before
the open edit is settled, so it no longer commits or cancels a drag
in the active document with no handler run.
- A palette title or other getter that hides or closes the palette
while the palette is being described no longer sends that
description to the host: the host keeps the controls the palette had
when it was hidden.
- A typed text that matches the field's stored text is still given to
the script, before a click, a close or on focus loss, when another
change of that field waits, so the handler reads the typed text and
not the waiting change.
- After a palette event's run fails to begin, the app does not retry
and ask for a frame on every pass. It tries again after the next
input in the window, another palette event, or a change to the
documents' edit state, the active document or the recovery settings.
- The print test now checks that the click's handler ran after the
print jobs were canceled, and the list test only fails when the
earlier item's text changed.
OK returns a new object of the color given only when both the color and
its model are unchanged; a model-only change is a new pick. The progress
line, docs/mcp.md and the script.run params text now say so.
Display Bitmaps as Anti-aliased Images in Pixel Preview applies only while
Pixel Preview draws its own pixel raster: the view zoomed above one screen
pixel per document pixel and the region within the largest texture side.
In every other case, Pixel Preview included, Display Bitmaps as Anti-aliased
Images applies. The doc comments on both preferences and the two lines in
docs/target-app-parity.md now say so.
The selection fill eligibility entry now says that its "nothing else
there" rule covers ordinary picking and points to the #9175 entry for
Select Behind. The #9175 entry no longer says Select Behind lists
unfilled paths after painted ones: it steps through them with the other
objects under the pointer, as `object_behind` does through `leaves_at`.
A straight segment cleared the direction the comb carries from segment to
segment, so a curve that ended heading one way and a line that went back the
other way, or a line followed by a curve that turned back on it, kept one
line through the tips across the cusp. A straight segment now carries its
chord's direction, and the comb starts a new line wherever the next direction
heads back against the last one.
The test for turning back now ignores a dot product that rounds a little
below zero at a right angle, at interior anchors and at the closed-path seam
alike.
Canceling a 3D and Materials drag, or dragging back to where it began,
rolled the preview back but left its rendered fallback warning in the
status bar, describing settings the document no longer had. The
rollback now clears that warning while the status line still holds it
and shows the restored selection's own warning instead. A warning shown
before the drag began, or a newer status message, is kept.
docs/three-d.md now scopes the painter's algorithm note to shaded vector
faces; a Rendered image is drawn with a depth buffer.
With File Handling › Display Bitmaps as Anti-aliased Images (or its Pixel
Preview setting) off, images inside pattern tiles and placed documents now
show hard-edged pixels, and the tile or placed bitmap is drawn without
smoothing too. Tiles and placed bitmaps made with and without smoothing are
kept apart, and a raster kept for type with color bitmap glyphs is made
again when the setting changes.
- Tests: a 2x2 checker scaled up in a pattern tile, a placed document and
the canvas shows only its own colors with smoothing off and greys with it
on; type rasters change their inputs with the setting.
- Docs: docs/mcp.md and the preference help no longer note pattern tiles
as an exception.
* Retype: add a context menu to matching-font rows
A secondary click, or Shift+F10 on the focused row, selects a font row in
the Retype panel without setting its font and opens a menu with Apply Font
(what a click on the row does; off without live text selected), the panel
menu's sample sizes and Reset Retype Panel. The menu closes when the list
or the document changes (G12).
* Rerun CI: the apt package download failed in a test shard's setup
---------
Co-authored-by: ruchirguitar <[email protected]>
Co-authored-by: FredApps <[email protected]>
A live star whose ratio is below 0.01, which object.setLiveShape takes,
lost its inner radius and its live shape when addon.shapes.configure
changed another value: the stored ratio was clamped to 0.01 when the
star was drawn and no longer counted as live. Any ratio from 0 to 1 now
draws and stays live as it is.
A corner list shorter than the star's or polygon's corners counted as
one shared radius, so a new point or side count gave the missing corners
the first corner's radius. The missing corners now stay sharp.
A ratio that changes which corners a rounded star cuts is now an error
with radius or kind in the same call, as points is, since the corners
selected before it no longer name the same corners. The anchor selection
is dropped by the same check.
The Selection fill eligibility entry now lists the cases where a
hidden-only or true-None interior misses in one sentence, and the
case where Select Inside Unfilled Shapes picks it in a second.
An anchor nudge on a pixel-aligned rounded rectangle or polygon that the
pixel-grid snap cancels recorded an undo step and left the shape a live
path, because the anchor edit converts the live shape before the snap
runs. The no-change check now treats that conversion as no change when
the converted live shape matches what the same anchors would give
unmoved, so the shape stays a live rectangle and no undo step is
recorded. A change to the uncut outline or the corner settings still
counts as a change.
* Docs: add a script for editable numbered grids
* Docs: bound the numbered-grid example and validate label numbers
---------
Co-authored-by: FredApps <[email protected]>
Opening or placing a DWG drawing from the desktop UI converted it on the
UI thread before DXF Import Options opened, so the window stopped
responding until a large drawing was converted. File > Open, Open Recent,
the Home screen, a drop and Place now convert it on a job of their own;
the status bar says "Converting <name>..." and the dialog opens once the
conversion is done. A drawing that can't be converted is reported and
does not go on the recent files. Commands run at once (MCP, scripts)
still convert before they return.
`thumbnail` exits after 20 seconds, but a DWG worker it started kept
running after that. The CLI now starts the worker with
`--dwg-worker-seconds 20`, and a worker started that way exits with code
1 once its time is up.
The CLI `info` test requires the drawing cut to a third and the one cut
to its header to be refused. The File formats row and the DWG entry in
docs/target-app-parity.md name the remaining limits: the web build and
R1.x and R2.x drawings return an error that says to save as DXF.
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
The Select Inside Unfilled Shapes description now names Outline view as
an exception, and says that with the preference off a click starts a
selection box only when it hits nothing else. The #9175 progress line
says the same: a marquee starts only when the press misses the shape's
stroke, other art and the shape's visible center point.
CUPS (cupsSetServer) reads the digits after the last colon of an
unbracketed server name as its port, so `::1` names host `:` on port 1.
scheduler_is_local took any unbracketed name with several colons as a
host without a port and matched `::1` as loopback, so `::1` with
IPP_PORT=8631 used the local PPD folder for a queue on another
scheduler. It now splits such a name at its last colon when the last
group starts with a digit, as CUPS does. The IPv6 loopback is local
only as `[::1]`, which docs/mcp.md now names.
With Direct Selection chosen, Cmd/Ctrl lends the Selection tool for the
press. That loan also took presses on the end of a shown direction handle,
so a Ctrl-drag on a handle moved the whole object (and anything selected
with it), or drew a marquee where no object was under the handle. Only Ctrl
added after the drag began mirrored the opposite handle.
A new Tool::keeps_cmd_press lets the active tool keep a Cmd/Ctrl press.
Direct Selection keeps one without Alt on the end of a shown handle of a
path, of type on a path, or of a selected blend spine anchor, so the drag
mirrors the opposite handle, with Shift constraining it. The session's
lent_tool_at asks it, so the press, the cursor and the status bar agree. A
press elsewhere, on a handle of the bounding box the lent Selection tool
shows, or with Cmd+Alt (Group Selection) is still lent as before.
docs/gaps.md and docs/ui-parity.md describe the press.