When placed editable art names a font family that its file does not define
as a composite font, and the document defines a composite font of that
name, the placed type was measured in the file's font but drew in the
document's composite font after placement. The placed type now gets a free
name such as "Name 2", so it keeps the font it was laid out in. Placing the
same art again reuses that name.
- The renaming also covers the fonts a file carries for its type and the
label font of a live dimension, so they stay paired with the renamed runs.
- An installed family is not renamed.
- The installed-name check applies only to the composite fonts a
placement adds, so a definition already in the document does not stop it.
- docs/mcp.md describes the renaming under file.place.
docs/mcp.md says what OK and Apply do with the agent settings after
input injected through the control channel reached Preferences, and
what an OK sent by a control request does.
The edit field read the focus of the field's outer response, which never
holds the keyboard focus: the focus sits on the field's text part. A
click elsewhere or Tab out of a palette's or dialog's edit field then did
not give the typed text to the script. The field now reads the text
part's focus loss (`text_lost_focus`).
The focus-loss test drives the focus with Tab through egui instead of
calling the commit helper, and fails without the fix.
The retry docs in the script.palette.event help, docs/mcp.md and the
progress-doc entry name the recoveryFolder and recoveryOffForComplex
preferences, the two recovery preferences whose change starts the
waiting events again.
A nudge that the pixel-grid snap took back still recorded an undo step and
left a rounded live rectangle a live path when an object selected whole
was moved together with direct-selected anchors, because the no-change
check ran only for anchor-only selections. The check now also covers
objects selected whole. The path.moveAnchors params text and the Live
Corners progress entry now state the pixel-grid case as docs/mcp.md does.
- A DWG placed while it is converted goes on the layer that was current
when Place started and, with `replace`, in place of the object selected
then, selected again unless it changed meanwhile. A layer the user made
current since stays current, as for other files read for Place.
- Place's checks run before the conversion starts, so a bad param or a
selection Replace can't swap (several objects, part of a symbol
instance) is reported at once and nothing is converted.
- The open progress window shows a DWG drawing being converted.
`file.cancelOpen` drops the conversion, so its dialog never opens, and
`file.openInBackground` closes the window while it goes on in the
status bar. Both commands' help text and `docs/mcp.md` say so.
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.
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.
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.
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.
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]>