Commit Graph
15419 Commits
Author SHA1 Message Date
dotCooCoo 5412c911cf Graph Type: Draw Filled Lines takes a Line Width
Graph Type has a Line Width field next to Draw Filled Lines, and
`graph.setType` takes `lineWidth` in points (0.01 to 1000; 3 when the
graph sets none). Filled lines are drawn at that width, and the width is
kept through save and open. A graph stores a width only when it is not
3 pt, and a graph with a width of its own is written to .ai as its art.
`graph.setType` with options that leave the graph as it is records no
undo step.
2026-11-15 12:39:45 -08:00
dotCooCoo f3c297ddea 3D and Materials: Export 3D Object leaves objects without a 3D effect out in the command
The panel's Export 3D Object button chose the objects to export in panel
code and passed their ids to assets.add3D, which on the same selection
refused every object when one had no 3D effect. Passing ids also skipped
the refusal while a part of a dynamic symbol instance's art is selected,
and a group whose 3D effect is on its fill or stroke enabled the button
and then failed.

assets.add3D without ids now leaves out the selected objects without a
3D effect it exports, a group or layer whose 3D effect is on a fill or
stroke, and an object inside another selected 3D object; a path of a
compound path counts as the compound path. Objects given in ids are
still refused. exports_three_d in vectorcraft-effects tells whether an
object has such an effect without building its meshes. The button runs
the command on the selection and is available only while a selected
object passes that check.
2026-11-15 12:38:13 -08:00
dotCooCoo a91a3c0fd5 SVG: a confined Preserve Editing attachment leaves out an Export for Screens folder outside the read roots
Under automation read roots, the native document that an SVG or SVGZ
carries with Preserve Editing now leaves out the Export for Screens
folder (`export_settings.folder`) when that folder is outside the read
roots, as `document.exportSettings` already does in its reply. The other
export settings and the art are kept, a folder inside the roots is kept,
and the open document is not changed.
2026-11-15 12:37:42 -08:00
dotCooCoo b86a95aa98 Merge main into fix/graph-stacked-column-legend-stroke 2026-11-15 12:28:11 -08:00
dotCooCoo 92b3b10e7b Graphs: legend swatches have the stroke of their series' marks
A default legend swatch of a stacked column, stacked bar, area or pie
series now has the thin white stroke the series' marks have, beside the
plot or across the top. Before, the swatch had no stroke, so the series
group painted with two strokes and a drawn stacked column or area graph
was saved to .ai as plain art with a warning. Both now open again as live
graphs. Stacked bar graphs are still written as art: the .ai reader has
no type for them.
2026-11-15 12:27:19 -08:00
dotCooCoo 3a84466917 Symbols: Symbol Options › Align to Pixel Grid keeps a symbol's instances on the pixel grid
symbol.new and symbol.options take alignToPixelGrid (off by default),
symbol.list rows report it, and the New Symbol and Symbol Options dialogs
show the checkbox. When it is on, the horizontal and vertical straight
segments of the paths in the symbol's art, opacity mask art included,
snap to whole points (half points for an odd centered stroke) at the
symbol's natural size, and its stroke weights become whole points. Each
instance placed at that size, reflected across one axis or not, moves to
whole points and goes back to them after every move. A scaled, rotated or
sheared instance, and an instance in another symbol's art, stays where it
is. In symbol editing mode the stored art and the editing layer snap
after each edit.

Duplicate Symbol, rename, copy and paste and symbol libraries keep the
setting, and Delete Symbol removes it.

Docs: docs/mcp.md, docs/ui-parity.md.
2026-11-15 12:25:35 -08:00
dotCooCoo 959f3d0d0c Recolor Artwork: a removed row's art keeps its color when its swatch changes
Art in a row whose new color was removed (Remove Color with art) keeps its
colors. When that art is linked to a global swatch of the color group and
the group's rewrite gives that swatch another color, the art now loses the
link instead of following the swatch. Rows that are excluded and art
outside the rows still follow the group's swatches.
2026-11-15 12:25:27 -08:00
dotCooCoo 02f8e55c5c Merge main into feat/file-info-templates 2026-11-15 12:21:52 -08:00
dotCooCoo e45b36f5aa Merge main into fix/svg-artboard-export-keeps-brushed-path 2026-11-15 12:20:35 -08:00
dotCooCoo 78268e6db5 Glyphs: a pick after Select All replaces a threaded story whose first frame holds one character
When Select All covered a threaded story and the edited frame held only
the picked character, the pick drew that character with the glyph and
left the other frames' text. The one-character path now applies only to
a selection in one type object, so the pick replaces the whole story as
typing does.
2026-11-15 12:20:19 -08:00
dotCooCoo a191b0dae5 Revolve: closed subpaths close the cut sides with what the fill rule fills
The closed subpaths of a profile now close a partial sweep's cut sides
together, with the area the object's fill rule fills, instead of one
region per subpath marked as a hole by most of its edges. Two closed
subpaths that overlap with only a corner inside each other no longer
fill their overlap under the even-odd rule, and under the nonzero rule
the overlap is filled once.

