Commit Graph
17504 Commits
Author SHA1 Message Date
dotCooCoo b5c7b60cb8 3D: Revolve's colored-light faces lie over an underlay, so no alpha holes show at 1:1
Under a colored lightColor or a lights list, Revolve drew each face of a
solid-color or gradient surface on its own, so where two faces'
antialiased edges met, pixels inside the surface let the background
through at 1:1.

- The faces now lie over an underlay of themselves under one clip to
  their outline, as colored Inflate's facets do (lighting::sealed, split
  into lighting::underlay and sealed). The surface's opacity and blending
  mode apply once, to the sealed surface.
- In a group, each run of one member's faces in the shared depth order
  takes its own underlay; a translucent member's run keeps its opacity,
  blending mode and mask on the sealed run.
- A face with a part of a mapped graphic gives its face to the underlay
  and keeps the part right after it.
- Faces in a gradient with transparent stops carry its opacity mask and
  are drawn as before. Revolve (Classic) is unchanged.
- The paint-copy budget counts the underlay in validation and drawing.

Docs: docs/three-d.md (Seams), docs/target-app-parity.md.
2026-11-15 15:13:03 -08:00
dotCooCoo 356740101d i18n: French rows keep the no-break space before punctuation 2026-11-15 15:09:25 -08:00
dotCooCoo 9597392c45 PSD export: slices are written, so an opened PSD's slices survive an export
A PSD export now writes image resource 1050 in version 6 of the PSD file
format specification's slices resource format, the form that Import
Slices reads (crates/engine/src/cmd/fileio/psdslices.rs, version_6).
Flat and layered exports both carry it.

- The user and object slices that reach into the exported artboard are
  written, clipped to it in its pixels, at least one pixel each way.
  Auto slices are left out; opening the file lays them out again.
- An object slice is written as a user slice over its object's bounds,
  and an HTML Text slice as No Image with its type's text as HTML. Name,
  type, link, target, message, alternative text, cell text and
  background color are kept; text alignment is written as the default.
- Slice IDs count from 1.
- More than 10000 slices or a text longer than 65536 characters is an
  export error, matching the reader's limits. A slice without finite
  bounds, or slices that would make the resource longer than 4 GB, is
  also an export error; the size is checked before each text is added.
2026-11-15 15:07:09 -08:00
dotCooCoo f684b53263 i18n: French rows keep the no-break space before punctuation 2026-11-15 15:03:49 -08:00
dotCooCoo e7923bbeef Merge main into fix/i18n-literal-brace-messages-rows 2026-11-15 14:52:46 -08:00
dotCooCoo 901b00bc7f i18n: five messages with literal braces get exact catalog rows
The composite font errors `each font must be {name, parts}` and
`give fonts: [{name, parts}…]`, `select.font`'s `scope` error, the
regular expression error `numbers out of order in {} quantifier` and
the freeform gradient hint for `paint.editGradient` are translated in
every complete-message catalog through a row that doubles its braces.
The older rows read the braced example as a placeholder, so they also
translated other text with the same start and end; they are removed,
Georgian's two duplicates included. Catalan, Danish, Greek, Spanish,
Finnish, Hindi, Swedish and Vietnamese gain rows for the last three.

literal_brace_messages_have_exact_rows_in_complete_languages checks
each row, the displayed text and that no placeholder row remains.
2026-11-15 14:51:57 -08:00
dotCooCoo f3d4b0b726 Merge branch 'fix/trace-seam-fills-clip' of github.com:dotCooCoo/vectorcraft into fix/trace-seam-fills-clip 2026-11-15 14:41:19 -08:00
dotCooCoo dbf0927385 Image Trace: the seam fills' clip stays within the traced paths' box
The Seam Fills group's clipping path was the image's box. A group with a
clip is measured by its clipping path, so on a trace with transparent or
ignored margins the expanded trace measured as the whole image, and
selection, alignment and resizing used that box. The clipping path is now
the image's box cut to the box of the traced paths: on a turned image it
has up to eight corners, and the anchor limit counts eight for it.

