object.align takes to: "auto", which aligns to the key object, key
anchor or key guide when the selection has one, else to the artboard
when exactly one object is selected and no anchor points are, else to
the selection.
New Action and Action Options have Choose Align To at playback
(automaticAlignTo on ui.action.new and ui.action.options), off by
default. With it on, playback sends to: "auto" for each object.align
step, without any artboard index the step stores, so the step uses the
active artboard; the stored steps keep their recorded params. Save
Actions writes the option, and a set that uses it is saved as file
version 7.
The dialog's strings have rows in every catalog, and docs/mcp.md
describes to: "auto", automaticAlignTo and file version 7.
Fixes#6972. Supersedes #7635.
Co-authored-by: yoriswind <yoriswind@yahoo.com>
While a linear dimension is placed, each preview starts again from the
document as the placement began. The tool now reads the lines of the
other dimensions from that document (the new ToolContext field
interaction_doc), not from the document a command changed in between, so
a dimension that a command moves or hides and that the next preview puts
back does not leave the placed dimension on a level the committed
document does not have.
The engine test now drags a dimension out, runs dimension.update or
object.hide on the other dimension, releases, and checks the committed
line against that dimension as the document has it. The tool test that
checks which dimensions read lines also covers radius and diameter
dimensions.
A click on the last anchor retracts its handle, an Alt click over the path
goes to the Anchor Point tool, and a join with an end that lies on the last
anchor merges the two ends. None of these adds a segment, so no rubber band
shows there. The measurement label measures to the anchor the band ends on
instead of the snapped pointer. A press and a hover no longer search for an
end at the snapped point when snapping left the pointer where it was.
Saved and recorded dimension options carried "arrowHead": null even
without a stroke head, so a recorded dimension.create failed in versions
that do not know the option. The field is now left out when it is null.
dimension.create, dimension.update and Dimension Tool Options still take
it. The name is read without a copy of its own, and a name longer than
any built-in one is refused before it is parsed. Through ui.dialog.set,
an arrowStyle set in Dimension Tool Options clears arrowHead, and a
built-in arrowHead sets the arrowStyle of its Arrow Style entry, as that
menu does. The Arrow Style field reads only a built-in head's name from
a draft.
The Stroke panel and Arrow Style look up a built-in arrowhead's name in
the catalog's arrowhead rows first, then its plain row. Every complete
catalog gets an arrowhead row for Feather, so the Feather arrowhead is
named as an arrowhead in each, and the de, gu, it, ja, ko, uk, vi,
zh-hans and zh-hant catalogs no longer show it in English.
Versions that have the stroke arrowhead but do not read arrowHead keep a
dimension's saved arrows until they draw the dimension again, and then
draw arrowStyle; versions without the stroke arrowhead do not open the
file. The params text, the doc comments, docs/dimensions.md, docs/mcp.md
and docs/target-app-parity.md say so.
The French Line Arrow row moves next to the other rows of its block.
.cmx exchange files with 32-bit coordinates open and place as editable
art. vectorcraft-cdr reads the RIFF form CMX1, its header, the color,
pen, line type, dash, outline and arrowhead tables, and each page's
instructions in drawing order, into the drawing model the .cdr reader
uses, so the importer maps pages, layers, groups and curves with uniform
fills and outlines the same way. A layer that holds nothing is left out.
A page that gives no size of its own takes the size of the drawing's
bounds, which the page header stores, and is centered on them.
Text, images, rectangles, ellipses, clipping paths, fills other than
uniform ones and arrowheads are left out, and lenses are not applied;
the warnings name each kind, with rows in every complete catalog.
Big-endian files and files with 16-bit coordinates are refused with a
message. Layouts and their sources are rows R53 to R63 of
crates/cdr/PROVENANCE.md; tests use synthetic files only.
- An absolute-colorimetric conversion from CMYK starts from the source's
absolute appearance.
- An assigned profile that was removed counts as the working space when
copied colors are compared.
- Colors that can't convert are listed with convertible false, start on
Preserve Numbers, and the dialog disables Convert for them.
- Paste on All Artboards leaves the backgrounds of copied artboards out of
the question (clipboard.profileMismatch allArtboards).
- A converting paste into its own document keeps its image keys.
- An open answer is refused once Color Settings change the question; the
dialog asks the new question, or opens by the policy.
- Files opened while a question is open ask their own questions in turn.
- OK on the paste question and on Swatch Conflict checks again where the
paste runs and asks again when the question changed.
- docs/mcp.md and the command help describe these rules.
The engine test that runs commands while a linear dimension is placed now
also locks the other dimension, as well as hiding and deleting it, and
checks that no guide runs along its level.
docs/dimensions.md says that layers and groups count toward the 20,000
objects the tool reads for levels.
A loaded ICC CMYK profile as the device to simulate showed its darkest
ink without the color settings' black-point compensation, so Simulate
Black Ink made no difference there. It now shows it as the working CMYK
proof of the same profile does, and Simulate Black Ink shows the press
black as gray.
Cancel and turning Preview off now put back the proof view the dialog
found even when its device profile was removed since, and redraw the
documents. Running Proof Setup again while the dialog is open keeps
the open dialog, so Cancel still restores the first view.
The Preserve CMYK Numbers tests put the working color settings back
when they end, a failing run included, and the mask test checks the
proofed square's coverage against the unmasked K100 square and the
page.
Arrow Style in Dimension Tool Options and in the Properties panel lists
Filled, Open, Tick and None, then the other 38 built-in Stroke panel
arrowheads, each with its drawn preview. The dimension line draws the
chosen head at both ends.
A dimension's options take a new arrowHead value: null, or a built-in
stroke arrowhead name as stroke.set takes it. The menu writes arrowStyle
filled with it, so versions that do not read arrowHead open such a
dimension with Filled arrows. Documents and tool settings saved before
open unchanged. Custom arrowheads and unknown names are refused.
Fixes#8049Fixes#3222
While a linear dimension is placed with Smart Guides on, the tool reads
the lines of the other dimensions again when the document changes, so a
dimension a command hides, locks or deletes stops being a level, and one
shown again or grouped is a level again. The preview of the dimension
being placed is left out of the lines and out of the 20,000 objects the
tool reads.
A pattern's tile drawn for a proof that preserves the colors' numbers
kept the proof's image tables for its opacity masks, so a mask's image
was proofed and the mask covered differently than outside a pattern.
The mask now leaves its images as they are when the tile's ink carries
that proof, as it does for the frame's proof.
Over the path's first anchor, a click closes the path on that anchor; over
an end of another open path, it joins the two, and the segment arrives
along that end's own handle. The preview ended at the pointer and arrived
without a handle, so the segment moved by up to the pick tolerance at the
click and changed shape when the other end was smooth. The preview now
ends on the anchor the click uses, with that anchor's handle, and picks
the anchor at the pointer before snapping, in the order a press does.
Part of #8296.
Measure effect-bearing Align to Path content after spine placement, retaining
the conservative envelope and covering damage containment with original
software-rendered move and Undo controls.