The cut-side regions are taken after the profile gets the anchor where
a mapped side is cut, so the cut sides kept for a mesh have a corner at
every corner of the edge they share with the side.
2026-11-15 12:20:09 -08:00
dotCooCoo 9c5eac0d17 SVG: an artboard's SVG keeps a brushed path whose brush art reaches it
An SVG or SVGZ of a chosen artboard left out a brushed path lying just
off the artboard even when its brush art painted onto it, as the
artboard filter measured the path without room for its brush art. The
filter now leaves the room PDF and EPS export leave
(vectorcraft_brush::reach_within): none for a brushed stroke without a
paint, only the clipping path's for a clip group, and only a compound
path's own strokes.
2026-11-15 12:19:17 -08:00
FredApps 0f2cb22ce7 chore(codecs): keep craft-image-codecs on craft-libs main (d6cd7836d)
b3b8521ab isn't on craft-libs main. Its probe_stored_size was only needed for
DXF image sizes, which vectorcraft_doc::header_size already reads from PNG,
JPEG, BMP and TIFF headers.
2026-11-15 21:18:51 +01:00
dotCooCoo 8494b14ff7 Graphs: a pasted graph's axis and ring line rows follow a renamed swatch
When a paste added a conflicting swatch under a new name, the series,
label and legend rows of a pasted graph were relinked to it, but the
rows kept for its axis lines and radar rings still named the
destination's swatch, so the next redraw painted the lines with it.
2026-11-15 12:18:10 -08:00
dotCooCoo 24c0f89ff9 Part of #7840: the Ellipse dialog sets how many anchors the ellipse has
A click with the Ellipse tool opens a dialog with a new Anchors field
under Height, 4 by default. With 4, OK draws the same live ellipse as
before. Any other count from 2 to 1000 draws a closed plain path with
that many smooth anchors spaced evenly by angle, from the left one and
clockwise, with handles of 4/3*tan(theta/4) scaled along each axis and
the path fitted to the typed width and height. The dialog sends the
nearest whole number from 2 to 1000 (4 for an empty field or text that
is not a number). The count confirmed last is kept as the Ellipse
tool's anchors option, and the next Ellipse dialog opens on it.

shape.ellipse takes an optional anchors param (default 4). A number
that is not a whole number from 2 to 1000 gets one error naming that
range, a value that is not a number gets the usual type error, and
nothing is drawn. The MCP draw_shape tool lists anchors for ellipses.

Docs: params text, docs/mcp.md, docs/target-app-parity.md (Shapes).
2026-11-15 12:16:26 -08:00
dotCooCoo 0b1b948f55 Merge main into fix/pdf-preserve-numbers-tagged-images 2026-11-15 12:15:12 -08:00
dotCooCoo 1c5d5ea4ba Merge main into fix/pdf-preserve-numbers-tagged-images 2026-11-15 12:15:12 -08:00
dotCooCoo 4f874088fc Variables: compare the marked Data Set rows by name in the rename test
egui builds the accessibility update's node list from a hash map, so the
order of the open list's rows in it is not the display order. The test
sorts the rows by name before checking that only Spring is marked.
2026-11-15 12:13:38 -08:00
dotCooCoo 6c74a77a6d Eraser: an Alt-drag erases everything inside a marquee, a square with Shift
With Alt held at the press, an Eraser drag draws a marquee from the press
point to the pointer instead of a stroke, and the release erases everything
inside it. Alt+Shift keeps the marquee square on its larger side, Escape
cancels it, and a click or a drag along one axis erases nothing.

path.eraseRegion takes {rect: [x, y, width, height]} in place of points.
Closed paths lose the rectangle's area; open paths are cut where they cross
its edges, found from the exact crossings, so a narrow rectangle across a
long segment still cuts it. A width or height of 0 or less, a non-finite
value, or points and rect together is an error, and nothing erased adds no
undo step.