docs/mcp.md, the params text and the progress line describe the clip.
2026-11-15 14:31:51 -08:00
dotCooCoo 800e825ab2 Merge main into fix/variable-library-warning-kind-names-i18n 2026-11-15 14:31:30 -08:00
Dylan M. Taylor 8ee5acc04e Merge pull request #7866 from storytold/codex/shared-gzip-consumer
Use shared streaming native format writer
2026-11-15 17:28:04 -05:00
dotCooCoo 90587d4e24 i18n: Danish translates 1,985 of the status and error messages the untranslated report lists
Danish is in COMPLETE_MESSAGES, but the untranslated report listed 2,066
status and error messages with no Danish row, and they showed in English.

- da.tsv gains 1,985 @msg rows in one block under a comment. Placeholders,
  doubled braces, backticked names, command ids, double-quoted values and
  bare true, false and null stay as the English writes them.
- Rows that other open pull requests add to da.tsv, and the 38 messages no
  catalog has a row for yet, are left out. So are the three messages that
  open #7353 rewrites so that a catalog row can match them.
- A test checks a sample of the new rows with their values filled in.
- docs/localization-parity.md and docs/target-app-parity.md give the new
  counts: the report lists 81 Danish messages.
2026-11-15 14:13:14 -08:00
dotCooCoo d6cb3086df Docs: Eraser Shift-drag source links the page that describes it 2026-11-15 14:10:31 -08:00
dotCooCoo fb0a8bb52b Merge main into fix/expand-appearance-nested-instance-effects 2026-11-15 14:10:08 -08:00
dotCooCoo a20b45193f 3D and Materials: pass the skip list to the blurred shadow's expansion
main added a list of objects to leave unexpanded to expanded_node, and
the expansion of a 3D effect's blurred shadow did not pass it, so the
branch stopped compiling after the merge of main.
2026-11-15 14:07:05 -08:00
dotCooCoo b8d33fd796 Merge main into fix/variable-library-warning-kind-names-i18n 2026-11-15 14:06:47 -08:00
dotCooCoo f260510ced i18n: the SVG variable-data warning names variable kinds in the interface language
Opening an SVG whose variable data holds variables that aren't text
warns about them with a list of kinds and counts. The sentence was
translated, but the list stayed in English and used the file's raw
`trait` values (`visibility (2), fileref (1)`), and a missing `trait`
and a `trait` written as `unknown` were counted together.

- The engine's English warning now names the kinds Visibility, Linked
  File, Graph Data and Unknown (a variable without a `trait`). Any
  other `trait` is written as the file writes it, in backticks, with
  each backtick in it doubled, so a `trait` such as `Visibility` or
  one holding a comma stays a single entry.
- The status bar shows those kinds through new `variable-kind` rows
  and joins the entries with `variable-list-two`, `variable-list-middle`
  and `variable-list-end` rows, in every complete-message catalog.
  A list in any other form is shown as before.
- The French row puts the list after a colon instead of inside
  parentheses, and the Hindi row is reworded so it says that the
  variables that aren't text were left out.
2026-11-15 14:06:40 -08:00
dotCooCoo 1c1c5524e1 Preferences: a line under the fields describes the setting under the pointer
The Preferences dialog shows one sentence for the setting under the
pointer, or for the setting whose control has the keyboard focus when
nothing is under the pointer. While the pointer moves between rows or
onto the line, the line keeps the last row's sentence. Screen readers
get the same sentence as the focused control's description. A setting
without a sentence leaves the line empty.

The line sits under the field list in every category. The field list is
59 pt shorter to make room, so the dialog keeps its size and each
category scrolls a little sooner.

