A metafile can fill a figure without closing it, for example a GDI path
bracket painted with FILLPATH and no CLOSEFIGURE. The fill draws the
figure closed, but the import kept it as an open path, so the object
reported closed:false and a stroke added later left a gap at its start.
A path the picture only fills now comes in with every open figure
closed. Stroked paths keep their figures as the file draws them. The
same rule covers EMF, WMF and PICT, which share the importer.
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.
* Locate both color wells by their reported radio values
The shared swatch pair exposes unnamed radio parts. Drive real clicks on the exposed area of Stroke and Fill and keep the original paint and modifier assertions.
(cherry picked from commit 5b990d637c)
* Use regional decimal marks in UI fixtures
(cherry picked from commit 4208649d63)
* Use ordinary canonical paths in script fixtures
(cherry picked from commit f37b5811ad)
* Restore Animated Zoom for mouse-wheel notches
Restore the glide when Zoom with Scroll Wheel and Animated Zoom are both on, as in 0.24.1. The canvas keeps precision point input and pinches immediate. Tracks #10418.
(cherry picked from commit 1dde4db0f3)
---------
Co-authored-by: Codex <[email protected]>
* Use regional decimals in remaining UI fixtures
(cherry picked from commit d689f09e46)
* Test Divide preserves artwork at complexity limit
(cherry picked from commit cc54974df6)
* Honor an explicit Crop Box when opening editable PDFs
Backport the PDF option handling from 82d4ec4336. Apply it to editable and linked opens while preserving the original file when an alternate box was requested.
(cherry picked from commit 73bbd005f3)
---------
Co-authored-by: Codex <[email protected]>
A press that begins on the canvas keeps the document hover point while the
pointer is dragged off it, so the thumbnail and count stayed drawn at the
canvas edge. The overlay now also needs the pointer over the canvas. The
test drags a press across the canvas, where the thumbnail stays, and then
off it, where nothing shows.
Palette windows hide while the main window shows a popup, and an open flyout
is one. A built-in workspace now opens its panel's flyout when it is
switched to, so a panel floated by a command in Essentials Classic (Color's
flyout) and the other workspaces that open one opened its window hidden, and
a_panel_floated_in_any_built_in_workspace_opens_a_shown_window failed on main.
The command that reveals a floating window now closes the open flyout.
Co-authored-by: FredApps <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Part of #10797.
On the OpenGL backend, Preferences and floating panels drew their content
offset down and right by a title bar and border, while clicks landed at the
unshifted positions. These windows draw their own title bar, so winit makes
them undecorated, but it still gives them the WS_CAPTION and WS_BORDER styles,
and on these systems the frame stays reserved for the window surface. The
guard added for #1758 removes the two styles from the main window only.
A viewport hook now records every undecorated window other than the main
one as eframe creates it, and runs the same guard on it at creation and
before each of its frames, so the styles stay off when winit puts them back.
Windows with the system title bar are left alone, and a window's record is
dropped with the window.
Type on a path follows the path's tangent and grows by one scale, so a
frame matrix that stretches or slants it (for example 4 0 0 1) cannot be
kept: its glyphs came in twice as wide and twice as tall while the path
grew four times. Such a frame is now left to the page, as mirrored type
is. Turned and uniformly scaled frames are still made as type on a path.
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 text frame's FrameMatrix was read only for point type. Area frames and
type on a path were built from the frame's segments as stored, without
the matrix, so area type turned a quarter opened unturned with its lines
across the page, and a turned path for type on a path opened unturned.
- The frame's segments are carried onto the canvas by its matrix for
every frame kind, and line starts use the first frame's matrix.
- Area type keeps the matrix's turn in its transform, with the frame in
the type's own space, so its lines run along the turned frame. A
scaled matrix scales the type, and a mirrored one is not made from the
text document, as for point type.
- The object's own path, which replaces the frame on import, is turned
back into the type's space before it becomes the frame.
- The file's first line is compared with the layout in the type's own
space.
PDF import read overprint for paths and text only, so an image in a
Separation space or an image mask drawn under /op true opened knocking
out, and a separations export of the document lost the ink beneath it.
The interpreter reports the graphics state's overprint before each
image; the importer now keeps the fill's on the image's colorize paint,
as the .ai reader does.
- Each draw of an image takes the state of that draw, so one XObject
drawn twice can overprint once and knock out once.
- A process color overprinting in mode 0 gives the same warning as a
path does.
- A page whose paths can't be counted drops the paths' overprint and
keeps the images'.
- An isolated group holding an overprinting image stays isolated.
- Images read inside pattern cells, soft masks and type 3 glyphs knock
out, as paths there do.
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.
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.
A seam stroke's width was scaled by the square root of the image's
scale, so on an image stretched more one way its caps could reach past
the image. The provider now outlines each trimmed seam stroke in the
traced raster's pixels, with butt caps and round joins as Image Trace
does, and maps the filled outline back like the other paths, so the
seam fills stay inside the image whatever its transform.
Flat Color traces abutting fills, and each fill was drawn on its own, so
a light hairline showed wherever two colors met. The built-in provider
now lays the trace's seam fills under the fills, as Image Trace's
Abutting method with Fills does. Seam strokes are trimmed to half their
width inside the image, so they do not paint past its border, and they
are added only in the anchors and paths that every style's traced paths
leave of the limits, so they never make a later style's trace fail.
conceptVector.generate run from a script now stops when the script is
asked to stop, as imageTrace.make does, and keeps no job.
An opacity is stored as an f32 fraction, and these fields showed it as
f64::from(opacity) * 100.0, so 51% read back as 50.999999%. The number
field treats that value as off its step grid, so an Up press went to 51%
again and every later press repeated it; Down stalled the same way at
values such as 99%.
The Control bar's Opacity, the Gradient panel's stop Opacity and the
Color Wheel panel's Show Opacity field now show the whole percent when it
stores as the same f32 (panels::shown_percent), and the exact percent
otherwise.
Part of #10903. #10910 fixes the Properties and Transparency Opacity
fields the same way.