Commit Graph
11494 Commits
Author SHA1 Message Date
dotCooCoo f4c911d4d3 Scripts: open options with an importer, null export options and close checks for files that keep every artboard
- document.open refuses page, cropTo, pages and crop when a named importer reads the file (linkPages
  still uses the built-in reader).
- exportFile with explicit null options throws a TypeError for GIF, PNG8 and TIFF too.
- close(SaveOptions.SAVECHANGES) saves a modern .ai or .ait file and an SVG file with Preserve
  Editing whatever range was remembered; a range the save refuses still refuses.
- The script checker keeps a try statement's catch and finally, and an else after a nested
  do-while, inside the loop body; a line break after a label does not start a new statement; a
  this assignment in a function that hides a global clears the global's saved methods; and
  holder.d['saveAs'] = ... no longer counts as a write to d.
- docs/mcp.md describes which files keep every artboard on close.
2026-11-30 03:36:01 -08:00
dotCooCoo f553ddfa67 xtask: test-lint fails on weak tests in the lines a change touches
`cargo xtask test-lint` reads the Rust files changed since a base and
fails on tests that a wrong result can pass: `.all()` with no length or
emptiness check, only is_ok/is_some/non-empty checks, `assert_eq!(x, x)`,
a process test that checks only the exit status, no assertion and no
asserting helper, a silent early return on a value from the code under
test, `#[ignore]` without a reason, an environment variable that no CI
leg sets, `thread::sleep` in test code, and test code that reads Rust
source outside the listed source audits.

Only hits on changed lines, or in a test with a changed line for the
rules about a whole test, fail it; older hits in the same files are
counted. The base is --base or TEST_LINT_BASE, the first parent of the
checked-out commit in CI (a shallow checkout fetches it), else the merge
base with upstream/main or origin/main. `// test-lint: allow <rule>
<reason>` exempts a line. `--all` lists every hit by crate and rule and
does not fail. `cargo xtask ci` runs it after cursors, so it runs in the
checks shard.
2026-11-30 03:12:48 -08:00
dotCooCoo e166987050 Docs: the Symbols row names the .ai editing-copy limits for dynamic symbol changes
The Symbols row now says that VectorCraft restores dynamic symbol instance
changes on instances the editing copy keeps live, within the limits the File
formats row lists: fill and stroke changes to type are not reproduced, none of
an instance's changes is written when they take more than 1 MiB together, and a
change can apply to a different part when the copy leaves out an earlier one.
2026-11-30 02:59:32 -08:00
dotCooCoo da881e42cb Docs: the .ai editing-copy limit names qualifying images with Warp as kept live 2026-11-30 02:34:56 -08:00
dotCooCoo 580417f85c Docs: .ai editing-copy limits for symbols and meshes, 9-slice guides on reopen
The File formats row now names the copy the limits apply to (the editing
data for other apps, which VectorCraft reads only when it does not reopen
the embedded VectorCraft document) and lists symbols with their instances
and gradient meshes among the live objects that copy keeps, with their
limits. The 9-slice guides note says the guides return when an .ai, or an
SVG saved with Preserve Editing Capabilities, reopens from the embedded
document.

file-format-parity.md describes how the .ai writer keeps dynamic symbol
instances live: their dynamic type and changes go in VectorCraft's own
entries, changes past 1 MiB are left out without a warning, and changes
that name a part by its place can miss when the copy writes type as
outlines or leaves out an earlier part.
2026-11-30 02:31:09 -08:00
dotCooCoo 8e7e326e6c Docs: one Feature areas row per area, with gaps that match main
The Feature areas table in docs/target-app-parity.md listed Type
advanced, Symbols, Image Trace, 3D, View and File formats more than
once. Each area now has one row that merges the evidence of its
copies, so the weights sum to the stated 105; feature depth stays
~79% (~81% without generative AI).

