Commit Graph
19258 Commits
Author SHA1 Message Date
dotCooCoo d8a25c4e9b Merge main into fix/clip-effects-hit-test 2026-11-14 09:30:12 -08:00
dotCooCoo 1d94c97425 Selection: symbol parts count the Preview of the instance's layers
Direct Selection on a dynamic symbol's instance below a layer whose
Preview is off tested and outlined the art in Preview, where the canvas
draws it in outline with the plain clipping paths. When a clipping
path's effects left no region, a selected object in its clip group kept
an outline cut to the plain clipping path.

- `hit::symbol_part_at` and `hit::symbol_part_outline_in_view` count the
  layers around the instance, the isolated container and the layers
  around it apart, as clicks outside symbols do.
  `symbol_part_outline_in_view` takes the click options in place of the
  outline flag.
- The outline of an object is empty when the effects of a clipping path
  around it leave no region.
2026-11-14 09:30:12 -08:00
dotCooCoo 4b5c09c543 Merge main into fix/paste-copied-file-size-limit 2026-11-14 09:28:46 -08:00
dotCooCoo c8ce44acb6 Merge main into fix/confined-exports-script-paths 2026-11-14 09:28:41 -08:00
dotCooCoo 9838e4897d Merge main into fix/type-no-op-undo-more 2026-11-14 09:28:29 -08:00
dotCooCoo 2925fb4487 Merge main into feat/da-complete-messages 2026-11-14 09:25:42 -08:00
dotCooCoo 4872620853 Merge main into fix/svg-raster-keeps-resolution 2026-11-14 09:25:37 -08:00
dotCooCoo 4832f06ea4 Merge main into fix/pdf-tiff-keeps-icc 2026-11-14 09:25:31 -08:00
dotCooCoo b9f3cf7cc7 Merge main into fix/custom-toolbar-errors-translated 2026-11-14 09:22:38 -08:00
dotCooCoo d8605229cd Merge main into fix/3d-shadow-builds-once 2026-11-14 09:22:36 -08:00
dotCooCoo 40eafe9c64 Merge main into fix/ai-wrap-options-edge-cases 2026-11-14 09:22:28 -08:00
dotCooCoo f05455a259 Merge main into fix/blend-reversed-key-stroke-direction 2026-11-14 09:19:23 -08:00
dotCooCoo 585660d12d Merge main into fix/singular-messages-translated 2026-11-14 09:19:18 -08:00
dotCooCoo 87da8132eb Merge main into fix/ai-envelope-budget-warped-type 2026-11-14 09:19:15 -08:00
dotCooCoo 859a4e4b83 Merge main into fix/library-panel-names-translated 2026-11-14 09:15:47 -08:00
dotCooCoo c454a5ad3b Merge main into fix/fileinfo-control-characters-message 2026-11-14 09:15:45 -08:00
dotCooCoo 9e61b5ee64 Merge main into fix/sv-menu-rows 2026-11-14 09:15:39 -08:00
dotCooCoo ed03357502 Merge main into feat/arrange-nest 2026-11-14 09:12:06 -08:00
dotCooCoo f1281bc0f9 Merge main into fix/svg-filter-messages-tr-labels 2026-11-14 09:11:42 -08:00
dotCooCoo 60ce2c9fdf Merge main into fix/sv-message-rows 2026-11-14 09:11:36 -08:00
dotCooCoo 96d3fb79ba Merge main into fix/i18n-adjacent-placeholders 2026-11-14 09:07:20 -08:00
dotCooCoo ef4b852df6 Merge main into fix/ru-message-rows 2026-11-14 09:07:10 -08:00
dotCooCoo 77d4c1cc33 Merge main into fix/graph-series-group-opacity 2026-11-14 09:06:41 -08:00
dotCooCoo cfdc6a52a6 Merge main into feat/script-file-folder-write 2026-11-14 09:01:52 -08:00
dotCooCoo 9f9cd4815f Merge main into fix/i18n-justification-order-message 2026-11-14 09:01:51 -08:00
dotCooCoo 6e9b6f0311 Merge main into fix/composite-font-error-translations 2026-11-14 09:01:49 -08:00
dotCooCoo 9d6d9da79a Color Wheel: a press held on a harmony marker applies its color
A press on a harmony marker that is held past the length of a click
without leaving the marker no longer drags the hue ring under it: the
color stays as it was while the press is held, and releasing it on the
marker applies the marker's color, as a click does. A press that leaves
the marker still moves the ring's hue.

