With an add-on dialog previewing (Arrange in Grid, for example),
File > Place ran inside the preview's interaction, because every
`file.*` command other than `file.documentColorMode` was treated as one
that reads the drawing on show. The placed art went into the preview
document with no undo step of its own, and Cancel removed it.
`file.place` now runs on the document without the preview, as other
edits do: it records its own undo step and stays after Cancel and OK.
Save, Export, Copy and the other `file.*` commands still act on the
drawing as the preview shows it.
Docs: docs/mcp.md (undo/redo row).
Takes main's craft-libs rev 4f3e34d0dd. Character Style Options and Paragraph Style Options canvas support and their two tests move to #10953, which waits on storytold/craft-libs#5510.
Remove Anchor Points mapped each subpath's next anchor to the path as
drawn with `LiveCorners::drawn_anchor`, which counted the anchors of
every earlier subpath again for each one. `LiveCorners::drawn_anchors`
maps the whole set while walking the subpaths once.
The docs now say that Remove Anchor Points selects the next anchor of
the uncut outline, which can be an anchor added on a side as well as a
corner.
The detailed missing-items row for File formats still said DWG was
missing with DXF as the substitute. It now lists the DWG limits that
remain: the web build and FreeBSD for aarch64, R1.x and R2.x drawings,
and DWG export before version 2000.
Adding an anchor on a side of a path with rounded Live Corners moved
each selected anchor to every anchor of its corner. The ends of a
selected segment are selected anchors, so a selected side also selected
the far ends of the arcs at its two corners, and an arrow-key nudge
then moved those anchors too. The ends of selected segments now follow
the segments instead: after the addition, only the ends of the
segments as drawn are selected. Anchors selected on their own still
select their whole corner.
A plain path no longer builds its corner layout for Add Anchor Point,
Delete Anchor Point or Remove Anchor Points before falling back to the
plain edit, and Add Anchor Point builds it once for the cut check and
the selection. The selected segments are matched to the new layout
through one lookup per subpath instead of a scan for each segment.
docs/mcp.md and the Live Corners entry in docs/target-app-parity.md
now say that removing anchors clears the path's selected anchors and
segments, and that Remove Anchor Points selects the anchor before the
removed one at an open path's end.
A painted member whose own opacity, or the opacity of a nested group
holding it, is below 100% makes Revolve draw the shaded faces instead of
one image.
Opening or placing a DWG drawing whose version code the converter does
not read now fails with a message that names the version and says to
save the drawing as DXF, or as a DWG from R10 to 2018. That covers R1.0
to R9 (MC0.0, AC1.2 to AC2.22, AC1001 to AC1004), codes newer than
AC1032 and unknown codes. Before, R2.5 to R9 drawings went to the
converter and failed with its own error, and R1.x and R2.x drawings got
a message that did not name the version. Version names follow
https://en.wikipedia.org/wiki/.dwg#Version_history.
A drawing that starts with an AD10nn code is read as a DWG drawing, as
the converter reads AD1009 and AD1012 to AD1032; before, it was read as
DXF and failed with "not a DXF drawing". A file that holds only a
version code says it is cut short.
Docs: docs/mcp.md, docs/target-app-parity.md.
Effect Gallery, Bullets and Numbering, Character Style Options and
Paragraph Style Options preview on the canvas, but the modal layer
dimmed it, so the preview did not show its true colors, and the wheel
over the canvas did nothing while they were open.
- Effect Gallery and Bullets and Numbering store the current window's
canvas (`preview_canvas`) when they open and keep its view open from
the dialog body (`Sampler::keep_view_open`), as ParamDialog does.
- Character Style Options and Paragraph Style Options pass the canvas
to `PropertiesDialog::canvas`. New Character Style and New Paragraph
Style do not preview and still cover the canvas.
- Every craft-libs rev moves to the head of storytold/craft-libs#5510,
which adds `PropertiesDialog::canvas`.
Part of #10590.
Adding an anchor with the Pen or Add Anchor Point tool, or removing one
with the Pen, Delete Anchor Point, Remove Anchor Points or the Delete key
with Delete Removes Anchor Points and Keeps Paths Joined on, turned a
path with rounded Live Corners into a plain path: the arcs were baked
into anchors and the corner widgets disappeared.
path.insertAnchor now adds the anchor on the matching side of the uncut
outline, at the point the drawn segment has at t, and cuts the corners
again at their radii and kinds. path.removeAnchor and path.removeAnchors
remove the uncut corner each removed anchor belongs to, so removing
either end of a corner's arc removes that corner and the others stay
live; a path left with no corner is removed. A relative radius keeps the
length it is drawn at, up to the corner's new largest radius. Selected
anchors and segments follow their corners, a split selected segment
stays selected as its two halves with the new anchor, and Remove Anchor
Points selects the first anchor of the next corner.
An anchor added on a corner's arc still makes the path plain, and the
status bar now says the corners were expanded.
Docs: docs/mcp.md, the params text of path.insertAnchor,
path.removeAnchor and path.removeAnchors, and the Live Corners entry in
docs/target-app-parity.md.
With New Art Has Basic Appearance off, new type took nothing from a
selected object whose fills, strokes and effects matched the document's
redefined Default Graphic Style without a link to it (after Break Link
to Graphic Style, for example), because the check that keeps type plain
for the document's default look also caught a look taken from the
selection. That check now applies only to the look paint.default gives,
so new type takes the selection's fills and effects, and new type made
after paint.default still keeps its characters' color.