When the sweep cuts the paths into more than SHAPE_BUILDER_MAX_MAP_EDGES
pieces, the Shape Builder falls back to the regions of the filled areas,
which are capped separately. The docs said it then finds no regions.
(cherry picked from commit 1b59873456)
Paths that cross each other many times are cut by the sweep into far
more pieces than they have segments, and building the regions and edges
of those pieces took minutes and gigabytes of memory. 400 circles
stacked nearly on top of each other (1,600 segments) were cut into
about 320,000 pieces, and their map took 60 s and 4.2 GB, enough to
make the whole computer unresponsive.
The Shape Builder now stops after the sweep when it cuts the paths into
more than SHAPE_BUILDER_MAX_MAP_EDGES pieces (twice
SHAPE_BUILDER_MAX_SEGMENTS, what open paths that cross nothing make at
that cap) and finds no regions. The filled-area regions it falls back
to are capped the same way.
(cherry picked from commit 7a46d5ec56)
A corner in one subpath gave the stroke's join to the lines of a curve
in another subpath that met at the same point, so a miter could be
drawn there instead of a round join. The corners are now kept per
subpath and each subpath of the outline reads only its own.
Test: a curve's outline is the same with and without a second subpath
that has a corner at the curve's start.
(cherry picked from commit f1ef1a4e39)
Since #9972 a thin stroke along a curve is drawn as lines, and where two
of those lines met at a sharp angle the stroke's own join was drawn
there. Along smooth anchors that sit close together after a bend, or a
curve that bends tightly, the lines turn sharply, so a miter join drew a
spike past the stroke and the smooth curve showed sharp corners on the
canvas. The document's anchors are unchanged; only the drawing was
wrong.
The stroke's join is now drawn only at the path's own corners, where
two segments meet with tangents that are not in line. Where the lines a
curve is drawn with turn sharply they meet with a round join, as the
stroke along the curve itself is round there.
Tests: a bend followed by smooth anchors 0.1 and 1 apart keeps every
outline point within the stroke's width of the curve and covers it;
with long handles the outline matches the curve's own outline away
from its edge; 200 random cubics with a miter join keep their outline
within the stroke's width of the curve.
(cherry picked from commit 69ff74a63b)
With the Selection tool, a selected path drew the direction handles of
every anchor, so it looked as if Direct Selection were active. The canvas
marks now draw the handles only where a tool drags them: a partial
selection's anchors, a selected segment, and a path selected itself under
a tool that edits anchors. Every other selected path, including the
members of a group or compound path selected whole, shows its anchors
selected with no handles. A lone anchor selected whole is drawn with its
handles retracted.
(cherry picked from commit 1e4e7cfbfe)
An envelope of type whose type a text variable binds kept its drawn
art, its type hidden. The variable library names the hidden text object
a slot became, and a live envelope's type takes its place with an id of
its own, so the binding would have been dropped. Now such an envelope
opens live like the others, and a binding to the hidden text object
goes to the type in the envelope's contents. Where the drawn art is put
back (the page holds the envelope against the layers), the binding
stays on the hidden text object put back with it. A data set already
rewrites type in an envelope's contents, and the live envelope draws
from its contents, so the envelope bends the new text.
The editing copy of a .ai save left out bindings of type in an
envelope's contents with a warning; it now writes them for text
variables, so the type reads back bound. A visibility variable on the
type still keeps the drawn art: in a live envelope it would show and
hide only the type, not the envelope.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 4026cdb928)
The variable library can name a text object by its story's XML id
(AI11_StoryUID in the text object's /StoryDictionary) rather than the
object's own AI10_ArtUID. The reader only remembered AI10_ArtUID, so
such a binding found no object: the type came in unbound and the import
noted the bindings as skipped. The story's id now names the slot of the
story's first frame, the same way the object's id names the object;
for a story also written on %_ lines, the plain copy's slot, which is
the one the reader keeps.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 923f6bd7ee)
Document Info was left out of the panel forms that scroll inside their dock group, so in a short group its lower rows could not be reached. It now scrolls like the other forms.
A test draws every panel in 120 pt and 60 pt groups and scrolls each one until its lowest control is in view.
(cherry picked from commit d7686cd9f4)
With a number field focused, a wheel notch anywhere in the window stepped
that field. In Pattern Options at 220 by 320 points, with Width focused at
10 pt, a notch over Size Tile to Art changed Width to 9 pt.
`root_env` now turns on the framework's pointer-scoped field wheel
(`RootEnv::pointer_scoped_field_wheel`, storytold/craft-libs#3805). The
desktop and web hosts both take their root from it. A notch over the
focused field still steps it. Elsewhere the wheel scrolls what is under the
pointer, and an unfocused number field under the pointer is not stepped.
(cherry picked from commit bbe091e791)
(cherry picked from commit 8bacfd4cfa)
With assets in the panel and many format rows, the Export Settings
section grew past the top of the panel, so its heading and the first
format rows could not be reached. The settings now sit in a scrolling
stack that takes at most half the panel's height, as the CSS
Properties panel does, and the preset name row, Export and the footer
bar stay below it.
(cherry picked from commit e94496b42f)
(cherry picked from commit 3d593bfac8)