Docs: docs/mcp.md, docs/ui-parity.md.
2026-11-15 12:13:13 -08:00
dotCooCoo 93445039c9 Merge main into fix/clipboard-file-lists-formats 2026-11-15 12:08:36 -08:00
dotCooCoo 3efe88de38 Expand Appearance: an object left by the image limit keeps its color adjustment
An object whose raster effects' image would go past the image limits now stays exactly as it was, color adjustment included. Before, the adjustment was still applied, so a color-adjusted symbol instance became a group with a live blur that no longer followed its symbol, and recolored copies of embedded images stayed in the document unused.
2026-11-15 12:08:08 -08:00
dotCooCoo 3bdc100d30 Merge main into fix/monitor-profile-tiled-panes-translucent-test 2026-11-15 12:08:06 -08:00
FredAppsandFredApps bb218101c9 cad: export DXF through craft-dxf's drawing writer (#7847)
* cad: export DXF through craft-dxf's drawing writer

Delete the local ASCII writer and map the document through
craft_dxf::drawing. Public vectorcraft_cad::export, DxfOptions and
DxfVersion stay so vectorcraft#3068 can rebase without a writer API
change. Pin craft-dxf at the craft-libs#1588 branch tip; update the
rev after that PR merges. Golden files lock shapes_doc() bytes for
R12 and 2018 against the old writer. Part of storytold/craft-libs#791
and #778.

* cad: pin craft-dxf to the #1588 tip with Dylan's writer fixes

Point craft-dxf (and craft-codepage from the same rev) at
0b6244f2b9971deaeb6a79d932c818ff94479757, which includes the
Windows golden line-ending fix, BYBLOCK and image-dictionary
key changes, and the compile fix for the dictionary-key test.
Update the pin again to the merge commit after #1588 lands.

* cad: pin shared DXF writer to merged craft-libs #1588

---------

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-15 21:07:18 +01:00
dotCooCoo a91c0a6ab1 Merge main into feat/psd-preserve-text-editability 2026-11-15 12:07:15 -08:00
dotCooCoo 4327c51f57 PSD: Preserve Text Editability writes point type as editable type layers
The PSD Options dialog gets Preserve Text Editability, and document.export
takes preserveText (with layers). Horizontal and vertical point type is
written as a type layer (a TySh block with its EngineData) that a reader
can edit, and keeps its pixels. The layer holds the text, its fonts by
PostScript name, size, leading, tracking, scaling, baseline shift, caps,
underline, strikethrough, fill color, Fractional Widths, paragraph
alignment and orientation.

Type that a type layer would draw differently stays pixels: area type,
type on a path, strokes, non-solid fills, fractional tracking, character
attributes the layer does not carry, paragraphs that set more than their
alignment or run right to left, System Layout, Optical Margin Alignment,
ruby, effects, an appearance of its own and opacity masks. A layer that
holds type becomes a group of its type layers and pixel layers of the art
between them, unless other art in it blends in a mode other than Normal.
2026-11-15 12:07:06 -08:00
dotCooCoo f66aa65083 Clipboard: Windows text is bounded before it is converted, and each bitmap format has its own limit
The size of a CF_UNICODETEXT block is checked against the most UTF-8 it
could come to (3 bytes a code unit), so the converted text is never
larger than the limit. CF_DIBV5 and CF_DIB are each copied when they
fit the limit, so a large first format that doesn't decode still
leaves the second to paste.
2026-11-15 12:06:56 -08:00
FredApps caa62aa79f Merge remote-tracking branch 'origin/main' into work7669 2026-11-15 21:06:46 +01:00
FredApps 8ce8ae076e Merge remote-tracking branch 'origin/feat/cutover-remaining-codecs' into work7669
# Conflicts:
#	crates/cad/src/scene.rs
2026-11-15 21:06:41 +01:00
FredApps 33b5706c7a Merge pull request #7664 from storytold/fix/restore-codec-cutover-ci
Restore shared codec cutover with CI compatibility fixes
2026-11-15 21:05:52 +01:00
dotCooCoo 22fbf01ea5 Pathfinder: Outline edges keep their fill's opacity and blend mode
Effect › Pathfinder › Outline stroked each edge with the paint of the
source's top fill only. The fill's opacity, blend mode and overprint
were dropped, and a hidden top fill still colored the edges.

