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.
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.
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.
Recolor Artwork previews its colors on the art, but its modal layer
dimmed the whole window, canvas included, so the preview could not be
judged. The dialog now keeps the canvas of the window it opened in open
under its modal layer, as the Color Picker and the color adjustment
dialogs do: no scrim over it, and the wheel still scrolls and zooms the
view. Other presses on the canvas stay blocked.
A Color Picker opened from a row's new color also keeps the canvas
undimmed. The picker now registers the canvas, and while it is open over
Recolor Artwork the dialog below draws no scrim of its own, so the
picker's layer is the only one that dims the window.
While the Color Theme Picker is on, its clicks and Shift-drags on the
art now reach the canvas. Before, the modal layer blocked them, so a
click on the art added no pick.
Part of #10590.
A dialog's modal layer dims everything but the canvas the dialog
registers. Blend Options, the envelope and path dialogs, Split Into Grid,
Flare Tool Options, Justification, Proof Setup, Swatch Options, the
Tangent Circle radius dialog, the add-on dialogs and the command dialogs
with a Preview box registered no canvas, so the art they previewed was
shown dimmed and the wheel over it did not scroll the view.
dialogs::host::preview_canvas gives the current window's canvas, and
PreviewsOn::previews_on registers it when the dialog previews. The add-on
dialog host registers it for every add-on dialog. Blend Options with no
blend selected sets the defaults for new blends and previews nothing, so
it still dims the canvas.
Part of #10590.
A graphic style picked with nothing selected and then redefined gave new
art and type the look picked with the new definition's isolate and
knockout, still linked to the style. New art now links to the style only
while its fills, strokes, effects, opacity and blend mode match the
style's current definition; otherwise it keeps the look picked without
the link, isolate or knockout. appearance.newArt reports the style the
same way, and undoing the redefinition links new art again.
New type made with the look paint.default gives in a document whose
Default Graphic Style was redefined took that look and lost its
characters' color, which failed
an_open_document_takes_another_profiles_default_fill_stroke_and_font.
That look is the document's default, so new type made with it keeps its
characters' color, as with the shipped default.
The canvas drew no thumbnail or count beside the pointer while the place
cursor held files: since the craft UI port, place::cursor_overlay had no
caller.
- The canvas shows the cursor overlay while the Place tool holds files and
the pointer is on the canvas, beside the pointer, and on its other side
near the canvas's right or bottom edge.
- For a load of more than one file the count reads remaining/total (3/3,
2/3, 1/3); a load of one file shows no count.
- The place tool reports a read-only `total`, the size of the load.
Fixes#10821
path.insertAnchor on type on a path, unselected or with selectAnchor,
left the new anchor direct-selected under the type's id. The arrow keys
and path.moveAnchors then sent that anchor to the path editor, which
refused it with "object N is not a path". The type now stays selected
whole with no direct-selected anchors, as path.removeAnchor leaves it,
so a nudge moves the type.
The progress-doc entry now limits the tools to type outside
perspective and lists the Pen with Alt with the Anchor Point tool's
gestures rather than with adding and deleting anchors.
A graphic style picked in one document and used for new type in another
lost its look when the style was one plain fill and stroke, and lost its
opacity and blend mode in every case, because both checks read the style
name that is dropped outside the style's document. New type now checks
whether its look came from a graphic style separately from the link: the
link is still left out in another document, the look and transparency
are not.
The docs say that area type made with `text.create` and `area` takes the
template, and only Type on a Path and `text.createInPath` area type keep
the default appearance.
- 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.
The Anchor Point tool, the Add and Delete Anchor Point tools, Pen + Alt
and the Pen's Auto Add/Delete only picked anchors of plain paths, and
the path.* anchor commands refused type on a path ("object #N is not a
path"), so dragging an anchor of type on a path's path did not pull
handles out, as it does on a path.
- The tools pick the anchors and segments of selected type on a path
outside perspective, and draw its anchors and handles; Scissors still
does not cut it.
- path.convertAnchor, path.reshapeSegment, path.setHandle,
path.moveAnchor, path.insertAnchor and path.removeAnchor edit the
type's path in document space through its transform; the type lays
out again and its brackets keep their fractions of the path.
path.removeAnchor refuses to leave it fewer than two anchors.
Docs: docs/mcp.md, docs/target-app-parity.md.
New art and type took the graphic style picked with nothing selected by
its name, so in another document they were linked to a style of the same
name there, and took its isolate and knockout. The template now records
the document the style came from, and new art elsewhere takes the look
without the link.
New area type that text wrap moves as it is made (an Auto Size frame
below a wrap object grows) had the template's placed gradients fitted to
the frame before the reflow. Both ways of making type now let text wrap
reflow it first and fit the gradients to the frame it ends with; type
whose bounds do not change keeps its placement.
The docs name text.create as the command whose type takes the template,
state that Type on a Path and Area Type keep the default appearance, and
note that a color given to text.create keeps the characters' fill under
Override Character Color.
In Render Settings > Rendered, Revolve on a group or layer drew its
shaded faces and reported "Revolve renders on a single object only".
Revolve on a fill or stroke did the same. Extrude & Bevel, Inflate and
Rotate already draw an image in both cases.
- On a group, every member's surface is swept about the shared axis
into one mesh list and drawn as one image, with the shadow plane
placed from every member that casts. A member that is not an opaque
solid color in Normal blending, or that sits in a group with an
opacity mask or a blending mode, keeps the shaded faces and reports
why, as the other effects do. The painted bounds of the group are the
image's rectangle.
- On a fill or stroke, that paint's surface is drawn as its own image
under the effects after its Revolve, as Extrude & Bevel, Inflate and
Rotate draw a rendered fill or stroke.
- When a group's members, or the clipping groups, blends and symbol
instances in it, can't be revolved, a rendered Revolve on the group
reports the reason in the status bar and the command's warning.
- The object, fill and stroke paths share one helper for the image, so
the eligibility checks and the shadow plane are the same in each.
Docs: docs/mcp.md, docs/three-d.md, docs/target-app-parity.md.