The sentences come from one table keyed by preference id. This change
describes the six Units rows (General, Stroke, Type, East Asian Type,
Numbers Without Units Are Points and Identify Objects By), with rows in
every complete catalog.
2026-11-15 14:05:38 -08:00
dotCooCoo bf7297d47f Recolor Artwork: Save All Colors, the Edit tab and Color Theme Picker leave empty New Row rows out
A row made with New Row holds no current colors until colors are merged
into it. OK already left its new color out of a rewritten color group;
now the other places that gather the dialog's colors leave it out too:

- Save All Colors, and its enabled state in the New Color Group menu
- OK on colors opened alone, which saves a new color group
- the Edit tab's wheel, color bars and chips, the harmony rules and
  linked wheel moves
- the Color Theme Picker, which asks for and hands out colors only for
  the rows that hold current colors

The Edit tab's color sliders edit the base color's row when the
selected row is one the tab does not show (empty or excluded).
2026-11-15 14:05:14 -08:00
dotCooCoo c207c08edb Image Trace: seam strokes on images scaled alike, and canceling while outlining
Whether a trace's seam fills are strokes or outlines now depends on the
image object's own transform. A raster decoded scaled down to fit has its
two sides rounded separately, so it was scaled a little differently across
and down and every such trace got outlines. The stroke width now uses the
smaller scale of the raster, so a stroke still covers at most 0.75 pixels
on each side of its edge. The check for an even scale compares the axes'
lengths and angle directly, without a square root of a small difference.

Outlining the seam strokes now stops when the trace is canceled, checking
every 64 strokes. A stroke that reaches the make step without an outline
on a stretched image is left out rather than outlined outside the anchor
limit.

docs/mcp.md: the group clips the strokes or outlines.
2026-11-15 14:02:29 -08:00
dotCooCoo 2da339f850 Merge main into fix/trace-seam-fills-clip 2026-11-15 14:01:05 -08:00
dotCooCoo 846d000486 Merge main into fix/pdf-preserve-numbers-tagged-images 2026-11-15 13:58:49 -08:00
dotCooCoo 501567a704 Merge main into fix/tool-set-option-errors 2026-11-15 13:58:40 -08:00
dotCooCoo 740b1e3f7e Tests: fuzz PSD slices in versions 6, 7 and 8
import_fuzz builds PSD files from scratch whose image resource 1050
holds slices in version 6 (a version 16 descriptor after the first
record) and in the version 16 descriptors of versions 7 and 8. Each
sample has one user slice, one slice that follows a layer and one
generated automatically; the first two come in as user slices.

- the_sliced_psd_samples_bring_in_their_user_slices: each sample opens
  with its two user slices and no warning, document.psdInfo counts 2,
  and an embedded place brings 2.
- sliced_psd_samples_with_huge_counts_or_cut_short_come_in_without_their_slices:
  slice counts of 10,001, 0x7fffffff and u32::MAX, data one byte
  short, and data cut inside the count bring the art in without its
  slices and with a warning.
- mutated_psd_slices_never_panic: mutated slice data, kept whole, cut
  short with the resource length rebuilt, or with the file cut in the
  resource block, never makes document.open, document.psdInfo or an
  embedded file.place report an internal error.

tests_psdslices::damaged_slices_never_panic now fails when a command
reports an internal error instead of discarding the results.
2026-11-15 13:57:26 -08:00
dotCooCoo 3ffc56a2c1 Merge main into fix/confined-exports-script-paths 2026-11-15 13:52:03 -08:00
dotCooCoo 0189417e24 Path Precision Tools: Common Tangents draws the lines touching two closed paths
Object › Plug-ins › Path Precision Tools › Common Tangents…
(`addon.pathtools.commonTangents`) adds the common tangent lines of two
selected convex closed paths as separate open paths: external (both
paths on the same side of the line), internal (the lines between them)
or all, and with Centerline the line joining the two centers. An
ellipse drawn with the Ellipse tool is measured as an exact ellipse at
any rotation and scale; any other path must be closed, have one outline
and bend the same way all around, with at most 10000 segments.