The edges now take the paint, opacity, blend mode and overprint of the
top fill that paints, or of the top stroke that paints when no fill
does. A hidden fill or a fill of no paint is skipped, so a painted fill
under it colors the edges. A hidden stroke or a 0 pt stroke is skipped
too, and an object with neither still gets edges with no paint.

Soft Mix, Hard Mix and Trap had the same gap: they read the top fill
even when it was hidden or had no paint. They now use the top fill that
paints, so a hidden fill adds no color to a mix, and a member whose only
fill is hidden takes no part in Trap.
2026-11-15 12:03:03 -08:00
dotCooCoo 3fbf957fe3 Recolor Artwork: Randomize leaves rows with no current colors out
A New Row row has no current colors and recolors nothing, but
recolor.randomize shuffled its new color with the other rows', so an art
row's color could move onto the empty row and leave the art. Randomize
now shuffles and varies only the rows that hold current colors and are
not excluded; an empty row keeps its new color.

docs/mcp.md says so, and says to Shift-click a row below the new row
before Merge, since Merge keeps the topmost selected row's new color.
2026-11-15 12:01:47 -08:00
dotCooCoo ad275a9291 Merge main into feat/kurikaeshi-moji-shori 2026-11-15 11:59:36 -08:00
dotCooCoo 1bdc03d2ad Graphs: a stroke painted after an axis line lost its stroke keeps a weight
When one line of a kind had its stroke set to None, the kind kept a zero
stroke weight. Painting the stroke of another line of that kind kept only
the new paint, so the next redraw drew every line of the kind with no
weight. The kind now takes the painted line's weight when it kept no
stroke paint before the edit. A zero weight set together with a stroke
color, or kept with a painted stroke, stays as set.
2026-11-15 11:53:45 -08:00
dotCooCoo 625d5e9f6c Merge main into fix/monitor-profile-tiled-panes-translucent-test 2026-11-15 11:52:52 -08:00
dotCooCoo a97d2e221e Monitor profile: test that tiled panes blend translucent art over their own paper
A tiled pane of a document behind the front one blends its translucent
art with that document's simulated paper in sRGB before the display
profile's conversion. The test tiles two documents with different paper
colors and checks the back pane's backdrop and its middle pixel against
the converted blend, the blend over the front paper and the art
converted alone.
2026-11-15 11:52:10 -08:00
dotCooCoo 4b636ea642 File Info: a template name that is not a file name is refused
file.info.applyTemplate with a name such as a/b no longer opens the template its safe file name names (a-b.xmp): a name that matches no listed template and is not a file name as it is gives an error. docs/mcp.md cites the help page that describes metadata templates.
2026-11-15 11:51:16 -08:00
dotCooCoo 6ac45cd427 Docs: menu-breadth counts match the current menu tree
The menu tree at 957397e7 has 717 items bound to commands and 2 stubs
(Effect > 3D and Materials > Materials and Help > VectorCraft Help);
Check Spelling now opens its dialog. The count leaves out 239 entries
in the recent-file, recent-font, saved-selection and saved-view slots
and in the Open With, Scripts, Plug-ins, Type > Font, Effect > SVG
Filters and View > Perspective Grid preset submenus. The
feature-breadth rows in ROADMAP.md and target-app-parity.md now give
717/719 (99.7%); the earlier counts stay as dated history.
2026-11-15 11:49:04 -08:00
dotCooCoo aadf451c71 Merge main into fix/clipboard-file-lists-formats 2026-11-15 11:42:50 -08:00
dotCooCoo 04b3123120 Clipboard: paste checks the size of another app's data before copying it
Paste takes at most 64 MiB of a format another app copied, VectorCraft's
existing limit for copied files, and reads the size before the copy:

- On Windows, each registered format, the CF_DIBV5 and CF_DIB bitmaps
  (together), CF_UNICODETEXT and the CF_HDROP file list. A larger format
  is skipped and the next one is tried.
- On macOS, each pasteboard type's data length is checked before it is
  copied.
- A copied file list of more than 1,024 files pastes no file, and no
  file in it is opened, on every platform, as the Linux text/uri-list
  reader already does. On Windows the CF_HDROP names are counted before
  they are read.
