* Text styles panel: add item right-click context menu (Options, Duplicate, Delete, Redefine)
* fix(text-styles): require text target for clear overrides and update parity docs
- Forward secondary clicks on name label links for stroke/fill and effect rows
- Enable Reduce to Basic Appearance when any selected subject needs reduction (including compound path children)
- Add headless regression tests for label context clicks and multi-selection reduction
- Update M14 roadmap entry and UI parity evidence, and clean conflict markers in ui-parity.md
Show the native point marker at the existing cut target, respecting consumer endpoint eligibility/canonicalization and current snapping/selection. Keep cut commands unchanged.
Closes#8655.
Part of #4934. type.retype set each line of outlined text as its own
point type object, even when the lines stack as one paragraph.
- Opaque, Normal lines with a solid fill or none and no stroke that
follow each other in paint order, with the same group, paint, font,
size, turn and tracking, each the same leading (0.25 to 3 times the
size) below the one before and lined up at their starts, ends or
centers, become one area type object. Its leading is Auto when Auto
puts the last baseline in place, else the mean distance between the
baselines, and its alignment is left, right or center. Its frame is
Convert To Area Type's, now shared through typemenu::point_to_area.
An untracked line of one or two glyphs takes the others' tracking.
- Every object is laid out and compared with the outlines first: when
area type would move a glyph the lines stay multi-line point type.
When that also moves a glyph, the block ends at that glyph's line and
the lines after it join again. Type whose bounds would reach past the
coordinate limit stays apart.
- Text Wrap objects above new area type are taken into account; when
checking them on the changed layers would copy more than 2,000,000
anchors, subpaths and shapes, the lines stay multi-line point type.
text::wrap_copy_units counts that work without copying the outlines,
and wrap_work no longer copies them to count.
- The result's fonts entries add leading and area, and texts join an
object's lines with line breaks.
These rules are VectorCraft's own. Docs: docs/mcp.md (Retype several
lines), docs/type-parity.md (Retype row), docs/target-app-parity.md,
docs/roadmap.md (M7 row).
still_wait started its STILL_SECS wait again whenever the cache key
asked for changed, and the key holds the document's revision. After a
heavy document's view moved and stopped while a drag went on editing
it, each edit was drawn into the frame shown and restarted the wait,
so the canvas never rendered whole for the view while the edits went
on. The wait now starts again only when the document or the view
(zoom, centre, size, pixel density, rotation, Pixel Preview's pixels)
changes. The checks that render at once when more than the view
differs from the frame shown are unchanged.
Refs #8688
In the web build (no render worker), while the view of a document whose
last render took more than 8 ms moves, the canvas draws the last frame
moved with the view and renders once the view is still. An edit in
that time rendered the whole canvas at the new view, every frame: a
tool drag held at an edge of the canvas (#8551) or a wheel scroll during
a drag did that on each step.
Such an edit is now drawn into the frame shown, at the view it was
rendered for: only the part the edit changed (changed_pixels). The
frame stays drawn reprojected and renders whole once the view has been
still for STILL_SECS, as for a view change without an edit. An edit
that changes more than half of the frame, or one while more than the
view and the document change, renders whole at once as before. The
partial redraw of draw_frame moves into draw_changed, shared by both.
Fixes#8688
Part of #4934. type.retype set a line spaced by tracking as one point
type object per glyph, since untracked type does not draw the glyphs
where the outlines are.
- A line of three or more glyphs that most gaps space evenly apart now
takes that spacing as its tracking (1/1000 em, tried rounded to a
whole number within 0.05, then as measured). The font's advances and
pair kerning are left out of the measure, and word spaces are counted
after the tracking. When untracked type also draws the line, the line
stays untracked if the tracking is under one unit or the tracked type
would drop a gap one space wide, so "a b c" stays "a b c". Negative
tracking is set only on opaque, Normal lines with a solid fill or
none and no stroke.
- Where a line splits, the glyphs after the split take the tracking
their own gaps give, and a tracked line whose type misplaces its
first glyphs is set again without tracking. The measure has a layout
budget, so long or widely spaced lines are bounded.
- The result's fonts entries add tracking.
These rules are VectorCraft's own. Docs: docs/mcp.md (Retype tracking),
docs/type-parity.md (Retype row), docs/target-app-parity.md,
docs/roadmap.md (M7 row).
Trim View hides the guides, so a guide dragged or double-clicked out of a
ruler while it is on was made but could not be seen, and the drag turned
the stored Show Guides choice on. Now neither makes a guide: no preview
line, no undo step, the stored choice is left alone, and the status line
says why. A drag already going when Trim View turns on ends as a release
off the canvas does.
Trim View only clipped the art to the artboards: ruler guides, paths
made into guides and the grid still drew across the pasteboard. Public
forum threads describe Trim View hiding them, with Show Guides and Show
Grid unavailable until it is off.
ViewFlags::guides_shown() and grid_shown() now say whether they draw,
and the canvas, the tiled panes, the art raster, hit testing and the
tools' snapping read them. Show/Hide Guides and Show/Hide Grid are
greyed out while Trim View is on (menu bar, canvas context menu,
Properties) and refuse to run; the stored choices are kept, so they
come back as they were. A selected guide path is deselected when Trim
View hides it, as Hide Guides does. The rulers stay.
Fixes#8363