Each line runs between the points where it touches the two paths, or
covers a straight side that lies along it. Separate paths have four
tangents, overlapping paths only external ones (two for ellipses), and
a path inside the other none. Paths that touch, from outside or from inside, share
one tangent instead: a line centered on the point where they touch and
as long as the narrower path is wide along it. When there is no tangent
of the kind asked for, nothing changes and the result carries a warning
that says why. The lines take the current stroke and no fill, go
directly above the upper path and are selected, as one undo step. The
dialog has Preview.

The geometry is in vectorcraft-pathops: the tangents are the zeros of
the difference of the two outlines' support values over the normal's
angle, sampled at 720 even steps and at every angle where either
path's touching point passes to another segment, then refined, so the
work per pair is bounded.

Catalog rows for the menu item, the dialog and the messages are in
every catalog.

Docs: docs/mcp.md (Path Precision Tools add-on), docs/target-app-parity.md
and ROADMAP.
2026-11-15 13:48:21 -08:00
dotCooCoo 729651e470 Merge main into feat/psd-preserve-text-editability 2026-11-15 13:45:05 -08:00
dotCooCoo 53e0c3c921 PSD: type in a language other than English: USA or set with a Standard composer stays pixels
A type layer records neither the language nor the composer, so point type
whose runs name another language, or whose paragraphs use a Standard
composer, is written as pixels. New type's default paragraph settings
(the every-line composer, Burasagari and Mojikumi) no longer keep it from
becoming a type layer; Mojikumi other than the default still does in type
with Chinese, Japanese or Korean characters.
2026-11-15 13:45:00 -08:00
dotCooCoo bdacb4b15b Merge main into fix/confined-export-screens-folder-checked 2026-11-15 13:44:05 -08:00
dotCooCoo da21d68d4a Merge main into feat/3d-graphics-extrude-side 2026-11-15 13:43:19 -08:00
dotCooCoo 2eb1dc44d1 Merge main into fix/graph-stacked-column-legend-stroke 2026-11-15 13:43:18 -08:00
dotCooCoo 6c5229c851 Merge main into feat/kurikaeshi-moji-shori 2026-11-15 13:43:06 -08:00
dotCooCoo 946dcb5910 Merge main into feat/3d-classic-black-overprint 2026-11-15 13:43:05 -08:00
dotCooCoo deaff22280 Merge main into fix/erase-region-params-refused 2026-11-15 13:42:46 -08:00
dotCooCoo a43bf46026 Merge main into feat/palette-recent-commands 2026-11-15 13:42:45 -08:00
dotCooCoo 4a816d626f Merge main into fix/emf-svg-symbol-art-live-effects 2026-11-15 13:42:39 -08:00
dotCooCoo 886c7bef8c Merge main into fix/graph-axes-group-edits-kept 2026-11-15 13:41:56 -08:00
dotCooCoo e33551614c Merge main into feat/3d-soft-shadows 2026-11-15 13:41:56 -08:00
dotCooCoo cbee54549b Merge main into fix/graph-axis-paint-kept 2026-11-15 13:41:36 -08:00
dotCooCoo 403ac6b794 Fix #7944: New Document opens in the General units and keeps units chosen in its menu
New Document opened on the most recent entry in the units that entry was
made in, so with Preferences › Units › General in millimeters, File › New
and New Without Dialog still made documents in points, and the rulers and
the Measure tool, which follow the document's units, read points. The
dialog now opens in the General units on a Recent entry too. An entry
made in pixels, and an entry that is a saved preset in the units it was
saved in, keep their units. Before, the dialog opened in the entry's
own units.

Units chosen in the Units menu were also replaced by the next tab, card
or preset chosen, for example the Web tab's pixels, or a Recent or Saved
card's units on a click or on the double-click that creates the
document. A choice made in the menu, or with ui.dialog.set (also while
More Settings or Manage Profiles is open), now stays until Create.
Without such a choice, clicking another Recent or Saved card still
brings back that card's own units.