2026-11-15 11:41:45 -08:00
dotCooCoo c1defd081c Variables: the open Data Set list marks the current data set again
Since the Data Set box took over renaming (#7860), the list button next to
it passed an empty name to dropdown_names_named, so the open list marked no
row. The button now keeps its empty closed field and marks the current
data set's row in the open list.

The rename test opens the list, checks that only the renamed data set is
marked and clicks the other row to choose it, instead of running
dataset.select. The no-data-set test checks that the box is disabled.
2026-11-15 11:40:47 -08:00
dotCooCoo bc9c83f858 Docs: the Eraser's drag outline takes the tip halfway along each step 2026-11-15 11:39:20 -08:00
dotCooCoo 3e7c19829b Eraser: each step of the drag's area outline takes the tip halfway along it
A step took the tip halfway between the tips at its ends, turned the
shorter way round. The release reads the pen's pressure and tilt halfway
along the step, and its bearing and rotation halfway the shorter way
round, so a step from no pressure to full pressure with the angle on
Pressure by 90° erases with a level tip there while the outline showed
it upright. Each step now takes the tip of the pen's readings halfway
along it.
2026-11-15 11:36:38 -08:00
dotCooCoo d05923aa34 Gradient tool: dragging the end handle changes only the length, Alt-drag the length and angle
A plain drag of the annotator's end handle now slides the end along the
bar's line, at least 10 px from the start, and snaps only to targets on
that line. Alt-drag moves the end freely, changing the length and angle
together, with Shift at Constrain Angle steps. A vector of no length
still moves freely.

Docs: docs/mcp.md, docs/ui-parity.md.
2026-11-15 11:34:56 -08:00
dotCooCoo a1aa6ddc01 Recolor Artwork: an added color whose row is excluded joins no color group 2026-11-15 11:31:36 -08:00
dotCooCoo 9392619884 SVG: placed symbol art with live effects writes no duplicate ids
Instances of a symbol whose art has live effects are written as that art placed by each
instance, so a named object in the art appeared once per instance with the same node id and
the same XML id. Symbols' art now takes no name ids, as in an instance that has its own copy
of the art; the instances keep theirs.
2026-11-15 11:31:02 -08:00
BFlat e34fef895f Merge pull request #7732 from ruchirguitar/feat/swatches-item-context-menu
Swatches: add right-click context menu to swatch items
2026-11-16 02:30:51 +07:00
dotCooCoo 5bba196c4f Path Precision Tools: Trim at Crossings shows the stretch a click would remove
Hovering with the Trim at Crossings Tool draws in red the stretch a click
there would remove, on the same paths and by the same rules as the click,
and nothing over empty canvas or hidden and locked paths. A drag draws
every stretch its rectangle or freehand line would remove while it
reaches at most 32 paths. In isolation mode only paths inside the
isolated object are highlighted.

What a pick removes moves from the command into
vectorcraft_tools::addons::trim::plan, which the command and the tool
both use. A preview spends at most a twentieth of the crossing work a
click may (Work::share); past that it shows nothing, and the click or
release still removes what it reaches. The tool keeps the crossings it
found for the document as it is, so moving along one path does not
search again, and kept crossings still count against a pick's work
budget. Work::spent_since and Work::draw in vectorcraft-pathops measure
and charge that work.

Docs: docs/mcp.md, docs/ui-parity.md, docs/target-app-parity.md.
2026-11-15 11:24:17 -08:00
dotCooCoo d5549d062d 3D (Classic): params text says Preserve Spot Colors has no effect with Black Overprint
With shadingColor blackOverprint every face keeps its paint and swatch
link whether preserveSpotColors is on or off, as docs/mcp.md says. The
params text of Extrude & Bevel (Classic), Revolve (Classic) and Rotate
(Classic) now says so too.
2026-11-15 11:21:11 -08:00
dotCooCoo 549f7b5fd1 ROADMAP: Indonesian is listed with the catalog that ships
The Languages table listed Indonesian as none and 0%, while
crates/ui-egui/src/i18n/id.tsv ships with 6,947 catalog rows and
Preferences offers it as Bahasa Indonesia. The row now gives the
catalog size and says that status and error messages are partial.

The "Also shipped" list now names Dutch, Danish and Turkish, which
ship full catalogs and are in COMPLETE_MESSAGES.
2026-11-15 11:17:40 -08:00
dotCooCoo 09a16f262f Eraser: the drag's area outline gives the first lean's bearing to the points before it
The release reads the bearing of the first point the pen leaned 1° or
more at for the points before it, while the outline kept the set value
there. The outline now takes that bearing too, and starts again when the
first lean arrives, also when a pen tilted in place at the last point
gives it.
2026-11-15 11:16:34 -08:00