Commit Graph
12000 Commits
Author SHA1 Message Date
dotCooCoo daeb83d2ee CDR import: bound the walks of clipped groups and stop copying refused dashes
Every chunk walked inside a clipped group now counts toward a new
clipped_chunks limit (2,000,000), each time a container names the group,
empty groups included. Containers that all name one group of empty
groups took time in the product of the two counts; past the limit a
container's group is left out, with its guidelines, and the container
stays as a plain shape with the limit warning.

An outline record refused at the dash limit drops its dashes from the
cache, so later shapes that use it take it solid without copying the
dash list.
2026-11-12 19:04:31 -08:00
dotCooCoo c2789fff2a CDR import: report id arguments cut short and resolve styles in linear time
A container, fill, outline or style argument too short for the record id
it names now adds the damage warning. Before, a container argument of
fewer than four bytes imported the container alone and dropped the
objects it clips without a warning.

Resolving the style table's parent chains now removes each walk's styles
from the visited set one by one instead of clearing the set, whose cost
grew with its capacity after one long chain.
2026-11-12 18:30:51 -08:00
dotCooCoo c9d1594716 Merge main into feat/cdr-import-all 2026-11-12 15:45:08 -08:00
BFlat b4505a76de Merge pull request #6887 from dotCooCoo/feat/new-document-profiles
New Document: each preset category starts documents from its own profile
2026-11-13 06:11:41 +07:00
BFlat d61ad77529 Merge pull request #6909 from dotCooCoo/feat/align-artboards
Align: the Align panel aligns and distributes the selected artboards
2026-11-13 06:11:32 +07:00
BFlat 1461bb2123 Merge pull request #6963 from dotCooCoo/fix/transform-effect-moves-member-raster-effects
Effects: a group's or object's Transform effect moves the raster effects inside it
2026-11-13 06:11:24 +07:00
BFlat a55606e66b Merge pull request #6949 from dotCooCoo/fix/assign-profile-working-spaces
Color management: Assign Profile leaves the working spaces of Color Settings
2026-11-13 06:11:15 +07:00
BFlat 48d8e16444 Merge pull request #6941 from dotCooCoo/fix/ai-twist-curves
.ai import: Twist stays live on curves and groups with nothing stroked
2026-11-13 06:11:06 +07:00
BFlat cea91c1374 Merge pull request #6968 from dotCooCoo/fix/followup-6910
MCP: a readable library's id keeps a hidden path that it holds after its start
2026-11-13 06:10:58 +07:00
dotCooCoo abbf611467 i18n: translate the CDR lenses warning
Every complete catalog gets the warning a CDR import gives for lenses
and object transparency, and the test of the CDR import notes checks it.
2026-11-12 15:00:48 -08:00
73b06e478e UI: icon flyouts resize from their top edge and free top corner (storytold/craft-libs#1094) (#6913)
Pin craft-ui to c4b8405d, which adds a top edge and the canvas-side top
corner to icon-strip flyouts and saves the moved top per group. Accept
its new MoveFlyoutTop docking action, and restore the saved top when a
group returns to its place. A docking regression checks the cursors, an
upward top-edge and free-corner drag with the bottom and icon-column edge
fixed, and the top after reopening and in a saved layout.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Codex <codex@openai.com>
2026-11-12 23:54:17 +01:00
dotCooCoo 206f36f1df .cdr import: describe clipping containers and their sources by what they hold
The docs, comments and PROVENANCE.md rows R45 to R48 name clipping
containers by what they do, and cite the sample files without a vendor
prefix in their names.
2026-11-12 14:42:54 -08:00
dotCooCoo fdbdbe8696 .cdr import: read the chunks of a style list before version 7
Before version 7 a LIST stlt holds chunks, not the style table, but the
index left every such list unsplit, so fills and outlines kept there
were not found. The index now splits it by the drawing's version, the
one its first vrsn chunk names, once all of the file's own chunks are
read.
2026-11-12 14:27:57 -08:00
BFlat efaa9afb9a Merge pull request #6917 from dotCooCoo/fix/ai-look-stroke-warning
.ai save: a stroke the object's art style keeps no longer warns
2026-11-13 05:24:11 +07:00
BFlat f813ea02d5 Merge pull request #6950 from dotCooCoo/perf/setformat-per-paragraph
Type: a Tabs indent drag over many paragraphs no longer takes time in the square of their number
2026-11-13 05:24:02 +07:00
BFlat 9861e7f927 Merge pull request #6920 from dotCooCoo/feat/export-notes-loss-first
Save and Export: notes of what the file loses come before notes on options
2026-11-13 05:23:53 +07:00
BFlat 912a97346b Merge pull request #6973 from dotCooCoo/fix/followup-6827
MCP: document.json names linked JavaScript files outside the read roots by file name
2026-11-13 05:23:43 +07:00
BFlat 822d4101b5 Merge pull request #6890 from dotCooCoo/feat/3d-expand-as-wireframes
3D and Materials: Expand as Wireframes turns a 3D object into its edges as paths
2026-11-13 05:23:34 +07:00
BFlat a86021c7ae Merge pull request #6833 from dotCooCoo/fix/dialog-set-hidden-fields
Automation: ui.dialog.set cannot change the command a dialog runs
2026-11-13 05:23:26 +07:00
BFlat 666ba78862 Merge pull request #6967 from dotCooCoo/feat/docinfo-brush-types
Document Info: Brushes lists the brushes applied to art, with their types
2026-11-13 05:23:17 +07:00
BFlat e0a8fdae5b Merge pull request #6958 from dotCooCoo/fix/bevel-join-visual-bounds
Transform: a bevel stops at the corners of the segments it joins with Use Preview Bounds
2026-11-13 05:23:09 +07:00
BFlat c2f97d2efa Merge pull request #6961 from dotCooCoo/fix/gradient-repeat-runs
Gradients: a repeated gradient with many stops keeps every run
2026-11-13 05:22:59 +07:00
dotCooCoo 05466e54a8 Color management: Working CMYK proofs a tagged document through the working space
View > Proof Setup > Working CMYK simulates the working CMYK space of
Color Settings in Proof Colors and Separations Preview, also in a
document assigned another CMYK profile. The active context keeps the
working context beside the assigned profiles, and the proof table cache
key includes the working settings, so a change of the working CMYK space
shows in the next proof.
2026-11-12 14:09:08 -08:00
dotCooCoo 75ac55b32a .cdr import: an ellipse of version 1 or 2 without its angles is damage
A drawn ellipse whose record ends before its two angles came in as a
whole ellipse with no warning; it is now left out as damage. The file
format table now says that version 3 envelopes are not applied and the
objects under them are kept, and gives one count of the formats opened.
PROVENANCE.md, the crate README and docs/mcp.md now say which parts of
versions 1 to 4 public specifications cover.
2026-11-12 14:07:48 -08:00
dotCooCoo f940e5e0f2 .cdr import: fuzz mutated drawings with styles and clipping containers, and place them
The importer's fuzz test of mutated RIFF drawings now also starts from a
drawing with a style table, a clipping container, an outline behind the fill and
a lens, and places each mutated drawing as well as opening it.
2026-11-12 14:03:22 -08:00
dotCooCoo cafbaec053 Merge main into fix/transform-effect-moves-member-raster-effects 2026-11-12 14:02:27 -08:00
dotCooCoo 5da5317c6c .cdr import: integration tests build as one test binary
The crate's integration tests move to tests/it, one module per area,
built as a single test binary as the other crates' are. The file format
table now lists clipping containers, fills and outlines taken from the object's
style, and the lenses warning.
2026-11-12 13:56:50 -08:00
dotCooCoo 8fbb5aae5c .cdr import: an outline of width 0 opens as a hairline
A drawn outline of width 0 became a stroke of width 0, which the
renderer does not draw. It now becomes a 0.25 pt stroke, the width PDF
import gives a line width of 0.
2026-11-12 13:54:24 -08:00
dotCooCoo 3e32e99a15 Merge main into feat/align-artboards 2026-11-12 13:47:00 -08:00
dotCooCoo 7907bae6c3 Merge main into feat/new-document-profiles 2026-11-12 13:42:10 -08:00
dotCooCoo 127229d188 Color management: removing a profile redraws only when the canvas changes
color.removeProfile gave every open document a new revision for any
removed profile. It now redraws when the removed profile was an assigned
profile in use, which the working space replaces, or the CMYK profile
View → Proof Setup targets. Removing any other profile leaves the
revisions unchanged, which loading_or_removing_the_proof_profile_redraws
checks.
2026-11-12 13:42:04 -08:00
dotCooCoo e71ab08233 .cdr import: bytes a failing compressed stream inflated count toward the limit
A zlib stream that fails near its end has already inflated most of its
bytes, which the reader discarded without counting them. Several such
streams could each inflate up to the file's inflate limit. Those bytes
now count toward it.
2026-11-12 13:40:48 -08:00
dotCooCoo 08155e34e3 .cdr import: a shape left out at the coordinate limit is not damage
A curve or polygon whose points go past the coordinate limit was left
out with both the limit warning and the damage warning, in RIFF files
and in files of versions 1 and 2. It now gives the limit warning only.
A polygon without its sides argument is still damage.
2026-11-12 13:37:48 -08:00
dotCooCoo 712e567a95 .cdr import: outlines behind the fill come in below the fill
Bit 0x10 of an outline's line type puts the outline behind the fill, so
that a filled shape shows only its outer half. The reader now reports
it, and the importer paints such a stroke before the fill. A clipping
container's outline behind its fill becomes a stroke of its own below
the clipping group, the two grouped together, since a clipping path's
stroke paints over the clipped objects. PROVENANCE.md row R49 gives the
sample files.
2026-11-12 13:33:33 -08:00
dotCooCoo 2c3f61851f MCP: a readable library's id stays only after a delimiter
A readable library's id was kept whole after any character outside a
short list, so in `/a+/project/libs/Kit.gpl` the id
`/project/libs/Kit.gpl` was kept and the hidden `/libs/Kit.gpl` inside
it showed in the reply. The same happened after `@`, `=`, `%` and `!`.

The id now stays only at the start of the text, after a space, a
quote, `,`, `;` or an opening bracket, or in a local `file:` URL.
Written with its `loaded/`, it also stays after `=`.
2026-11-12 13:31:33 -08:00
BFlat 71d717b1da Merge pull request #6940 from dotCooCoo/feat/learn-tool-locator
Learn: a tool's name in a tutorial step shows where the tool is
2026-11-13 04:26:05 +07:00
BFlat 3434e46240 Merge pull request #6825 from dotCooCoo/feat/custom-arrowheads
Stroke: custom arrowheads from an arrowheads file join the arrowhead menus
2026-11-13 04:25:55 +07:00
BFlat 10e87ff993 Merge pull request #6873 from dotCooCoo/fix/transform-effect-scales-raster-effects
Effects: a Transform effect transforms the raster effects listed before it
2026-11-13 04:25:45 +07:00
BFlat 321aa13251 Merge pull request #6962 from dotCooCoo/fix/trace-tinted-photos
Image Trace: sepia, single-hue and duotone photos are smoothed as gray photos are
2026-11-13 04:25:36 +07:00
BFlat b8d23007e8 Merge pull request #6964 from dotCooCoo/fix/shaper-stroke-click-construction
Shaper: a click on an original shape's outline enters Construction mode
2026-11-13 04:25:26 +07:00
BFlat da84e53b30 Merge pull request #6864 from jmverges/fix/6856-ai-type-pattern-paint
.ai import: type filled or stroked with a pattern keeps its pattern
2026-11-13 04:25:16 +07:00
dotCooCoo a670c3072b MCP: document.json names linked JavaScript files outside the read roots by file name
With automation read roots in force, document.json returned each entry of
svg_scripts unchanged, so a JavaScript file linked from outside the read
roots kept its full path in the reply. The reply copy now names such a
file by its file name alone. An entry given as a URL is kept, and the
stored document is not changed.
2026-11-12 13:18:17 -08:00
dotCooCoo c513114674 Gradients: Expand reports a capped gradient as unavailable
- object.expand.info reports no gradient or fill to expand for a
  gradient that repeats in more runs across its box than are written,
  matching object.expand, which leaves it a gradient. For a path that a
  painting live effect draws, it measures each piece the effect returns.
- CSS writes a repeating gradient's stop positions, and a repeating
  radial gradient's radius, with enough decimals that their rounding
  adds up to at most a hundredth of a period across the box (at least
  four for positions and three for the radius).
- docs/mcp.md says that sharp steps and swatch-linked stops are the last
  to be left out rather than always kept, and that the CSS conic limit
  counts stops before midpoints and Perceptual curves add more.
2026-11-12 12:55:54 -08:00
dotCooCoo 264a6541e6 Merge main into fix/dialog-set-hidden-fields 2026-11-12 12:55:47 -08:00
dotCooCoo f8ad4565d0 .cdr import: an outline is dashed only when its line type says so
Bit 0x04 of an outline's line type marks it dashed. Some drawings store
dashes in outlines without that bit, and their own preview pictures show
those outlines solid; the reader drew them dashed. Such outlines now
come in solid. PROVENANCE.md row R48 gives the sample files.
2026-11-12 12:52:45 -08:00
dotCooCoo 5edc0fa4f8 Merge main into perf/setformat-per-paragraph 2026-11-12 12:52:42 -08:00
dotCooCoo f02a572c6a Merge main into fix/assign-profile-working-spaces 2026-11-12 12:46:52 -08:00
dotCooCoo 2e95fd8573 Transform: a stroke runs on through a joint too shallow to bevel
A click just past the end of two segments that meet with almost no
turn, as the segments of a warped edge do, missed a beveled or mitered
stroke: the joint has no bevel, and the check counted that as a miss.
It now counts as painted, so the eyedropper samples an envelope's
stroke there again.
2026-11-12 12:46:14 -08:00
dotCooCoo b0cde0067e Document Info: strokes and fills at opacity 0 list no brush or paint
A stroke at an opacity of 0 draws nothing, so its brush is no longer
listed in the Brushes category, brushNames or brushes. Pattern Objects,
Gradient Objects and Spot Color Objects likewise leave out fills and
strokes at an opacity of 0, and Objects no longer counts objects whose
only such paint is at opacity 0.
2026-11-12 12:45:28 -08:00
dotCooCoo 15ffb4ec01 Merge main into feat/export-notes-loss-first 2026-11-12 12:45:09 -08:00