Docs: docs/mcp.md (New Document), docs/target-app-parity.md evidence.
2026-11-15 13:41:27 -08:00
dotCooCoo 0eae49d4f8 Merge main into feat/object-mosaic-dialog 2026-11-15 13:41:18 -08:00
dotCooCoo 32fe097db5 Recolor Artwork: recolor.randomize params text parses as a params object
The note on which rows keep their new color now sits in the map key's
description, so tests::params::every_description_parses reads the text.
2026-11-15 13:36:30 -08:00
dotCooCoo 7da8b8fc6c Merge main into fix/clipboard-flavours-confined-svg 2026-11-15 13:36:15 -08:00
FredApps 827667a321 refactor(codecs): read header sizes and write DIB PNGs with craft-image-codecs
header_size reads every format's header through craft-image-codecs
(probe_allocation_size: stored size with no limit; a GIF's logical
screen through probe_size), no longer through the image crate's
readers. Metafile DIBs are written as PNG by craft-image-codecs.
2026-11-15 22:34:00 +01:00
dotCooCoo 2b4845b070 Recolor Artwork: Save Changes matches hex rows, and theme picks apply after a group change
Save Changes now finds the row for each swatch of the group as recolor.apply
does: a row that lists the color exactly comes first, then a row whose
"#rrggbb" entry has the same hex. A row listing "#0000ff" used to match no
swatch, so the save rewrote the group from the rows in order and changed a
swatch the art does not use. Reading the rows again after the save uses the
same matching, so such a row keeps its new color.

Picking a group in the Color Groups list also forgets the Color Theme Picker
picks the rows last took, so the same picks made again give the new group's
rows the palette, with or without art.
2026-11-15 13:33:24 -08:00
ruchirguitar 081e147f57 feat(tools): key anchor point alignment (#1636) 2026-11-16 03:02:45 +05:30
BFlat 613f2039e0 Merge pull request #7493 from dotCooCoo/fix/custom-toolbar-errors-translated
i18n: custom toolbar command errors are translated in every complete-message catalog
2026-11-16 04:31:58 +07:00
BFlat f6bbaf5dbf Merge pull request #7889 from dotCooCoo/feat/panel-tab-cycles-options
Panels: the double triangle on a panel's tab strip cycles its display sizes
2026-11-16 04:31:49 +07:00
BFlat 6c283464bf Merge pull request #7865 from dotCooCoo/feat/graph-data-column-drag
Graph Data: dragging a column's edge sets that column's width
2026-11-16 04:31:40 +07:00
dotCooCoo c26c1f3efd Type: the font menu's Show Similar Fonts lists the families that look like a family first
A ≈ button on a family's row in the font menus orders the listed families by
how alike they look to it: that family first, then the families that set the
same script (Japanese, Thai or neither), then the others, each group nearest
first. The Recent Fonts section is left out while the list is ordered this
way. A ≈ chip under the filters names the family and clears the order, with
that family still highlighted; closing the menu clears it too.

The measure is VectorCraft's own. Each face records its OS/2 PANOSE digits,
weight and width classes, x-height, cap height and average character width,
and its post italic angle; a named instance of a variable font takes its wght
and slnt settings. The system font scan reads the head table and the post
table's header besides the tables it read before, so installed families are
compared by the same numbers without loading them. A family is compared by its
face nearest an upright Regular, a number either face does not give is left
out, and a family of another kind counts as further away.

text.similarFonts {family, limit?} returns the same order, with errors for a
missing or non-string family, a family that is not available or not listed in
the font menus, and a limit that is not a whole number from 1 to 100000.
2026-11-15 13:31:36 -08:00
BFlat 6b2e71f999 Merge pull request #7912 from dotCooCoo/fix/3d-transparent-gradient-one-placement
3D: a transparent gradient lines up its colors and transparency across the faces
2026-11-16 04:31:27 +07:00