Commit Graph
10247 Commits
Author SHA1 Message Date
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
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
dotCooCoo ef74b358f6 Docs: a clipping path that paints applies its fill and stroke effects after the group's
The geometry effects of a clipping path's own fills and strokes stay live when the clipping path has a fill or stroke, so they reshape it after the geometry effects of the clip group and of the groups around it.
2026-11-14 08:28:38 -08:00
dotCooCoo 4a7acfe0ee Color Wheel: color vision chips show hex as the Color panel does
- The chips report and show their hex value as the Color panel's hex field
  writes it (828282), not as #828282.
- The saved Show Color Vision Preview setting reads through the Color
  panel's existing reader (`deserialize_rgb_percent`) instead of a copy.
- The key test moves the keyboard focus to each chip with Tab before it
  presses Enter and Space.
- A test checks that `{"view": "box", "channel": "red", "vision": 1}` returns
  an error and leaves the view and the channel unchanged.
- docs/mcp.md says the command returns `{view, channel, vision}` in one
  place, and that `null` keeps the setting.
- The module doc says the vision setting is kept with the preferences.
2026-11-14 08:25:58 -08:00
dotCooCoo f763b86fdc Color Wheel: OKLCH Sliders edit a color by lightness, chroma and hue
The Color Wheel panel's menu gets OKLCH Sliders: L, C and H rows under the
wheel or the box that edit the color by the OKLCH lightness (0 to 100 %),
chroma (0 to 100 % of 0.4) and hue of its display sRGB, as CSS Color 4
defines them. Each track dims the colors outside sRGB, and a tick on the C
track marks the largest chroma that fits; a color outside sRGB keeps L and H
and takes that chroma. The rows are gray, and the menu item and
ui.colorWheel {sliders: "oklch"} are refused, while the working RGB space is
not sRGB. The choice is kept with the preferences.

- vectorcraft-color: oklab.rs with OKLCH conversions and max_chroma.
- color.convert {to: "oklch"} answers [L %, C, H°].
- ui.colorWheel takes sliders next to view and channel.

Docs: docs/mcp.md, docs/control-protocol.md, docs/target-app-parity.md.
2026-11-14 08:24:33 -08:00
dotCooCoo 506f48daea .ai save: live graphs are written as graph records
Both .ai writers now write a graph that the .ai reader reads back as the
same graph with its records, so a saved graph opens again live, with its
table, type, axes and settings: %_Gs, the Gb, Gy, Gd, Ga/GA, Gz, Gc and
GC records, the graph's group with each series' group followed by a Go
tag, and %_GS (the published .ai file format specification, section 17
and appendix A). The records are the ones the reader in
crates/eps/src/import/ai/read/graph.rs (#7311) reads, in the form it
reads them.

The shared encoder in crates/eps/src/ai_graph.rs decides first whether
the reader keeps the graph whole: a column, stacked column, line or area
graph with a legend, settings the records carry, a table of 1 to 10,000
categories and 1 to 256 series with finite values, labels of at most 255
bytes without control characters, and art the reader attaches the graph
to. Any other graph is written as its art, with the existing warning, as
is a graph whose art the editing writer's object limit cuts short.
Tick-mark counts of 0 are written as 1, the count the reader keeps for
both.

Bar, stacked bar, scatter, pie and radar graphs, stacked column and area
graphs whose series marks carry a stroke their legend swatch lacks, and
line graphs with markers are still written as their art, with the
warning.
2026-11-14 08:20:05 -08:00
dotCooCoo 845a3bc9ca Merge main into fix/monitor-profile-after-blending 2026-11-14 08:16:04 -08:00
dotCooCoo 46c9f922c2 Type: a document draws only its own composite font definitions
While a document's composite fonts are lent, type naming a composite font
the document does not define is set as in a missing font, even when the
front document or the document a placed document sits in defines one of
that name. A document that defines no composite font gets an empty scope
too, so a document in the back, a tiled window, a thumbnail or an export
made while another document is in front no longer borrows the front
document's definitions. A temporary document drawn while a document draws
keeps that document's fonts, and type laid out with nothing lent still uses
the registered ones.

- FontDb::composite_font looks only in the latest loan of the database.
- lend_composite_fonts lends an empty set at the top level when the
  database holds composite fonts; lend_document_composite_fonts also lends
  one inside another loan, for placed documents, back-document measuring
  and threaded reflow on open.
- A loan that leaves out a registered font gets its own generation, so
  layouts made with that font are not reused under it.
2026-11-14 08:16:02 -08:00
dotCooCoo 745dccb376 Merge main into fix/learn-panel-commands 2026-11-14 08:15:49 -08:00
dotCooCoo f8f19f78ca Merge main into fix/ai-save-clip-object-wrap 2026-11-14 08:13:40 -08:00
dotCooCoo 261fa40d24 Merge main into fix/convert-to-text-locked-frames 2026-11-14 08:11:13 -08:00
dotCooCoo 804f844fcf Part of #978: the Color Wheel panel can gray out colors the CMYK space cannot print
The panel menu gains Show Out-of-Gamut Colors. While it is on, the wheel's
square and the box's color field draw gray over the cells of a 16 by 16 grid
whose colors fail the out-of-gamut warning's test (`Cms::out_of_gamut` on the
color a pick there would store). The grid is kept in panel state per channel,
strip value, color settings and loaded profiles, so it is computed again only
when one of them changes, including when a profile is loaded again under the
same name. `ui.colorWheel {gamut?}` sets it, and the setting is kept with the
preferences.
2026-11-14 08:03:37 -08:00
dotCooCoo ddae31bad4 TIFF: alpha after another extra sample places and opens as transparency
A CMYK or grayscale TIFF reads its alpha from the first extra sample whose
ExtraSamples value is 1 or 2, wherever it comes among the extra samples, at
8 and 16 bits, chunky or planar. TIFF 6.0 gives each extra sample its own
ExtraSamples value, in order, and asks readers to skip extra samples they do
not use.

