Commit Graph
15489 Commits
Author SHA1 Message Date
BFlat babc8b1dd8 Merge pull request #7754 from dotCooCoo/feat/properties-graph-section
Properties: a Graph section opens Graph Type and Graph Data for a selected graph
2026-11-16 04:27:40 +07:00
BFlat 49be7e919a Merge pull request #7939 from dotCooCoo/fix/flatten-staggered-boxes-sweep-order
Flatten: boxes staggered right and up meet only the box before in the grouping sweep
2026-11-16 04:27:32 +07:00
BFlat fe0cb53d28 Merge pull request #7934 from dotCooCoo/fix/svg-import-absolute-ltr-character
SVG import: absolutely placed characters one text object cannot place import as a group
2026-11-16 04:27:23 +07:00
BFlat 9e88bff939 Merge pull request #7938 from dotCooCoo/fix/diacritic-docs-indic-options
Docs: Adjust Diacritic Position names Show Indic Options, the item that shows its fields
2026-11-16 04:27:15 +07:00
dotCooCoo 6aa8cb4b5e File Info: Templates Folder is offered only where there is a folder
The templates menu leaves out Templates Folder when the session has no
metadata templates folder, as in the web build, instead of offering an
item that only reports that there is none.
2026-11-15 13:17:05 -08:00
FredApps 48a8f2a464 Merge remote-tracking branch 'origin/main' into feat/cutover-remaining-codecs 2026-11-15 22:16:07 +01:00
dotCooCoo 6f853810bf Type: Composite Fonts' Show Sample draws the font picked with its metric lines
Show Sample (Hide Sample when it shows) in Type > Composite Fonts... draws
the font picked in a line of sample text, with the first character of
each custom set added, through the renderer, so color and bitmap glyphs
keep their colors. Buttons beside it show or hide lines for the ICF box,
em box, baseline, cap height, highest ascent and lowest descent, highest
ascender and x-height, and Zoom draws it at 25% to 800% of 36 pt. The em
box and ICF box are the Kanji part's font's; the other lines measure the
faces the glyphs are drawn in, fallback faces included. Each line takes
its part's size, baseline and vertical scale, and Kana scaled at center,
as layout sets them.

ui.dialog.set takes sample, zoom and the seven line fields, and refuses a
zoom outside the menu or a line that is not true or false. FontFace gains
cap_height(), the estimate a face without an OS/2 cap height uses, beside
x_height().

Docs: docs/mcp.md, docs/type-parity.md, docs/target-app-parity.md.
2026-11-15 13:13:32 -08:00
dotCooCoo 18b85e8fd9 Docs: Graph Type's Line Width also needs Connect Data Points
The MCP guide and the dialog test's doc comment said Line Width is available while Draw Filled Lines is on. The dialog also needs Connect Data Points on, as its code and test already check.
2026-11-15 13:09:36 -08:00
dotCooCoo 05124f65d8 File Info: a template saved without .xmp gets it, and OK waits for the merge choice
Save Metadata Template adds .xmp to a name typed without it, so the
templates list shows the file, and asks before replacing a file already
there under the completed name. File Info's OK and Enter wait while a
template being imported shows its merge choice, so the template is not
dropped. docs/mcp.md now says the title is left out of a template only
when it is blank or a new document's Untitled-N name.
2026-11-15 13:05:16 -08:00
dotCooCoo 1ead2bf809 Image Trace: seam fills on a stretched image stay within 0.75 image px of their edge
On an image stretched more one way than another, a seam stroke was as
wide as 1.5 pixels at the larger scale, so across the less stretched
direction it reached far past its edge: on a 40 x 20 image scaled 20x
across, a stroke along a horizontal edge covered 15 pixels on each
side, over transparent rows too.

On such an image, the seam fills are now each stroke's outline in image
pixels (butt caps, round joins), filled with the stroke's paint. An
image scaled alike in every direction keeps strokes. The anchor limit
counts the outlines' anchors. Outline views and Expand by color
recognize a seam fills group of filled outlines as they do one of
strokes, and Expand by color again recognizes the unclipped seam fills
group of a trace made before the seam fills were clipped.
2026-11-15 13:04:35 -08:00
dotCooCoo 0c5de2d598 Merge main into fix/transform-copies-raster-effects-each 2026-11-15 13:02:21 -08:00
dotCooCoo d8682e7e75 Effects: each copy of type, an image or a symbol instance draws the raster effects listed before its Transform effect
A Drop Shadow, glow, blur, Feather or pixel filter listed before a
Transform effect that makes copies of type, an image or a symbol instance
was drawn once under all the copies, at the object's own distances. Each
copy now carries those raster effects, as paths' copies do: scaled by the
copy's mean scale, with a Drop Shadow's offset turned, reflected and
scaled with the copy. Raster effects listed after the Transform effect
still paint once around all the copies.

