* 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.
Check Script now counts print on a document as a file write when the
document is reached with member names as string literals in brackets
(app['activeDocument'].print(o), app["documents"][0].print(o),
app.documents['getByName']('Draft').print(o)), also through a
variable, parentheses, a closed function or catch scope, and included
files. A string key on a collection stays an item lookup by name
(app.documents['Draft']) unless it names one of the collection's
documented members or an Object.prototype member. The report still
shows each chain as written.
Takes #9052's File and Folder design: a File keeps its path in
Class::FsEntry, which now also holds the native slots this branch keeps
out of a File's own properties. Hosts give File and Folder values with
file_ref and folder_ref, so the separate File ref writer is removed.
The save, export and open warnings keep the full method name as their
prefix (Document.saveAs:, Document.exportFile:, app.open:,
Document.close:). A script command's read stops at the smaller of the
script read limit and a scoped read limit, so app.open's limit no
longer skips the script read limit. PageMarksTypes is defined 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.