- A CMYK file with alpha after an unspecified extra sample was kept as
  opaque inks; it is now shown as RGB with its alpha.
- A grayscale file with alpha after an unspecified extra sample opened
  opaque.
- A six-sample CMYK file whose ExtraSamples tag lists only an unspecified
  value no longer reads that sample as transparency.
- A white-is-zero grayscale file with an alpha channel opens; it failed to
  read before.
2026-11-14 08:00:43 -08:00
dotCooCoo bbe9480656 Shape Builder: an open path counts as filled by the fill rows that draw
Consider Open Filled Paths as Closed decided whether an open path was
filled from its top fill row only. A path whose top fill is None over a
painted lower fill stayed open, and one whose only painted fill was
hidden or at 0% opacity closed. The region map, merge inputs and the
Clicking Stroke Splits the Path cut now use Appearance::has_drawn_fill,
so any shown, painted fill row above 0% opacity counts, as the canvas
paints it.

The Shape Builder's Live Paint face and edge filters had the same
top-row check; they now use has_drawn_fill and has_drawn_stroke, so a
face or edge is taken when one of its rows draws.
2026-11-14 08:00:35 -08:00
dotCooCoo 93f9ec0346 Docs: only learn.markStep checks a tutorial id, not learn.resetProgress
docs/mcp.md said that for both learn.markStep and learn.resetProgress a
missing, non-string or unknown `tutorial` is an error. learn.resetProgress
takes no params and clears the progress without reading `tutorial`
(crates/ui-egui/src/panels/learn.rs), so the sentence now names the
tutorial errors under learn.markStep alone, and the rule that an error
changes nothing stays with them.
2026-11-14 07:59:21 -08:00
dotCooCoo 10f94b544d MCP: livePaint.info lists every appearance row of a face or edge
livePaint.info reported only the top fill of each face and the top
stroke and weight of each edge, so a lower row that draws under an
unpainted top row was not visible to a client. Each face and edge now
also carries `appearance`: every fill and stroke row, bottom first, as
{index, kind, paint, opacity, visible, width (strokes only), drawn}.
`drawn` follows Expand's rule row by row: the part is shown with an
opacity above 0, and the row is shown, has paint and an opacity above
0, and a stroke has a weight above 0. The existing `fill`, `stroke`,
`width`, `bounds`, `sources`, `gapOptions` and `gaps` fields are
unchanged.

