DocState::proxy_mixed, which decides whether the Fill and Stroke proxies
show "?", walked every node of the document to find the selected
objects, even with one object selected. The Tools panel proxies, the
paint chips and the task bar ask for it on every frame whose revision
changed, which includes each frame of a drag preview, and new art asks
for it after a selection change.
Document::nodes_in_order finds every node with one of the given ids in
tree order. When the id cache holds each id once at a path that still
checks out, it reads the nodes along those paths; otherwise, and for a
selection of an eighth of the document or more, it walks the tree once,
as before. Unlike Document::index_paths it returns every node with a
repeated id, so a damaged file that repeats an id keeps the question
marks it had. proxy_mixed now gathers the selected objects through it.
Tests compare the result with a copy of the old walk for one object,
different fills and strokes, a group, a group with one of its objects,
two layers, a hidden object, Appearance items, picked gradient mesh
points beside another object, ids not in the document and a repeated id
with different paints, with the cache built and dropped, and for 200
random selections. A cost test shows that with one object selected only
that object is read and the tree is not walked. Document tests compare
nodes_in_order with a walk.
The gain shows on large documents. On 50,000 rectangles in 500 groups
on 5 layers (release build on Linux, thread CPU time, median of seven
alternating runs of both versions in one process; an ignored test,
proxy_mixed_timing, times them):
Selection old new
1 object 995 us under 5 us
2 objects, different fills 810 us under 5 us
a group of 100 875 us 5 us
all 500 groups 3,615 us 2,575 us
all 50,000 objects 4,075 us 3,470 us
Web shift and web snap now run before lossy compression again, so a pixel
is compared with the color its neighbor's entry is written as. Colors
shifted by hand are written after lossy, which still moves no pixel into
or out of them.
A path with too many segments for a window's map is left out of it. The finder treated such a path as cutting the area whenever its bounding box met the area, so a path made of subpaths far apart on either side of an area made the finder map every path, which fails past the segment limit, and the area could not be filled. The finder now checks the path's segments.
With one image selected, the Control bar's object label, Linked File or
Embedded, is an underlined link. A click on it shows the Links panel
wherever it is docked or floats, scrolls the list to the image's row and
shows the image's details in Link Info. The help page
(https://helpx.adobe.com/illustrator/using/links-info.html) describes
clicking this label for a selected linked object as a way to open the
Links panel.
VectorCraft's own rules: the Embedded label opens the panel too; the
click opens Link Info when it was closed; and a Show filter that leaves
out the image's row goes back to Show All. The panel's sort, thumbnail
size and DCS option keep their settings, and a panel that is already
shown stays where it is. The label of any other object stays plain text.
While Type > Find Font... is open, the dialog ran text.fonts on every
frame, and the missing-font walk on every frame where a folder picker is
available. Each walks all of the document's type and resolves its fonts.
The dialog now keeps both answers for the active document's uid, the
version of its content and the font database's generation, and works
them out again only when one of those changes. A new selection keeps
them. The list, its counts and statuses, and Find in Folder... are the
same as before.
With 2,000 point-type objects of 50 characters each, this took a median
1.53 ms of thread CPU time per frame in a release build on Linux; later
frames of one version now take about 10 ns. With 20 such objects it took
58 us per frame.
With the Anchor Point tool chosen, dragging a direction handle with Alt
held now links it with the opposite handle and makes the anchor smooth,
on paths and on a selected blend's spine. A drag without Alt still moves
one handle on its own, an Alt-click still retracts the handle, and the
Pen with Alt keeps moving a handle on its own.
- path.setHandle and object.blend.spine.moveAnchor take link: the other
handle turns in line at its own length; a retracted one is pulled out
to the dragged handle's length where a segment leaves the anchor on
its side, and stays retracted at an open end. A request that changes
nothing records no undo step; link with independent, a non-boolean
link and, for the spine, link without handle are refused.
- Anchor::set_handle measures long handles without overflowing, so
turning a very long handle no longer writes NaN or infinite points.
- The two new error messages have rows in the message catalogs.
Docs: docs/mcp.md, docs/ui-parity.md, docs/target-app-parity.md.
`token` on a string copied everything left in the string before scanning
one object, and `search` and `anchorsearch` copied both strings before
comparing them. A program that walks a string by what each call leaves
copied the rest of it on every call. All three now read the strings in
place and release the borrow before the scanned object is checked
against the budget and before the results are pushed. Results, errors
and the operations charged against the budget are the same as before.
Walking a 512 KiB string takes 16 ms instead of 518 ms with `token` and
1.0 ms instead of 27 ms with `search` (release build on Linux under load
from other builds, median of 7 alternating runs); on a 4 KiB string the
difference is under 0.1 ms.
Tests in tests_strings.rs compare each operator with the copying code on
the same operands (stack, error and operations left after every call),
check that the results see later writes to the string, and check that
no string is copied.
Art dragged off the canvas and released with Alt (Option on macOS)
held over a pattern swatch now becomes that pattern's tile art,
through the new object.pattern.replaceArt command, as one undo step.
Every object painted with the pattern draws the new tile. Before, the
drop made a new pattern swatch whatever the modifiers. The help page
describes replacing a pattern this way, with the pattern updated in
the file:
https://web.archive.org/web/20220911143322/https://helpx.adobe.com/pdf/cs6/illustrator_reference.pdf#page=226
The pattern keeps its name, swatch, tile and options (Size Tile to Art
refits the tile), and the dragged art stays on the canvas, selected.
Art that matches the tile art records no undo step. The command is off
while a pattern is edited, and refuses art painted with the pattern
itself, directly or through symbols, other patterns, graph designs,
brushes or a graph's stored paints. Alt over any other swatch, or a
drop without Alt, still makes a new pattern swatch.
Docs: docs/mcp.md, docs/target-app-parity.md.
Export 3D Object wrote a Revolve as one plain mesh, so graphics mapped
onto its side were left out of the file. The side's triangles are now a
mesh of their own with a PNG texture, as Extrude & Bevel's caps and the
plane already export.
- three-d: revolve_mesh_surface gives, for each triangle of the side,
the point of the unrolled side each corner shows, from the same layout
the drawn faces carry (SurfaceCell): around the axis, the angle times
the distance from it; along the profile, its length. End caps, cut
sides and other contours of a compound profile carry none.
- effects: a Revolve with graphics splits its mesh into the side, with
those points as its MeshGraphics art about the side's middle, and the
rest. In a group, the graphics go on the side of the member with the
longest profile, as the canvas draws them. A Revolve without graphics
builds the same single mesh as before.
- The params text of assets.export3D, docs/mcp.md and the progress line
in docs/target-app-parity.md describe the side textures.
A frame that finds Use Monitor Profile for Canvas off drops a waiting
request; a request made with the preference on is kept when the
preference goes off and on again between two frames.
The bridge's distance and arc-center math no longer squares lengths, so
circles larger than about 1e154 pt are bridged instead of refused, and
an outline that would not fit in f64 is refused instead of written with
non-finite anchors.
Text selected in a panel's label (a Document Info value, an Info panel
readout) could not be copied: Cmd+C, Cmd+X and the menu bar's Copy and
Cut always ran Edit › Copy or Cut, so the clipboard got the selected
art as SVG instead of the selected text.
- With label text selected, Copy and Cut copy that text and leave the
art. When no label copies anything (its panel is hidden), the art is
copied in the next frame. Formats an earlier Copy or Cut has not
written to the system clipboard yet are dropped, so they do not
replace the copied text.
- A floating panel's window whose label copied its text no longer
copies the art after it. A Copy sent on from another window (a
floating document's) copies the art, not text still selected in the
main window's panels.
The line for layer.highlight said set and add always look rows up in a
set. The command builds the set in every mode only when more than 8 ids
name objects after the list is cut to 100,000; with fewer it searches the
rows. The Layers panel's range preview always uses a set.
The pointer leaves the area to start a search on another thread before the press, so the test covers a click that waits for that search, and it checks that the press settles it.
The row for "turn on Use Monitor Profile for Canvas first" had ordinary
spaces after « and before »; it now uses U+00A0 like the other
guillemets in fr.tsv.
With transparent pixels and Colors at 256, a custom palette of one opaque color and 255 colors mapped to transparent has no room for the last of those, and its pixels took the nearest entry left, which could be the opaque color. Such pixels now take the transparent entry when their nearest color is one that did not fit.
Chevron Arrow stretches only the shaft before its second chevron, so
both chevrons keep their length however long the path is. The Bundled
content row counts the Arrows library.
The colorimetric table of each built-in CMYK profile is checked on
solid and two-color overprint inks: CMYK to the connection space and
back through the profile's own tables lands within a Delta E 2000 of 3
of the original inks.
With Standard Anchors off, a circle near the canvas edge whose path with
anchors at the points curves past the edge is no longer previewed or
drawn, as shape.circleThroughPoints refuses it.
layer.new without `top` or `below` now reads the drawing mode: in Draw
Behind the new layer goes directly below the current layer, at its level
(a sibling below a current sublayer), as the help page describes
(https://help.adobe.com/archive/en_US/illustrator/cs5/illustrator_cs5_help.pdf#page=234).
The Layers panel button, the panel menu, Ctrl/Cmd+L and the Layer
Options dialog all go through layer.new. `top` and `below` keep their
meaning in every mode, Draw Normal and Draw Inside keep a new layer
above the current one, and New Sublayer is not affected.
Marks and Bleeds in the Save PDF dialog and the PDF preset editor gets a
link button beside Top, Bottom, Left and Right. While it is on, editing
one value sets all four; turning it on gives every side the top value.
It opens on when the four values are equal, and choosing a preset or
Reset sets it again from that preset's values. With Use Document Bleed
Settings on, the button is grayed out and the custom values stay as they
were. The link is not an export option or a preset setting;
ui.dialog.set sets it as __bleedLinked and refuses anything other than
true or false.
The unconfined report path for an existing link is built from native
path components so Windows separators match the package report. JSON
assertions use the path encoded the same way Value::to_string does,
and the unconfined Document Info check reads the report text field.
Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
symbol.adjust checked each symbol instance in the selection against
every instance it had already collected, so I instances cost about
I^2/2 comparisons on every call, and the symbolism tools call it on
every drag frame. It now keeps a HashSet of the ids it has pushed. The
list is unchanged: the same ids in the same walk order, each kept where
it is first reached.
A unit test checks the result for nested groups, a group listed twice
and members listed before and after their group, and compares it with
a copy of the old collector.
docs/target-app-parity.md listed the SVG/SVGZ and PDF format entry twice; the shorter copy is removed and the entry that also names the .ai and EPS image sources stays.
The G5 entry in docs/gaps.md, the Strokes and Bundled content rows and the brush library evidence in docs/target-app-parity.md, the M10 row in docs/roadmap.md and the docs/ui-parity.md checklist row name Decorative and count eleven generated libraries.
The Strokes rows and the Bundled content row in docs/target-app-parity.md and the M10 row in docs/roadmap.md count eleven generated libraries and name Engraving, and the docs/ui-parity.md checklist row lists it.
A dialog taller than the app window was drawn past its top and bottom
edges, with no scroll bar, so its first options and its buttons could not
be reached. At 1024 by 480 this happened to SVG, EPS and DXF Options,
Save PDF, Save for Web, Export for Screens, Print, Preferences, Keyboard
Shortcuts, New Document and Find Font.
- The body of a shared dialog scrolls while the dialog would be taller
than the window, and its heading and buttons stay in view.
- A dialog window without such a body (Preferences, Keyboard Shortcuts,
New Document, Find Font) scrolls as a whole while it is taller or wider
than the window, at the 800 by 500 minimum window size too.
- Dialogs that already size their lists from the window's height
(Character and Paragraph Style Options, the Color Picker, Import
Shortcut Set and the dialogs that use scrolled_rows) are not scrolled
again.
- A dialog that is closed and opened again starts at its top, for its
scrolling body, its scrolled_rows and the window as a whole, instead of
where it was left.
- Save for Web in a window narrower than its full layout (800 pt, the
smallest window) draws its preview panes narrower, down to 240 pt, so
the settings column and the buttons stay in view instead of scrolling
off to the side.
- A field being edited keeps its text and focus when the window is resized
so that the dialog starts or stops scrolling: its contents keep their
ids either way.
Tests: the Save for Web settings and the Print sections show their bar at
rest; the export option dialogs at 1024 by 480 stay on screen with their
buttons in view and their bar drawn; Preferences, Keyboard Shortcuts, New
Document and Find Font at 800 by 500 stay on screen with their bar drawn;
Save for Web at 800 by 500 shows its settings and buttons and no sideways
bar; a modal window scrolled with the wheel opens again at its top, both
when it scrolls as a whole and when its rows scroll; a field keeps its id
when the body or the window starts or stops scrolling. The Print test that
types into Scale W picks W as the leftmost of the matching fields, since
the accessibility tree lists its nodes in no particular order.
Fourteen Polish rows that came in with main's preference descriptions
named art and artwork grafika. They now use kompozycja in the case each
sentence needs, as polish_rows_call_artwork_kompozycja requires.
Common Tangents (addon.pathtools.commonTangents) now also takes a point,
a path of one anchor, together with a convex closed path. The lines run
from the point to where they touch the path: two from a point outside
it, one from a point on its outline (centered on the point and as long
as the path is wide along it, or the whole straight side the point lies
on), and none from a point inside, which leaves the document unchanged
and returns a warning. Centerline adds the line from the point to the
path's center. Every Tangents value gives the same lines; two points
are refused.
The geometry treats the point as an outline whose support value is
p . n, so the existing root search finds the lines.
Docs: docs/mcp.md, docs/target-app-parity.md, ROADMAP. The new warning
has a row in every catalog.
A call with outLeft or outRight but no outIndex set the incoming point
alone and reported success, so the outgoing widths were dropped. It is
now refused as a missing outIndex, and the document and history stay
as they are.
The brush library evidence in docs/target-app-parity.md names Arrows and describes its five brushes, the Strokes rows and the M10 row in docs/roadmap.md count eleven libraries, and the docs/ui-parity.md checklist row lists Arrows.
A selection made before the reduction or the color count changed, or set
through ui.dialog.set, could name a color the table no longer holds. Delete
Color stayed enabled for it, added the absent color to colorTable.deleted
and fixed the table as a Custom palette although no shown color was
deleted. Delete Color is now enabled only for selected colors the table
shows and deletes only those; a selection with none of them is cleared and
the table is left unchanged.
The French row for "Automatic Plane Positioning is off" uses a colon with
a no-break space before it, as the French catalog's other messages do. The
Traditional Chinese row puts the setting's name in 「」, as the catalog's
header asks for the name of a setting.
layer.highlight searched the highlighted rows once for every id it was
given, so a range of n rows took about n^2/2 comparisons, and the panel's
preview of the rows (apply_row_click) did the same before sending the
command. Both now keep a set of the highlighted rows beside the ordered
list. layer.highlight builds the set only for more than 8 ids, so a
one-row Ctrl/Cmd-click toggle does not pay for it.
The rows, their order, the returned rows, the current layer and the
revision are unchanged; tests compare the command with the per-id search
on 3,000 rows and the widget with it on 5,000 rows.