Harmony Rule in the panel menu is gray while the box shows, as Show
Harmony is. The catalog rows for Show Harmony, Harmony Rule and Harmony
color move next to the other Color Wheel rows.

Docs: docs/control-protocol.md lists the harmony and harmonyRule keys of
ui.colorWheel, and the Show Harmony sentence in
docs/target-app-parity.md moves to the Color Wheel panel entry.
2026-11-14 09:00:30 -08:00
dotCooCoo c8f046c74d Merge main into fix/aligned-paint-rows-of-design-art 2026-11-14 09:00:08 -08:00
dotCooCoo 4d39068dfe i18n: the menu id test finds an id shown in backticks
menu_items_never_show_an_id looked for a dotted id outside backticks only, so a
label that was an id in backticks, or an effect id with no dot, passed. It now
reads the label with its backticks removed and compares it with the item's
command or effect id.
2026-11-14 08:59:44 -08:00
dotCooCoo f8e4a186bd Merge main into perf/remove-breaks-thread-frames-once 2026-11-14 08:59:36 -08:00
dotCooCoo ae39914b9f Remove Breaks: a partly selected story's frames are gone through once
When only some frames of a threaded story are selected, Remove Line
Breaks and Remove Paragraph Breaks built the story's frame list again
for every selected frame of it, so the work grew with the square of the
frame count. The command now notes a thread once its story is found not
to be selected in full, and reads that thread's other selected frames
on their own without going through the thread again. Each selected
frame still loses its own breaks, in the order selected, as one undo
step.

A test-only counter in threads.rs counts story_in calls, and
remove_breaks_goes_through_a_partly_named_story_once checks both break
kinds with frames named out of order and twice.
2026-11-14 08:58:57 -08:00
dotCooCoo 5589f629d4 Color Wheel: catalog row with the panel's rows, and test cleanup
- The "Show Out-of-Gamut Colors" row moves next to the other Color Wheel
  rows in each catalog, out of the alphabetical block it had split.
- The `gamut_grid` doc comment says the cells are tested on the
  working-RGB color of a pick, before it is converted to CMYK or Lab.
- The profile test unregisters its ICC profile in a drop guard, so a
  failed assertion does not leave it registered for other tests.
- The `color_wheel` field's doc comment in `state.rs` is rewrapped.
2026-11-14 08:57:06 -08:00
dotCooCoo 4b0a5f53e4 Status bar: a Copy or Cut without notes clears an earlier one's notes
A Copy or Cut whose formats have no notes clears the counted message and
hover notes that an earlier Copy or Cut left, while nothing has set the
status since. A Copy of ruler guides alone does the same. Any other
message stays.

An Image Trace that made no paths shows its first note as it is, without
"Traced with {n} notes", and keeps every note for the hover.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-14 08:57:00 -08:00
dotCooCoo 40d0b31cbe Effects: the clipping path doc comment says what the member limit leaves of a compound path
When the member limit is reached among the paths of a compound clipping
path that has geometry effects of its own, the compound path still
becomes one path of its reshaped geometry. The paths that were not
visited go into that geometry as they are, and their own effects are
not applied. The doc comment of with_clip_effects_applied_while said
that they keep their effects, which holds for the members of a group or
layer only.