The params text no longer says the group defaults to the selection:
the command takes `group`, or `id` when `group` is left out, and
returns an error without either.
2026-11-14 07:57:56 -08:00
dotCooCoo fbf2bee87b MCP: a malformed artboard or history index is reported as not a whole number
The artboard commands that take `index` or `indices`, a replayed
`selectedArtboards`, the artboard Align and Distribute commands
(`artboard`, `activeArtboard`), `edit.newDocumentFromState` and Paste in
Place, in Front and in Back now report a value that is not a whole number
with "`<key>` must be a whole number" or "`<key>` must contain whole
numbers", naming the key. A whole number that names no artboard or state
keeps `no such artboard`, `no history state N` or the paste range message.

- A null artboard `index` is `missing index`, as for other required keys.
- An `indices` value that is not a list, an empty list and a malformed
  entry each have their own message naming the key.
- `edit.newDocumentFromState` still uses the current state for an omitted
  or null `index`.
- Paste checks the form of both `artboard` and `artboards` before either
  range.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-14 07:57:00 -08:00
dotCooCoo 9f23b0a5a4 OpenType panel: the tracked-ligatures note reads every selected story frame
With the Selection tool, the note that ligatures are off while the text is
tracked read only the first run of the first selected frame. It now shows
when any character the panel reads has Standard Ligatures on, tracking
outside the shaper's limits and no explicit liga or clig tag, including
the runs of later frames of a selected threaded story, locked or hidden.
The panel's other controls already read those runs through
character::shared; a new any_style helper walks the same styles. The
panel's commands still change only the selected frames.
2026-11-14 07:52:03 -08:00
dotCooCoo 605a9df93a Color Wheel: the wheel shows the colors of a harmony rule
The Color Wheel panel menu has Show Harmony and Harmony Rule. With Show
Harmony on, the wheel's ring carries a marker for each other color of
the picked rule, filled with that color, and the markers follow the
current color. A click on a marker, or Enter or Space on a focused one,
applies its color as a pick on the wheel does; Alt applies it to the
inactive Fill/Stroke proxy. Screen readers read each marker as
"Harmony color" with its hex value.

The wheel takes the 15 Color Guide rules whose colors each have a hue
of their own. Harmony::apply_hsb gives a rule's colors as HSB, and a
gray base keeps its hue so the markers stay apart on the ring.