The gaps no longer list work that main ships: rotated-box transforms
and Global Edit of rotated copies, Touch Type, ruby, variable font
axes, tab leaders, editable 9-slice guides in native saves, and
mapped textures in 3D export. The remaining limits are named instead.
2026-11-30 00:23:42 -08:00
tareq dce4711afc Merge remote-tracking branch 'upstream/main' into feat/arabic-language-support 2026-11-30 08:59:40 +01:00
jmvergesandClaude Opus 5.5 bc9e7c9124 .ai import: a word the page draws from two text objects in a row is their type
Where the text document makes the type of every text object that shows,
each piece of the page's type is matched with the made type that holds
it, and a word of the piece is that type's when its spelling contains
the word. The page can draw two text objects as one word: a word and a
letter set apart from it (a swash "h" after "Spirit") come out of the
page as one piece, "Spirith". Both text objects hold the piece, but
neither spells the word, so it was counted as type with no text object,
with the note "some of the page's type has no text object in the
layers, so it is left out" (a loss, so `convert` wouldn't write over the
file), though both text objects come in and draw it.

A word still left is now the type of the text objects holding the piece
when it is the last word of one of them joined to the first word of
another that draws after it along the first one's lines. Each part is a
whole word of its text object, so bits of words don't make up a piece,
and the two the other way round don't make the word.

In our garment files (used locally, never committed) this takes the
note off one file of 424 and changes nothing else.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-30 07:06:19 +00:00
dotCooCoo 87005e7ae7 Docs: readiness and depth scores match what main ships
Rescore the area, dimension and audience tables against the code on
main, using each doc's own formulas: feature depth 8342/105 (~79%),
breadth ~96% (menu items 815 of 816 wired, tools 91 of 92, vector
effects 50 of 50), full readiness ~67%, mainstream ~65%, essentials
~77%, UI/UX ~60%. File formats stay at ~75%. Stability, Raster effects
in ROADMAP, and Export/print in the essentials table go down where open
crash reports or the area table say so. Hours are not recomputed.
2026-11-29 22:58:55 -08:00
dotCooCoo 9a843a5f0e Quick Pen: the arc-size wheel keeps other view changes and pinches
A Ctrl+wheel share the tool takes now restores only the zoom, pan and
rotation from before the wheel, so the content rect beside the rulers
stays as the canvas settled it and a view command queued in the same
frame still applies. A share outside the content rect makes no step, a
native pinch with Control held zooms as usual, and the toolbar is shown
in the restored space. The parity entry says one step per net whole
wheel line.
2026-11-29 22:58:22 -08:00
dotCooCoo f4888892d0 Quick Pen: the first Ctrl+wheel share keeps the view; English-only labels
The arc-size wheel is now read before the canvas body, so on the first
share of a turn the controls, painting and tool host use the view the
pass began with instead of the zoomed one. The framework reports a
frame's wheel motion as signed totals, so opposite notches in one frame
cancel; the docs say so. The arc size labels are English only, as new
strings go through craft-i18n.
2026-11-29 22:36:16 -08:00
dotCooCoo e94496b42f Asset Export: the settings scroll in a short panel
With assets in the panel and many format rows, the Export Settings
section grew past the top of the panel, so its heading and the first
format rows could not be reached. The settings now sit in a scrolling
stack that takes at most half the panel's height, as the CSS
Properties panel does, and the preset name row, Export and the footer
bar stay below it.
2026-11-29 22:16:18 -08:00
dotCooCoo 845544618c Color Effects: Randomize Fill Colors documents that colors follow the ids order
The MCP guide and the command help now say that colors are drawn in the
order ids lists the objects, so the same seed can give each object a
different color when the order changes.

The graph design test also covers copies that keep the design flag while
the series no longer names a design, so the flag alone keeps their fills.
2026-11-29 21:56:00 -08:00
dotCooCoo be62563b59 Merge main into fix/wayland-pinch-zoom 2026-11-29 21:30:45 -08:00
dotCooCoo b385852729 Merge main into feat/quick-pen-scroll-arc 2026-11-29 21:17:46 -08:00
dotCooCoo fb0d82ea3f Docs: state the Retype same-font retry, Gujarati and tab-title font status exactly
docs/mcp.md now names the shapes the same-font near match compares again:
a shape matched whole whose matches are all near matches in other fonts,
with an open line before it. Exact matches, split shapes, shapes with no
match and shapes after an unmatched shape are not compared again
(crates/engine/src/cmd/retype.rs, join_in_line_face and its caller).