New test a_compound_clipping_path_takes_its_own_effect_at_the_member_limit
covers the compound path.
2026-11-14 08:54:44 -08:00
dotCooCoo 90a2bd0494 Graphs: aligned paint and stroke rows given with a design's art are rows of its stack
paint.setFill, paint.setStroke, paint.invert and paint.complement with an
item, stroke.set, stroke.setAdvanced, paint.editGradient,
paint.setGradientGeom and the paint.freeform edits read an item given with
aligned: true and the art of a graph design in a series first as a row of
the art's stack, as appearance.setItem and transparency.set do. Each other
object edits the row equal to it and an object without one is left as it
is. A row the art does not have, a row of the other kind, or a row no
other object has is an error, also when the art is the only object given,
and the document and its undo history stay as they are. Without stroke,
the gradient commands edit the kind of the art's row.

The objects and ids the commands report, a gradient spanning the
selection, and the last color and last gradient count only the objects
whose row was edited.
2026-11-14 08:54:28 -08:00
dotCooCoo 11bd1659f5 Selection: symbol parts follow the region a clipping path's effects give it
Direct Selection on a dynamic symbol's instance picked an object in the
region its clipping path's effects give it, but cut the object's outline
to the plain clipping path, so the outline came out empty or cut short.
In a layer of the art whose Preview is off, it tested the effect-shaped
region and the fills, where the canvas draws the plain clipping path and
outlines.

- `hit::symbol_part_outline` cuts to the bounds of the effect-shaped
  region. The new `hit::symbol_part_outline_in_view` takes the view's
  outline state, and the Direct Selection overlay passes it.
- `hit::symbol_part_at` tests art in a layer whose Preview is off in
  outline.
2026-11-14 08:51:22 -08:00
dotCooCoo 10225d82e5 Export: an HP-GL plot of the art's bounds leaves out images in symbol art
The bounds of a plot of the art's bounds no longer count the objects a
plot leaves out (placed images, objects at 0% opacity, unpainted paths)
when they sit in the art of a symbol. An instance whose symbol holds
nothing else is left out, so a document with only such instances is
refused with "nothing to export". The art of a dynamic symbol, and of a
group with effects, fills or strokes of its own, is measured whole.
2026-11-14 08:50:21 -08:00
dotCooCoo dac3fe54d8 Learn: Gujarati rows for the new command labels
The Gujarati catalog lists every menu and command label, and it had no
rows for Show Learn Tab, Show Skill and Back One Level. It now has them.

docs/mcp.md said the For you and Skills tab buttons run learn.tab. A tab
button runs it only when the panel shows the other tab, and the page now
says so.
2026-11-14 08:49:48 -08:00
dotCooCoo 84532dc0f2 Merge main into fix/svg-data-url-decode-bounded 2026-11-14 08:48:39 -08:00
dotCooCoo bb1b7e4f66 SVG import: image data URLs are decoded once each, within 512 MB per import
usvg decodes an image data URL every time it converts the element that
holds it, a `<use>` copy, a filter or a nested SVG image included, before
the image resolver is called, and nothing bounded the bytes decoded per
import.

Before usvg reads the imported SVG and each SVG shown as an image, every
`href` and `xlink:href` of an `<image>` or `<feImage>` that is a data URL
is replaced with a key. The resolver decodes each URL once, the first
time its key comes, and every later use gets the same image. All data
URLs of one import decode to at most 512 MB together (MAX_DATA_URL_BYTES):
decoding stops where a URL would pass it, and that image is left out with
a warning. A link spelled like a key gets a key too and is still read as
that link.
2026-11-14 08:47:35 -08:00
dotCooCoo d3789f2b0c Graphs: outlined labels and opened .ai graphs keep the plot in place at the next redraw
- A graph opened from a .ai file now saves `placedArt` too. Moving or
  restyling one of its labels before the first redraw no longer moves or
  stretches the plot.
- Type > Create Outlines on a graph's labels now adjusts the saved bounds,
  so the outlines do not read as a move at the next redraw. A move of
  the graph made before the outlining is still followed.
- A `placedArt` with no width or height falls back to the bounds of all
  of the art, as a graph saved without it does.