ui.colorWheel takes harmony and harmonyRule, and both are kept with the
preferences. Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-14 07:51:55 -08:00
dotCooCoo 4cfad8e56b Merge main into fix/ai-envelope-budget-warped-type 2026-11-14 07:51:15 -08:00
dotCooCoo 7d76b35710 .ai save: type written as outlines keeps wrapping by its bounds
Type that the editing copy writes as its outlines (mirrored type, type in
a clip or symbol, type the text document can't hold) put its Text Wrap
Options on the group of glyph outlines. The reader then wrapped area type
around the glyph shapes instead of the type's bounds, so the wrap region
changed when the file was opened.

The group now ends with an unpainted closed rectangle at the type's
geometric bounds, with the type's lock and hidden state, that carries the
wrap options; the group keeps the type's name and has no options of its
own. The `.ai` reader already reads an unpainted path with its own
options (`text_wrap` in crates/eps/src/import/ai/read/document.rs), and
wrap resolution descends into a group without options. The rectangle
counts toward the object limit; without room for it the options are left
out with the limit's warning. Type without finite bounds gets no
rectangle, as it had no wrap region before saving.
2026-11-14 07:48:03 -08:00
dotCooCoo 7292350010 Color Wheel: Show Color Vision Preview shows the color through four color vision simulations
The Color Wheel panel's menu gains Show Color Vision Preview, which adds
a row of four chips under the wheel or the box: the current color
through the protanopia, deuteranopia and tritanopia simulations that
View > Proof Setup uses (Cms::proof_srgb), and an achromatopsia chip
that shows the gray with the color's CIE L*, a rule of VectorCraft's
own. Each chip takes the keyboard focus, reports its name and its hex
value to screen readers and shows both in its tooltip. A click or a key
on a chip does not apply its color. With no solid color the chips are
empty and keep their names.

ui.colorWheel takes a vision key next to view and channel and returns
all three. A value that is not true, false or null is an error and
changes nothing. The setting is kept with the preferences, and a saved
value the build does not read falls back to the default without losing
the other settings. New strings have rows in the complete catalogs.
Docs: docs/mcp.md, docs/control-protocol.md, docs/target-app-parity.md.
2026-11-14 07:45:12 -08:00
dotCooCoo 978b94cef1 i18n: localization doc marks Vietnamese messages as partial
The Vietnamese row's message column said "all" while the same cell counts messages without a Vietnamese row. It now says dialogs and tooltips are complete and messages are partial, as the Indonesian row does. The row and the evidence line in docs/target-app-parity.md give the catalog's current counts: 1,750 @msg and 49 @msgplural rows, with 1,875 messages in the untranslated report.
2026-11-14 07:45:06 -08:00
dotCooCoo c7cd768399 Merge main into fix/clip-effects-hit-test 2026-11-14 07:42:26 -08:00
yoriswind c3d47271e1 Merge main while preserving atomic handle moves (#7237) 2026-11-14 07:38:16 -08:00
dotCooCoo e2cdedc6d0 Docs: recount Indonesian and Bosnian on current main
The Indonesian and Bosnian rows now give the catalog counts and the
untranslated-report gaps measured on main at 676f0524cc: Indonesian has
6,825 rows (1,036 @msg) and lacks 60 menu strings and 2,508 scanned
messages; Bosnian has 6,887 rows (1,144 @msg) and lacks 97 menu strings
and 2,416 scanned messages.
2026-11-14 07:36:08 -08:00
dotCooCoo 7c6aa3d055 Merge main into fix/confined-exports-script-paths 2026-11-14 07:35:50 -08:00
dotCooCoo 3bbf511b10 Merge main into feat/da-complete-messages 2026-11-14 07:35:35 -08:00
dotCooCoo f8c5d2b6c0 Merge main into fix/pdf-tiff-keeps-icc
# Conflicts:
#	crates/pdf/src/images.rs
2026-11-14 07:31:28 -08:00
dotCooCoo 69ec28dc4c Merge main into fix/3d-shadow-builds-once 2026-11-14 07:28:03 -08:00
dotCooCoo eddd9edbb3 Merge main into fix/custom-toolbar-errors-translated 2026-11-14 07:26:52 -08:00
dotCooCoo a0a363cfca Merge main into fix/blob-params-rejected 2026-11-14 07:26:52 -08:00
dotCooCoo 29780cc7c8 Merge main into fix/svg-filter-messages-tr-labels 2026-11-14 07:26:20 -08:00
dotCooCoo 7985952ac5 Merge main into fix/i18n-adjacent-placeholders 2026-11-14 07:25:54 -08:00
dotCooCoo 15e64f4057 Merge main into docs/localization-indonesian-bosnian 2026-11-14 07:25:48 -08:00
dotCooCoo a40f00ece9 Merge main into fix/export-cull-brushed-path-art 2026-11-14 07:25:25 -08:00
dotCooCoo 9b037f7d6e Merge main into fix/library-panel-names-translated 2026-11-14 07:25:25 -08:00
dotCooCoo 4eefd66632 Merge main into fix/custom-toolbar-errors-translated 2026-11-14 07:25:24 -08:00
dotCooCoo 6c9f650d0f Merge main into feat/docinfo-font-details 2026-11-14 07:25:07 -08:00
dotCooCoo 8ebe4cd1c3 Merge main into fix/live-paint-make-drawn-rows 2026-11-14 07:24:33 -08:00
dotCooCoo 35f2649d30 Merge main into fix/status-notes-copy-cut-trace 2026-11-14 07:24:28 -08:00
dotCooCoo 0df1c3f284 Merge main into fix/emfplus-import 2026-11-14 07:24:22 -08:00
dotCooCoo 699f165a97 Merge main into fix/shortcut-row-names-translated 2026-11-14 07:24:18 -08:00
dotCooCoo 8c607c8070 Merge main into fix/type-no-op-undo-more 2026-11-14 07:24:09 -08:00
dotCooCoo 38e9ef203b Merge main into fix/js-interp-errors-translated 2026-11-14 07:24:04 -08:00
dotCooCoo a3f65c677a Merge main into fix/graph-wedge-legend-black-kept 2026-11-14 07:24:01 -08:00
dotCooCoo 96a8a0c6d6 Merge main into fix/svg-raster-keeps-resolution 2026-11-14 07:23:45 -08:00