The Gujarati status callout in docs/localization-parity.md now says the
pinned fonts include Noto Sans Gujarati, as its table row does; the web
startup list still has no Gujarati face.

docs/ui-parity.md limits the condensed tab-title face to desktop builds;
web builds draw tab titles in the semibold face (docs/development.md).
2026-11-29 20:24:27 -08:00
dotCooCoo 634a1edb1b Merge main into fix/craft-fonts-pin-main 2026-11-29 20:24:27 -08:00
dotCooCoo cd1c3e8c9f Docs: name Group by Row among the Arrange Tools visual-bounds exceptions
The Arrange Tools overview said every command except Arrange in Grid and
Offset Objects measures as object.setBounds does. Group by Row always
uses visual bounds, with strokes and vector effects included and raster
effects left out, so the overview now names it and points to its row.
2026-11-29 20:16:33 -08:00
.CooCoo 782cf7b474 Merge pull request #10183 from dotCooCoo/docs/docs-roadmap-current
Docs: docs/roadmap.md matches what main ships
2026-11-29 20:09:23 -08:00
.CooCoo f5abe7c1ae Merge pull request #10181 from dotCooCoo/docs/three-d-current
Docs: three-d.md matches what main ships
2026-11-29 20:09:17 -08:00
.CooCoo 079a5efdbe Merge pull request #10180 from dotCooCoo/docs/hardware-parity-current
Docs: hardware-parity.md matches what main ships
2026-11-29 20:09:11 -08:00
.CooCoo 1ee2fb8d0a Merge pull request #10179 from dotCooCoo/docs/type-parity-current
Docs: type-parity.md matches what main ships
2026-11-29 20:09:04 -08:00
.CooCoo 1718b77510 Merge pull request #10178 from dotCooCoo/docs/effects-parity-current
Docs: effects-parity.md matches what main ships
2026-11-29 20:08:57 -08:00
.CooCoo 8d6748a927 Merge pull request #10177 from dotCooCoo/docs/file-format-parity-current
Docs: file-format-parity.md matches what main ships
2026-11-29 20:08:49 -08:00
.CooCoo 5e128de75b Merge pull request #10176 from dotCooCoo/docs/ui-parity-current
Docs: ui-parity.md matches what main ships
2026-11-29 20:08:40 -08:00
.CooCoo ae18c8e8bf Merge pull request #10175 from dotCooCoo/docs/target-app-parity-current
Docs: target-app-parity.md matches what main ships
2026-11-29 20:08:29 -08:00
dotCooCoo c61c271b74 CI: move the craft-fonts pin to craft-fonts main in every workflow
The CI, FreeBSD, nightly, macOS nightly and release workflows pinned
craft-fonts b076417, which has no fonts/latin-manifest.txt, so every
build warned that it could not embed the tab-title face. They now pin
craft-fonts main at 16bbfc3, which adds Noto Sans Condensed SemiBold
(storytold/craft-fonts#72), so builds from these workflows draw document
tab titles in it. The pin also brings Noto Sans Lao, Noto Sans for eight
Indian scripts (Bengali, Gurmukhi, Gujarati, Oriya, Tamil, Telugu,
Kannada and Malayalam) and the Latin catalog.

With the new faces a build loads 135 faces instead of 54, and Retype
compares the first 96 first. Two faults showed:

- Retype: near matching fits a shape with at most the 256 glyphs closest
  to it in proportion over every face. The dots and periods of the new
  faces, drawn alike in each family and each named weight, took all 256
  places, so a simplified Source Sans 3 period after "no" matched no
  glyph of Source Sans 3 and was left as an outline. A shape that near
  matches no glyph of the font of the line before it is now also
  compared with that font's own 256 closest glyphs, and joins the line
  when one fits. RetypeIndex::near_matches_in does that lookup.
- Tests: six Retype tests added their test font to the global font
  database and expected Retype to compare it, which it did only while
  fewer than 96 faces were loaded before it. They now name the font
  (type.retype's fonts, or live type in the family as #6896 does for
  of_two_versions_only_the_one_the_name_gives_is_listed), and
  lines_in_family fails when the family has no match instead of reading
  another face.

all_supplied_craft_font_families_are_registered_without_system_fonts
looked up every embedded craft-fonts face in the document font database.
The tab-title face is embedded for tab titles only and the database
leaves it out (document_fonts), so the test now checks the faces
document_fonts lists.

docs/mcp.md describes the new near-match step, and docs/ui-parity.md and
docs/localization-parity.md describe the new pin.

The pin change and the version test fix follow #6896 by @newsbaba24x7.
2026-11-29 20:05:10 -08:00
dotCooCoo 2be42e7986 Shape Builder: saved Artwork from earlier versions switches to Color Swatches once
Leaving the Shape Builder saved every one of its options, so preferences
from earlier versions hold pickColorFrom "artwork" whether or not it was
picked, and kept the old default after Color Swatches became the default.

The preferences now carry toolSettingsVersion, written as 1 once a tool
setting is stored. Applying preferences without it changes a saved
Shape Builder pickColorFrom "artwork" to "swatches" and writes the
version, so Artwork picked after that is kept at the next launch. A
saved "swatches" and preferences without a saved pickColorFrom are
unchanged.

Docs: docs/mcp.md and the tool options params text.
2026-11-29 19:52:59 -08:00
dotCooCoo 1b8927db9f Merge main into feat/group-rows 2026-11-29 19:10:04 -08:00
dotCooCoo 3a8b8b8f25 Merge main into feat/scripts-api-d6-save-export-open 2026-11-29 19:06:23 -08:00
dotCooCoo 0d81846481 Docs: docs/roadmap.md matches what main ships
The Set type row names Justification… (#2771) instead of calling the
justification options missing. The Alongside step names the one menu stub
left, Effect › 3D and Materials › Materials…, instead of 28. Both M7 rows
mark tab leaders done (#1880) and vertical type in progress with Type ›
Type Orientation (#5027).
2026-11-29 18:44:43 -08:00
dotCooCoo 4092a8b10b Docs: gaps.md matches what main ships
Lines that called shipped work missing, pending or unconfirmed now say
what main has: the key anchor for Align and Distribute (#7769, #8023),
artboard colors in exports and print (#4991), update checks (#4138),
Touch Type, Snap to Glyph, ruby, kinsoku sets and tate-chu-yoko, the
file-font and read-only save regressions passing in #4569 and #6671,
and the Wayland cursor and Windows title bar fixes the reporters
confirmed (#1645, #1758). The built-in brush library count and list
match the twenty libraries in brushlib.rs, and the Preferences count
matches the two options still listed under Missing.
2026-11-29 18:44:15 -08:00
dotCooCoo 059946687a Docs: target-app-parity.md matches what main ships
Lines that listed shipped features as remaining now name the pull
request that built them: Touch Type (#2469), the Dimension tool (#1788),
the freehand Keep selected (#2246), Alt to the Smooth tool (#2685), Blob
Brush Merge Only with Selection (#2367), Live Corners' Relative rounding
(#3091), Global Edit of similar groups (#4983), Consolidate All Windows
(#5216), Select All across threaded frames (#5542), the Bullets and
Numbering dialog and list levels (#5037), Convert to Text (#4093), the
spelling dialogs (#6341, #6425, #7744), Retype's installed-font search
(#8823), Retype in Quick Actions (#8778) and Cursor Swatch Preview
(#7265). The #1758 entry records the reporter's confirmation. Scores,
status lines and revision-history rows are unchanged.
2026-11-29 18:44:10 -08:00
dotCooCoo 47d067bfca Docs: ui-parity.md matches what main ships
The two duplicate Simplify rows are marked done: the slider opens at
the Auto-Simplify level (#3750), and with part of a path
direct-selected only the selected runs are simplified (#3814).

The Actions panel row names New Action (#5270) and Action Options
setting a function key that plays the action; editing actions remains.

The dynamic symbols row adds gradient and pattern fills and strokes
and the Transparency panel's opacity and blend for a picked part
(#6308), and .ai editing data keeping dynamic symbols (#8747).
2026-11-29 18:41:10 -08:00
dotCooCoo 51f49815a4 Docs: hardware-parity.md matches what main ships
- Summary: Windows reads the pen's tilt and barrel rotation with
  Windows Ink (#372).
- Pen tilt row: Bristle brushes follow the recorded pen pose (#8490).
- Touch gestures row: the Touch workspace ships (#3139); touch-screen
  rotation is still missing.
- Multiple monitors row: floating panels (#4135) and floating document
  windows (#5278) are OS windows, and a floating panel reopens on the
  monitor where it was left (#6038); Wayland remains.
- 3D GPU rendering row: 3D and Materials ship (#1453) and draw on the
  CPU, shaded or wireframe, with no ray tracing.

No status line, revision-history row or score changes.
2026-11-29 18:40:37 -08:00
dotCooCoo d4ba715061 Docs: effects-parity.md matches what main ships
- 3D and Materials: the summary row counts Revolve (Classic) and
  Rotate (Classic) beside Extrude & Bevel (Classic) (#6174, #6817,
  #6826).
- Path: Use Preview Bounds measures type with Outline Object by its
  glyph outlines in Align, Distribute and the Transform panel (#2595).
- Stylize: Scribble Options has its Settings presets (#4274).
- Warp: the Mesh tool and Direct Selection edit a warp envelope's
  points (#7064).
2026-11-29 18:40:34 -08:00
dotCooCoo 848d8881b2 Docs: file-format-parity.md matches what main ships
The PDF embedded-font paragraph now records that full workspace CI
passed on #4569 before it merged; hardening paths outside those suites
stay pending. The read-only Save summary now records that the focused
engine regressions from #6671 passed; native panel acceptance stays
pending.
2026-11-29 18:40:28 -08:00
dotCooCoo 4c24874e2e Docs: type-parity.md matches what main ships
The CJK row lists custom kinsoku sets as done, through Type › Kinsoku
Shori Settings… (#7229); custom mojikumi sets and the Mojikumi Settings
dialog stay missing. The Retype row no longer lists the Properties
panel's Quick Actions among the missing ways to open the Retype panel,
since its Retype Quick Action does that (#8778).
2026-11-29 18:40:13 -08:00
dotCooCoo 45b0cb12f0 Docs: three-d.md matches what main ships
Graphics map onto Inflate's puffed front and back (#7767), so the
unbuilt list no longer names graphics on Inflate and the Graphics
sentence names Inflate's faces. The 3D (Classic) effects export as
meshes through Asset Export (#6168, #7852), so only Turntable stays
named as unbuilt there.
2026-11-29 18:39:59 -08:00
dotCooCoo 3e29a71b99 Selection Tools: Edit Points Only keeps Appearance row changes and other status messages
Replacing or canceling a drag's preview restores the Appearance row only when
the preview itself changed it, so a row set or cleared during the drag stays.
The dialog clears only its own preview error, and only while it is still the
current status message. The group expansion test checks behavior instead of
source text.
2026-11-29 18:05:26 -08:00
dotCooCoo 094f59566c Arrange Tools: Group by Row refuses parts of live groups and graphs and leaves layers alone
Group by Row now also refuses direct children of Objects on Path and Live
Paint groups and objects inside a live graph, while a whole live group or
graph can still be grouped with other art. Selected layers and sublayers
stay selected and are not grouped.
2026-11-29 18:05:25 -08:00
dotCooCoo 5fccf73431 Color Effects: Randomize Fill Colors colors compound marks in a graph series
A compound path or live compound shape directly in a graph series group now
takes a color. Generated column, marker and legend swatch copies carry a new
graph_design_art flag and keep their design's fill; in documents saved before
the flag, a compound in a series whose assigned design is itself a compound is
still treated as design art. Paths a user groups inside a series keep their
fills, as for paint.setFill. Nested members resolve to the outermost compound
in one walk of the ancestry, and series membership is looked up once per run.
2026-11-29 18:02:26 -08:00
FredApps cee1624df4 Merge current main into SVG export length-unit branch 2026-11-30 02:59:35 +01:00
dotCooCoo 8e68c5edcf Shape Builder: Pick Color From defaults to Color Swatches
While the Shape Builder is active, a fill picked from a swatch or a color
changes only the current fill, and the selected art keeps its own. With
Pick Color From set to Artwork, a merge takes the look of the art, so the
picked color never reached the merged shape and the tool looked as if it
could not fill.

Pick Color From now defaults to Color Swatches: a merge fills with the
picked color, and the Left and Right arrow keys step through the color
swatches. A pickColorFrom saved with the preferences is kept, so a saved
Artwork stays Artwork; preferences saved without one take Color Swatches.
The shapeBuilder.merge command still defaults to artwork when its
pickColorFrom is left out.

Docs: docs/mcp.md and the tool options params text.
2026-11-29 17:43:37 -08:00
dotCooCoo 6532abda43 Arrange Tools: Group by Row refuses Shaper and compound shape children and non-object params
Group by Row now refuses objects whose parent is a Shaper group or a live
compound shape, since regrouping them breaks the Shaper group or changes the
Boolean result, and refuses parameters that are not an object. Row
measurements share one symbol name index instead of indexing every symbol
for each instance.
2026-11-29 17:19:26 -08:00
dotCooCoo 8a29b0ac66 Merge main into feat/corner-marks 2026-11-29 17:10:09 -08:00
dotCooCoo f99ef023ad Scripts: close checks the artboards the saved file keeps; saves report warnings
Document.close(SaveOptions.SAVECHANGES) now judges artboard loss by the
file the save writes. A PDF last saved with useArtboards: false is
refused, since it holds one page of the art's bounds. A native or .ai
file saved with separateArtboards is saved and closed whatever its range
names, since the range picks only the separate files; a version 7 .ai
file keeps the range check.

Document.saveAs, Document.exportFile, app.open and the save that
close(SaveOptions.SAVECHANGES) runs write each warning of their command
to the console after the method's name (for example "saveAs: SVG keeps 1
of the document's 2 artboards ...").

Script Check reports a file write for a saveAs or exportFile call on the
script's own object when the variable is assigned in a loop around the
call, since a later iteration may run the call on a document. Loop bodies
without braces follow if, else and line breaks, and a variable of the
same name that a function declares is kept apart.

A test shows that a waiting point change counts as unsaved for
Document.saved and close().
2026-11-29 16:49:37 -08:00
dotCooCoo cb4c5e5ee9 Merge main into feat/scripts-export-autocad 2026-11-29 16:24:39 -08:00
dotCooCoo 13b8b4a325 Merge main into feat/scripts-export-autocad 2026-11-29 16:23:58 -08:00
dotCooCoo 59d7c483c9 New Document: file.new refuses artboard counts that are not whole numbers
file.new rounded artboards, artboardLayout.columns and artboardLayout.rows
before checking them, so a value such as 2.4 or 0.6 was quietly taken as
a different count, and artboards or columns outside 1 to 1000 were
clamped. A direct call now refuses a count that is not a whole number
from 1 to 1000 and opens no document. A step replayed from a journal or
played from the Actions panel keeps the earlier rounding, so saved steps
still play.

The artboardLayout error messages now list rows among the keys.
2026-11-29 16:20:08 -08:00