Type is copied as its outlines, an image in its frame and a symbol
instance as its symbol's art. The canvas, the object's cull bounds,
export and Expand Appearance use the same art; type whose Transform
effect only moves its copies is exported as its outlines in that case.
Type and symbol instances in perspective, objects whose fill or stroke
has geometry effects of its own, and objects with a linked opacity mask
keep one set of raster effects.
2026-11-15 13:01:58 -08:00
dotCooCoo e030efa52c Clipboard: clipboard.flavours leaves out an SVG withheld from a confined caller
Under read roots, clipboard.exportSvg refuses an SVG that would name a
linked image file outside them, but clipboard.flavours still listed
image/svg+xml and the SVG markup as text/plain, and
Session::clipboard_flavours still made them. Both now take Include SVG
Code only when the SVG is not refused; PDF, PNG and a type-only copy's
text are unchanged.
2026-11-15 12:58:28 -08:00
dotCooCoo ec9c558456 .ai save: area type wrapped by plain paths, compound paths or groups stays type
Area type with wrap shapes was always written as outlines in the editing
data for other apps. It is now written as type when the reader works the
same wrap out again from the objects above it: each wrap object is a path
of one subpath, a compound path of visible members, or an unclipped group
of such objects, with no paint, or a solid fill, a plain solid stroke or
both, without effects, art style, opacity mask or clipping, with an
offset within -1000 to 1000 pt; the type's stored shapes match the ones
those objects give it; and the shapes of all area type stay within the
2,000,000 anchors the reader copies. Each frame of a thread is checked on
its own. When art is left out at the object limit, such type is written
as outlines again. Other wrapped area type stays outlines.

The reader recomputes the wrap with resolve_wrap after reading
(resolve_text_wrap in crates/eps/src/import/native/build.rs) and reads the
options with text_wrap in crates/eps/src/import/ai/read/document.rs; the
round-trip tests check the reopened characters, frame, wrap shapes and
wrap objects. resolve_wrap's layer walk is shared through a new
wrap_sources so the check follows the same traversal.
2026-11-15 12:56:22 -08:00
dotCooCoo 1c95aa2b65 Glyphs: the Show menu lists the font's OpenType glyph categories
After Alternates for Current Selection, the Glyphs panel's Show menu
and panel menu list the categories the browsed font's GSUB features
give glyphs to: Ligatures, Swash, Stylistic Alternates, each stylistic
set by the font's name for it (else Set N), Small Caps, Ornaments,
Fractions and Figures. Choosing one shows that category's glyphs, the
characters first and then the glyphs no character maps. A font without
the chosen category shows Entire Font.

- text: FontFace::glyph_categories reads the single, alternate,
  multiple and ligature substitutions of each category's features,
  once per face, leaving out a substitution an earlier subtable of
  its lookup shadows, within a total glyph budget.
- engine: text.glyphCategories {family, style?} lists them.
- ui-egui: the Show menu and panel menu entries, with Ligatures,
  Ornaments and Figures rows in every catalog.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-15 12:56:14 -08:00
dotCooCoo 78058a3521 PSD: type layers keep the type's anti-aliasing, and fallback-font type stays pixels
A type layer now records the type's own anti-aliasing method (None,
Sharp, Crisp or Strong; None when the export draws without
anti-aliasing) instead of Smooth. Type with a character that its font
lacks, and so is drawn with a fallback font, stays pixels; breaks,
joiners and variation selectors do not count. Hidden type that the export
leaves out (Include Hidden Layers off) no longer splits its layer, and a
fill or stroke that blends in a mode other than Normal keeps the layer
whole like an object that does.

The reader test uses craft-psd, which replaced the psd crate on main.
2026-11-15 12:50:09 -08:00
dotCooCoo 44f75df965 Command Palette: lists commands that run from a pick, plus panels and effects
The palette leaves out the engine commands that Edit › Keyboard
Shortcuts marks as needing a value (`needs_a_value`): a query with no
default key and no menu bar item, whose answer a pick drops (Document
JSON, Select All Unused in the Brushes panel), and a command that needs a
value no menu item gives (`transparency.set`, Document Setup's units).
Of those commands, the ones whose pick does something without params
stay listed: Stop Script, Clear Script Console, Clear Plug-in Cache,
Reset Preferences, Forget Import Matches, Begin Undo Group and End Undo
Group, the six Save … Preset commands, Delete Gradient Preset, Pixel
Snapping Options…, the three Asset Export commands that open the Asset
Export panel, New Symbol, Gradient Vector, Define Perspective Grid and
Select Slice. That leaves out 296 of the 1,006 engine commands it
listed. The UI commands it listed stay as they were.

Each panel is a result under Window › Show Panel: a pick shows the panel
and leaves one already showing as it is. Each Effect menu item is a
result, named as the menu names it, whose pick runs what its menu item
runs; while the item is dimmed, no dialog opens and the status line
says why. Results whose name
without its menu path is the whole query come first, so "layers" shows
the Layers panel among the 14 results. The search hint and the
app bar's search tooltip say "Search commands, tools, panels and
effects", in every catalog.
2026-11-15 12:48:58 -08:00
dotCooCoo 49d53b8aaf Crop Image: keep faint colors, the box's content and the settings of a failed crop
- Resampling at a resolution asked for weights colors by alpha in 16 bits a
  channel, so a pixel with alpha 1 keeps its color instead of turning black.
- A box between pixels is drawn with the image stretched so the box fills
  the whole pixels drawn; nothing past the box is squeezed into it.
- A linked W or H below a point raises both sides together, keeping the
  box's proportions.
- Apply no longer clears the box and the resolution; leaving the tool does,
  so a crop that fails keeps them for another try.
2026-11-15 12:48:39 -08:00
dotCooCoo 31d28a0a06 Glyphs: a pick at the end of a full frame follows its character to the next frame
When a pick put a character in at the end of a full frame of threaded
text, the text flowed the character on to the next frame, and the pick
looked for it only in the frame it was typed in: it refused the pick
and changed nothing. The pick now finds the character by its place in
the story, draws it with the glyph in the frame it went to, and the
Type tool edits that frame with the caret after the character.
2026-11-15 12:47:21 -08:00
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