Commit Graph
11080 Commits
Author SHA1 Message Date
dotCooCoo 9548a669a0 SVG export: type on a path that starts with a drawn repeat mark is outlined
Type on a path whose frame starts with a repeat mark drawn as the
character it repeats is now written as outlines with a warning, as other
type on a path that a <textPath> cannot reproduce is. With Kurikaeshi
Moji Shori off it stays live text.
2026-11-15 10:18:45 -08:00
dotCooCoo 402b62b20d 3D: a transparent gradient lines up its colors and transparency across the faces
Follows #7338. Under colored lights, and under the classic effects'
shading, a gradient with transparent stops is drawn opaque on each face
under one opacity mask of its transparency. A gradient without a
placement of its own fitted its colors to each face's bounds, while the
mask fitted the whole solid, so the color and transparency ramps did not
line up and the colors started over on each face. Such a gradient is now
placed once on all of the solid's faces, grown by 1 pt, before it is
split into colors and mask. Opaque gradients and placed gradients are
drawn as before.
2026-11-15 10:18:36 -08:00
dotCooCoo 1a78011eae Merge main into fix/graph-design-art-paint 2026-11-15 10:13:04 -08:00
dotCooCoo f73280731a Paint: invert and complement of a group remember the fill its proxy shows
paint.invert and paint.complement given a group with a fill or stroke of
its own remembered the new paint of the first object inside it, while the
Fill and Stroke proxies show the group's own paint. The remembered paint
now follows the proxy: for each object given, in order, a group whose own
fill or stroke changed gives that paint, otherwise the first object inside
it that is not graph design art does.
2026-11-15 10:07:33 -08:00
dotCooCoo 3ca38f2237 Paragraph: Kurikaeshi Moji Shori draws ゝ or ヽ with a combining voicing mark as voiced
ゝ or ヽ followed by U+3099, which a font draws as one glyph, is now drawn
at a line start as ゞ or ヾ would be, instead of as the plain kana. A mark
that shares its cluster with other glyphs, or with any other combining
character, keeps its own glyphs.
2026-11-15 10:01:43 -08:00
FredApps 9d4ac63a91 Merge remote-tracking branch 'origin/main' into work7669 2026-11-15 19:01:36 +01:00
FredApps 3e8f03962b Merge remote-tracking branch 'origin/fix/restore-codec-cutover-ci' into work7669 2026-11-15 19:01:25 +01:00
FredApps b652c6697c fix(codecs): keep main's behaviour where the cutover changed it
- EPS CCITTFaxDecode goes back to hayro-ccitt (main's filters.rs and data.rs):
  craft-stream-codecs decodes /K -1 /Columns 70 data to other rows
  (eps import::tests_images::ccitt_fax_images_draw). DCTDecode is main's again.
- The AI editing writer decodes through the image crate again: going through
  RGBA8 lost 16-bit sources, so their 8-bit warning disappeared
  (ai_editing::tests::sixteen_bit_images_are_written_at_eight_bits).
- Crop Image refuses an image over its allowance by header size again, with
  main's "an image of W × H pixels is too large to draw" message.
- Test fixes: colorized_images writes its gray PNGs gray again, and the PDF
  16→8-bit test expects rounding, as the 8-bit copy is made.
2026-11-15 19:01:25 +01:00
ruchirguitar 18bfc1239b G12: confirm context-menu swatch deletion
Reuse the panel deletion helper so the clicked swatch is deleted only after confirmation. Cover confirmation text, cancellation, clicked-item targeting and Undo across all five views. All 39 Swatches tests and all 13 local CI gates pass; fresh deep CodeRabbit review reports zero findings.
2026-11-15 23:25:36 +05:30
dotCooCoo fcaed952fb Paragraph: Kurikaeshi Moji Shori draws a threaded type-on-path frame's first repeat mark
A frame of type on a path whose first paragraph continues from the frame
before now draws a repeat mark at its start as the character before it in
the frames before, as area and point type do. The mark keeps its advance,
so the glyphs stay where they were, and live SVG text writes the character
drawn.
2026-11-15 09:50:38 -08:00
Dylan M. Taylor abe90db45a Cover PNG transparency keys in opaque outline decoding 2026-11-15 17:42:47 +00:00
Dylan M. Taylor 2ad5fa1734 Preserve renderer source limits for streaming PNG reduction 2026-11-15 17:41:07 +00:00
dotCooCoo 3e2a2ad9ac Paint: invert and complement of a group of design art remember its new fill
paint.invert and paint.complement given a group whose own fill or stroke
changed, with only graph design art inside it, left the last color and
the recent colors as they were, because the remembered paint was taken
only from the objects inside the group. It now comes from the first
group whose own fill or stroke changed. A recolor that changes no
group's paint, such as the complement of a gray fill, remembers nothing.
2026-11-15 09:41:04 -08:00
dotCooCoo 63451f5d78 Command Palette: a Recent Commands list beside the search field runs the last five picks again
A button beside the Help › Search Commands field opens a Recent Commands
list: the last five commands and tools picked from the palette, most
recent first. A command picked again moves to the top, so it takes one
place. Choosing a row closes the palette and runs it the way a pick of
the same result does, so dialogs, a dimmed item's reason and tool picks
work as before. With nothing picked yet, the list shows a dimmed No
recent commands row.

A command that is not available now, such as a filter of a plug-in that
is not loaded, is left out of the list but stays in the saved ids, so it
shows again when it comes back. The saved list keeps the last five
available picks and at most 20 ids in all. It is saved with the UI state
next to Recent Fonts.

While the list is open, its first row takes the keyboard, Up and Down
move through its rows and wrap at the ends, Enter runs the row, and
Escape closes the list before the palette.

Docs: docs/target-app-parity.md (command palette).

Fixes #6376
2026-11-15 09:39:13 -08:00
dotCooCoo a5b84d8e2a Paragraph: Kurikaeshi Moji Shori keeps one record per mark when area type flows again
Vertically aligned area type in a frame that is not a rectangle flows its
text again until it settles, and each pass added the line-start repeat
marks to the layout's records once more, so SVG export could look up the
wrong character. Each pass now starts from empty records, and an undone
pass restores the ones before it.
2026-11-15 09:38:15 -08:00
FredApps 59ddf705b9 fix(codecs): read image sizes from headers for PNG, JPEG and TIFF again
craft_image_codecs::probe_size only reads WebP, EXR and the GIF/BMP/TGA family;
for PNG, JPEG and TIFF it returns Unsupported. The cutover used it for header
sizes, so DXF export left every PNG out (cad tests), plugin objects lost PNG
pixels, and EPS image-mask and SVG import fell back to decoding whole images to
learn their size. vectorcraft_doc::header_size reads PNG's IHDR and a JPEG's
frame through craft-image-codecs and other formats through the image crate's
header readers, as main does, without decoding pixels. The SVG filter's JPEG
size comes from jpeg_info instead of a full decode.
2026-11-15 18:35:21 +01:00
dotCooCoo 71a474450d Merge main into feat/3d-classic-black-overprint 2026-11-15 09:34:04 -08:00
dotCooCoo bef5bc01e1 i18n: drop the Georgian justification order row that main now carries
main's ka.tsv gained the same `@msg` row, so the catalog held it twice and
bundled_catalogs_are_consistent failed.
2026-11-15 09:32:31 -08:00
dotCooCoo 74f139062b Paragraph: Kurikaeshi Moji Shori scans a paragraph once while laying it out
Each line that started with a repeat mark scanned the paragraph's text from
its start for the character the mark stands for, so a paragraph with marks
at the start of many lines took quadratic time to lay out. The scan now
goes on from the line before.
2026-11-15 09:31:23 -08:00
dotCooCoo 9255edc3d8 Merge main into feat/3d-classic-light-sphere 2026-11-15 09:29:07 -08:00
dotCooCoo bf2a90ed90 Merge main into feat/3d-bevel-reset 2026-11-15 09:28:38 -08:00
dotCooCoo a9119df4bc i18n: drop the ka and ru toolbar error rows that main already has 2026-11-15 09:24:23 -08:00
dotCooCoo bb3653e98f Docs: the command palette is named by its menu item, not by ⌘K
The egui crate's header comment and the M14.8 line in
docs/target-app-parity.md called it "the ⌘K palette" and "a ⌘K command
palette". Cmd+K runs edit.preferences, and help.commandPalette (Help ›
Search Commands…) defaults to Cmd+Shift+/. Both now name the menu item,
and the crate comment links the palette module.
2026-11-15 09:22:55 -08:00
dotCooCoo cd30b7b31e Merge main into fix/expand-appearance-nested-instance-effects 2026-11-15 09:20:32 -08:00
dotCooCoo 8263e36a8f Expand Appearance: shadow and glow images keep their blend mode
The image made of an object's shadows and outer glows took the default
blend mode, so a Multiply shadow (Drop Shadow's default) over colored art
became a plain shadow painted over it. When the shadows and glows all use
one blend mode, the image now paints with it, for the object's own effects
and for nested symbol instances alike.
2026-11-15 09:18:57 -08:00
dotCooCoo b6463e53cc Paragraph: threaded Kurikaeshi Moji Shori leads come from one pass over the frames
A thread of frames that hold only repeat marks or soft returns made each
frame look back through every frame before it, so opening or flowing such
a story took quadratic time, with the setting off as well. The leads are
now carried forward in one pass.
2026-11-15 09:13:16 -08:00
dotCooCoo 1e32738b8f MCP: confined SVG output checks the linked images the file draws
The read-root check for SVG output now looks at the same art the
writer draws:

- A placed document's art is checked, with the pixels its file holds.
  A placed native file that links an image outside the read roots was
  written with that path under Images: Link.
- Hidden objects inside symbols, patterns and graph designs are left
  out unless hidden layers are kept, as they are in the layers.
- With profile tiny12 the file leaves out opacity masks, and their
  images are not checked.
- An object whose effect SVG has no filter for is checked as the image
  the file draws of it, for file output and clipboard.exportSvg alike.

The last three refused files and clipboard SVG that name no file
outside the roots.
2026-11-15 09:13:08 -08:00
dotCooCoo 19c7b2bd46 Merge main into fix/js-interp-errors-translated 2026-11-15 09:08:56 -08:00
dotCooCoo 79c696d879 Merge main into feat/3d-soft-shadows 2026-11-15 09:08:53 -08:00
dotCooCoo be4dab1e8c Merge main into feat/recolor-add-remove-color-tools 2026-11-15 09:08:28 -08:00
dotCooCoo 3e4b8d81ff Merge main into fix/an-image-whose-recode-fails-is-written-without 2026-11-15 09:08:24 -08:00
dotCooCoo fd468f0042 Merge main into fix/custom-toolbar-errors-translated 2026-11-15 09:08:24 -08:00
dotCooCoo 59889cd2af Merge main into feat/properties-graph-section 2026-11-15 09:08:13 -08:00
dotCooCoo 73502e83ac SVG: hidden pieces of a cut image put no shared image in the defs
The pieces a Warp effect cuts an image into share one <image> in the
defs. The writer counted every piece, hidden ones included, so pieces
the file leaves out (hidden, or in a hidden clip group) still put an
<image> into the defs, with the linked file's path under Images: Link.
A confined caller's read-root check looks only at the art the file
draws and did not refuse it.

Image sharing and the colorized-image counts now walk only the art the
writer draws: hidden layers and objects only with hidden layers kept,
and never a template layer's art.
2026-11-15 09:06:13 -08:00
FredApps 31658546a8 fix(codecs): build the cutover against craft-libs d6cd7836d
- Test files whose image→craft-image-codecs rewrites didn't compile against
  main's newer tests go back to main's versions (engine fileio/tests.rs,
  tests_tiffbmp.rs, tests/menucmds.rs, eps tests.rs); they still use the image
  crate, which keeps its format features.
- craft_jxl::encode, craft_image_codecs::encode and Image::icc at d6cd7836d.
- jp2read and pdf export pass DecodeOptions, not Limits.
- EPS DCTDecode: grey JPEGs no longer use the image after moving it, and keep
  main's one-channel output.
- svg keeps its direct usvg dependency for main's image href code; pdf keeps
  jpeg-encoder for CMYK JPEGs.
- clippy -D warnings and rustfmt clean.
2026-11-15 18:05:45 +01:00
BFlat 5bd8acfce9 Merge pull request #7762 from dotCooCoo/feat/3d-classic-track-cube
3D (Classic): the track cube turns the object on the Rotation tab
2026-11-16 00:04:07 +07:00
dotCooCoo 3dad1013a4 Image Trace: Noise leaves cut-edge blends out of a speck's color
When Noise picks the nearest color for a speck, the speck's average now
leaves out the semi-transparent pixels along a cut-out image's edge that
are the color beside them blended with the transparent background.
settle_cut_edges returns which pixels those are. A speck made only of
them merges by border. In Grayscale the speck's gray is read with luma,
the gray Grayscale traces with, and the test probe shift_probe denoises
as a trace does.

The docs now say the rule applies in Color and Grayscale (in Black and
White a region has only one neighboring color, so Black and White Logo
changes only by its Noise value), name `ea3f81d9c3` as the base of the
measurements, and say that the gradient-border test sets Noise 15
because at Noise 8 its borders stray 0.92 px against a 0.9 px limit.
2026-11-15 09:01:14 -08:00
dotCooCoo 65b2129138 Live Paint: livePaint.strokeEdge refuses a through id that is not one of the group's edges
`through` now takes only the ids of the group's edges, each once: a face's
id, an unknown id, another group's edge or an edge given twice is an error
and changes nothing. A hidden edge in it is still skipped by the join. For
a double-click the Bucket passes only edges of the group, each once, so an
earlier click that filled a face whose fill was the edge's stroke paint
(Paint Fills and Paint Strokes both on) no longer sends that face.

The Bucket finds the faces a fill drag crossed among those whose bounds
meet the drag's bounds only.

A canvas test covers the middle-button press and the Space-held press
between two Bucket clicks. The progress-doc line lists the new tests, and
docs/mcp.md says which edges the tool passes in `through`.

Follows #7875.
2026-11-15 09:00:15 -08:00
BFlat a391dedfe5 Merge pull request #7875 from dotCooCoo/fix/live-paint-bucket-click-history
Live Paint: Bucket double-click and triple-click match the paint from before a drag, a view-tool press or a joined edge
2026-11-15 23:56:28 +07:00
BFlat cf34cf8ed0 Merge pull request #7829 from dotCooCoo/fix/shadow-validation-builds-its-shadow-geometry
3D: shadow validation casts from the solids it checks
2026-11-15 23:56:19 +07:00
dotCooCoo be2f993c4b PDF export: Preserve Numbers keeps a gray image's profile when RGB is tagged as sRGB
With Preserve Numbers, a non-sRGB RGB destination and RGB colors
ICC-tagged as sRGB (the `all` profiles setting, PDF/A-2b, PDF/X-3 and
PDF/X-4), a gray image that carries an ICC profile was converted to sRGB
grays and lost its profile. It now keeps its profile there, as in the
other destinations other than sRGB.
2026-11-15 08:56:03 -08:00
dotCooCoo 24867f7827 Paste: legend labels in a pie's wedges follow wedges that take the document's swatch
When a pasted pie's wedge links a global swatch that the document gives
another color (swatchConflict "merge", the default), the wedge takes the
document's color. Its legend label kept the contrast it had in the copy,
so a wedge that turned dark could show a black label, and one that
turned light a white label, until the pie was drawn again.

Pasting now reads which wedges show a dark fill before the copy is
linked to the document's swatches. A pie whose wedges change darkness
gets the legend label contrast a redraw sets: white on a dark wedge,
black on a light one. Pies whose legend labels have a fill of their own
keep it. This applies to every paste command, Paste without Formatting
included, and to pies inside opacity masks.
2026-11-15 08:53:31 -08:00
dotCooCoo 303d0c0a05 PSD: a version 6 slice record whose ID is 16 is read as a slice
A version 6 slices resource may follow a record with a descriptor of
version 16, and the reader took any record that starts with the value
16 for one. A record whose ID is 16 then had its first bytes read as a
descriptor, and the records after it were misread or left out. When the
records read one after another, followed by nothing or by one
descriptor (the layout ag-psd writes), only the last record is checked
for a descriptor. Files that follow each record with a descriptor are
read as before.
2026-11-15 08:45:10 -08:00
dotCooCoo dc8054fb39 PSD: a slices resource cut short warns that the slices were left out
When image resource 1050 declared more bytes than the image resources
hold, the lookup stopped as if the file stored no slices, and Open and
Place brought the artwork in without the warning that the slices were
left out. The new psdread::resource tells a cut-short resource 1050
apart from one that is absent or that follows another block cut short,
and the slices reader passes that error on, so the warning names it.
Other resource readers keep their behavior.
2026-11-15 08:45:10 -08:00
dotCooCoo cdd4078907 Paste: Paste without Formatting sets pie legend label contrast from merged swatch colors
Paste without Formatting sets each pie legend label in a wedge to white or
black from the wedge colors before it pastes, but a wedge linked to a global
swatch that the document gives another color takes the document's color
only during the paste (swatchConflict "merge", the default). A light wedge
merged into a dark swatch kept a black label, and a later redraw turned it
white.

The copied colors linked to merged swatches now take the document's color
before the labels are set, so the labels match what a redraw sets. Graphic
style links are left for the paste to relink.
2026-11-15 08:42:15 -08:00
dotCooCoo f1f4d629e8 Panels: the double triangle on a panel's tab strip cycles its display sizes
A double triangle at the right end of the tab strip of Align, Attributes,
Character, Color, Flattener Preview, Gradient, Info, Paragraph, Stroke,
Transform and Transparency steps the active panel through its display
sizes. The sizes are the states the panel menu's Show/Hide Options items
set (Transparency: thumbnails and options, thumbnails alone, neither),
largest first, and the smallest goes back to the largest.

window.panel.cycleOptions {panel} does the same and returns
{panel, size, sizes}. An unknown panel or a panel without sizes is an
error and changes nothing.

Docs: docs/mcp.md, docs/control-protocol.md, docs/ui-parity.md.
2026-11-15 08:39:43 -08:00
dotCooCoo e02faf2293 Merge main into fix/trace-noise-nearest-color 2026-11-15 08:38:54 -08:00
dotCooCoo f0ba18f793 Place: the place cursor keeps an encrypted PDF and asks for its password
file.place.queue read each file without a password, so an encrypted
PDF, .ai or .ait file was skipped and never reached the cursor. It now
stays in the cursor at 612 x 792 pt, VectorCraft's own size, with
needsPassword: true and no thumbnail. A click or drag on it in the app
asks for its password, with the Place dialog's Show Import Options on
or off; headless, a click on it places nothing. A file that fails for
a bad option or for another reason is still refused or skipped.

File > Place of an encrypted PDF given a page and no password, with
Show Import Options on, now asks for the password too, as it does with
the option off; it used to fail for want of the password.
2026-11-15 08:36:54 -08:00
dotCooCoo 0cf2aa3f79 Effects: removing or duplicating several aligned effects of a design's art refuses one that no object has
With the art of a graph design in a series given first and aligned: true,
effect.remove and effect.duplicate with `indices` skipped an effect of the
art that no other object has, and edited the others. With art [shadow,
roughen], a mark [shadow] and indices [0, 1], effect.remove took the
mark's shadow off and succeeded. Such an edit is now an error that leaves
the document and its undo history as they are, as the same index given
alone already was. An object that lacks one of the effects while another
object has it is still left out for that effect.
2026-11-15 08:36:31 -08:00
dotCooCoo 94c815d971 Paint: invert and complement of design art alone still reject a bad target
paint.invert and paint.complement given only the art of a graph design,
with no item, returned success for a target other than "object" or
"contents", because the topmost-fill path read the target only after the
early return for design art. The target is now read before that return.
2026-11-15 08:36:20 -08:00