- The resource names a command's steps compare are charged when the command
ends, whether vc.run or the object model ran it, so repeated Swatch.color
edits over many swatches use up the run's data budget.
- symbolItems.add() reads the new instance's id from the command's result
as an integer, so an id above 2^53 names the placed instance.
- A swatch, symbol, style or brush that app.undo(), app.redo() or any other
command removes is noted after every command, not only after vc.run, and the
note is kept until the object model next looks up an object. A later
resource given the removed name no longer revives the old object. A call
whose change is put back drops the removals it noted.
- File > Revert leaves every resource object made before it stale, as it
already does for page items and text styles.
- swatches.add(), spots.add(), swatchGroups.add(), symbols.add() and
Symbol.duplicate() take the object's slot in the same step as the command,
so a run at its object limit throws with no new resource kept.
- Reading a collection by index lists its names once while the document is
unchanged, instead of once per read.
- removeAll() is charged for every record it looks at and for each swatch of
the color groups it deletes.
- Swatch.color compares and converts an RGB color through the profiles the
swatch's own document is assigned, not the front document's.
- Brush.applyTo refuses a path in a compound shape, at any depth, as it
refuses a path in a compound path: the shape's paint is drawn, not the
path's.
Docs: docs/mcp.md states when Brush.applyTo runs no command, the case where a
process swatch keeps an RGB color, and when resource objects go stale.
* SVG import: refuse an SVG the memory can't hold instead of running out
The element limit now follows the installed memory, or the process's
cgroup limit where that is lower: about 8 KB an element, up to the
999,999 elements usvg reads. Past it the SVG is refused with an error
naming the memory, before usvg makes its tree.
Fixes#10165
* Tests: the shared element limit test follows the machine's limit
When outlines replace circles that sit in different groups, the circles
that go left their groups behind with nothing in them. Each group or
compound path left empty now goes in the same undo step, and so does
each group above it left empty in turn; layers and sublayers stay.
Smooth Bridge refused a selected group with "select two or more circles
to bridge", even when every object in the group was a circle, so
grouping circles first and selecting the group did nothing. The command
now takes the objects inside each selected group (at any depth; a
clipping group stays one object), so a group of circles is bridged in
place, inside the group. A group that holds anything other than a circle
is still refused, as before.
The dialog's Reach field counts a selected group's objects too, so it is
available when a selected group holds three or more circles; a circle
selected together with its group counts once.
The parity doc, docs/dimensions.md and two comments said the box shown
while hovering a path with Alt held goes through the path's outermost
points. It follows the box the strokes paint, which reaches 0.5 pt past
those points for a centered 1 pt stroke.
dialog_lengths_show_in_the_general_unit confirmed the Move dialog and
opened the Rectangle dialog in the same frame. Move holds its OK, so it
stays on the stack until the next frame, and Rectangle is laid out once
over it and once more, unseen, after Move leaves. The test drew two
frames and passed only because the frame after the selection change ran
a second pass for the Properties panel. With that panel drawn in one
pass, the second frame showed nothing and the assertion failed.
The test now draws a frame after OK, so Move has closed before the
selection change and the Rectangle dialog. Its assertions are unchanged.
With Alt held, the Dimension tool's box over a path and the dimension of
the whole path it places now reach the outside of the path's strokes
whether Use Preview Bounds is on or off. Before, they did so only with
Use Preview Bounds on, and with it off they went through the outermost
points of the path.
Every dimension of a whole path the tool places now records
`"preview": true` in its extent source. Dimensions saved without it keep
measuring between the outermost points, and `dimension.create` still
defaults `preview` to false.