Commit Graph
17545 Commits
Author SHA1 Message Date
dotCooCoo 322ce1a015 Smart Guides: tangent and perpendicular snaps find a touch point that falls exactly on a sample
The touch points of a drawn line were found by sampling each target
segment in 24 steps and bisecting where the sign changed. When the line
was exactly square or tangent at one of the samples, the value there was
exactly 0, neither interval changed sign, and no snap was offered: for
example the foot of a perpendicular from a point above a segment's
middle, or a circle's tangent point when it fell exactly on a sample.

A sample whose value is exactly 0 now counts as a touch point when its
neighbors are not 0, so a straight curve seen from its own line still
gives none. The ends of the segment, a cusp and a start point on the
curve itself are left out, as between samples.

Part of #7846
2026-11-15 09:41:17 -08: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
dotCooCoo aca3316954 Expand Appearance: note the image limits in the progress line
The progress line said nested symbol instances leave nothing live after
Expand Appearance. It now names the 1,024-image and 256-megapixel
limits, the objects they leave with their raster effects and the
`rasterLeft` warning, and the test that covers them.
2026-11-15 09:38:04 -08:00
dotCooCoo 2ae0db53c0 i18n: Georgian and Russian keep one row of the connect end message
The ka and ru catalogs already had a row for `connect end must be
"start" or "end"`, and this branch added a second one, which fails
bundled_catalogs_are_consistent. The added rows are removed and the
existing translations stay.
2026-11-15 09:35:53 -08:00
dotCooCoo 4b3dd42bc5 i18n: drop the ka and ru rows the joined messages replaced
The Georgian and Russian catalogs from main still carried rows for the
old `{within}{key}`, `{within}settings.{format}` and `{lo}–{hi}{unit}`
messages, which no message matches since their values are joined first.
Both catalogs already have rows for the joined messages.
2026-11-15 09:35:37 -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
Dylan M. Taylor d02b41414a Use shared ligature caret mapping 2026-11-15 17:25:58 +00:00
dotCooCoo 4518932381 Merge main into fix/blob-params-rejected 2026-11-15 09:24:54 -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 996423d968 Merge main into fix/i18n-adjacent-placeholders 2026-11-15 09:24:20 -08:00
dotCooCoo 9389acc81e i18n: drop Spanish catalog rows main already has
Main added Spanish rows for ten of the dialog-answer messages this branch also translates. The branch's copies are removed so each message has one row and bundled_catalogs_are_consistent passes; main's translations are identical.
2026-11-15 09:23:53 -08:00
dotCooCoo fb287514d5 i18n: drop catalog rows main already has
Main's Georgian catalog has a row for `index` must be a whole number
and one for the knockout groups warning, so the copies this branch
added are removed. Main's knockout row had two spaces after the colon,
which neither the program's text nor the message scan matches; it now
has one. The Georgian counts in localization-parity.md are recounted.
2026-11-15 09:23:45 -08:00
dotCooCoo eab8931dde i18n: drop catalog rows main already has
Main's Georgian catalog already carries the action step error row, so the copy this branch added is removed.
2026-11-15 09:23:36 -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
Dylan M. Taylor 3d0b4c9a26 Use shared measured line break selection 2026-11-15 17:22:25 +00:00
dotCooCoo dae1bf749b i18n: drop catalog rows main already has
Merging main brought in Georgian and Russian rows for the SVG filter messages that this branch also added, so each catalog held them twice and bundled_catalogs_are_consistent failed. The branch's copies are removed and main's rows stay.
2026-11-15 09:21:48 -08:00
dotCooCoo cd30b7b31e Merge main into fix/expand-appearance-nested-instance-effects 2026-11-15 09:20:32 -08:00
Dylan M. Taylor 3002404467 Use shared visual cluster ordering 2026-11-15 17:19:37 +00:00
dotCooCoo 51803c222d Docs: moving a label can scale the plot of a graph saved without placedArt
docs/mcp.md said that moving a label on its own never moves or scales a
graph's plot. A graph saved without `placedArt`, or with one that has no
width or height, is measured on `placed`, the bounds of all of its art
including the labels. Moving an outermost label of such a graph on its
own changes those bounds, and the next redraw moves and scales the plot.
The paragraph now says so.
2026-11-15 09:19:33 -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 2f54dac830 Merge main into fix/ka-missing-message-rows 2026-11-15 09:18:42 -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 56625d5eab Merge main into feat/3d-graphics-extrude-side 2026-11-15 09:12:02 -08:00
dotCooCoo fdeb3a6ab3 Merge main into fix/tool-set-option-errors
# Conflicts:
#	crates/ui-egui/src/toolbar.rs
2026-11-15 09:11:04 -08:00
dotCooCoo 61ede55a08 Merge main into fix/shortcut-row-names-translated 2026-11-15 09:09:27 -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 1ec8a9ba8f Merge main into fix/actions-error-step-number 2026-11-15 09:08:40 -08:00
dotCooCoo a9a2d499f5 Merge main into fix/es-message-rows 2026-11-15 09:08:29 -08:00
dotCooCoo be4dab1e8c Merge main into feat/recolor-add-remove-color-tools 2026-11-15 09:08:28 -08:00
dotCooCoo 91f3f812c9 Merge main into feat/object-mosaic-dialog 2026-11-15 09:08:24 -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 5437bdeacd Merge main into feat/brush-options-of-selected-object 2026-11-15 09:07:51 -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