- `art_bounds` moves to the doc crate so the .ai reader can use it.
- docs/mcp.md describes `placedArt`, `placed` and when a redraw follows
  a move.
- Tests: a legend across the top, a legend after a right value axis and
  legend labels of several lines keep the plot in place through label
  size changes; moving a category label on its own; outlining labels
  before and after a move; a flat `placedArt`; a label moved in an
  opened .ai graph.
2026-11-14 08:47:03 -08:00
BFlat 460d211995 Merge pull request #7615 from storytold/fix/brush-freehand-needs-points
Keyboard Shortcuts: Paintbrush stroke needs points (fix main)
2026-11-14 23:46:08 +07:00
dotCooCoo 04df80f4e5 Docs: the Image Trace evidence lines give the continuous-tone cutoff as a tenth 2026-11-14 08:42:56 -08:00
dotCooCoo 2046c646fa Image Trace: blend settling caps its pairs of label changes at the size of a label copy
The pairs a band or group of strips keeps for its changed labels now grow
by doubling only up to the count that fits in a copy of its labels, so they
never take more memory than that copy. The next change moves them into the
copy.

- Tests: most of a share changing gives the same labels as when few change,
  for both settle passes and every share size (the copy path); both settle
  passes return a picture with no pixels unchanged.
2026-11-14 08:42:53 -08:00
dotCooCoo a4c513f101 Live Paint: Make starts a closed edge where its path starts
The edge built from a closed path that nothing cuts started at the anchor the
planar map gave it, so dashes, a width profile or a brush began at a different
place than on the path. The edge now starts at the anchor where its path
starts. An edge with no anchor there takes its dashes from its own start and
leaves off the profile and brush.

The command description and the progress doc say that dashes aligned to
corners and path ends are not fitted to cut edges.
2026-11-14 08:39:47 -08:00
dotCooCoo 3de44da6a6 Image Trace: a gray photo with little noise counts as continuous tone
The continuous-tone check exempts a neutral or single-curve picture when
sixteen colors leave at most a fifth of the error of eight. The
exemption is for flat art of up to sixteen clean levels, where sixteen
colors leave no error. A gray photo with 0 to 2 levels of noise measures
0.19, under the cutoff, so it was classed as flat art and traced without
smoothing, while its color original and the same photo with more noise
were smoothed.

The cutoff is now a tenth (VectorCraft's own value). Clean gray, sepia,
single-hue and duotone art of up to sixteen levels stays flat art.

Docs: docs/target-app-parity.md.
2026-11-14 08:37:49 -08:00
dotCooCoo da8f6ab721 Smooth tool: a whole closed path with a corner starts nearest its old start
When a drag reaches every anchor of a closed path that has a corner, the
path is cut open at the corner and refitted. The result started at the
corner unless the refit kept an anchor exactly at the old first anchor.
It now starts at its point nearest the old first anchor, at an anchor
there or at a new anchor split into the curve, as the other closed-path
cases do.
2026-11-14 08:31:41 -08:00
ruchirguitar 415783e926 Symbols: add right-click context menu to panel items 2026-11-14 21:59:45 +05:30
dotCooCoo e001227ce1 Selection: effects on a hidden member of a clipping group leave clicks alone
A clipping path that is a group clips by its visible members only. A
geometry effect on a hidden member made clicks inside the clip group
count the group's type by its glyph outlines, where they count it by its
frame when nothing has an effect.

Clicks now ask `effects::reshaped_clip_outline`, which gives a region
only when an object the clipping path clips by has a geometry effect.
`clip_outline` uses the same function.
2026-11-14 08:29:00 -08:00
dotCooCoo 42e967a4dd Document Info: Fonts counts the parts of a composite font
Type set in a composite font counted as one use of the composite
font's name, with the type of that name's face. Each text object now
counts once for each font its runs are drawn in: the fonts of the
composite font's parts its characters fall in, as `fonts` and Find
Font already list them.

Docs: docs/mcp.md.
2026-11-14 08:28:53 -08:00