Commit Graph
15355 Commits
Author SHA1 Message Date
FredApps 46ddf177e3 fix(codecs): keep the remaining decodes within the project's limits
A stored texture longer than the codec's default 2^18-pixel side still
reads back, and a gray PNG is not expanded to RGBA just to get its
levels. The AI writer and the EPS scene refuse an oversized image from
its header, then decode within MAX_IMAGE_PIXELS, keeping the pixels at
their stored depth. Flatten's see-through check uses ImageBlob's
allowance, and links.unembed decodes within MAX_RASTER_ALLOC.
2026-11-16 07:50:43 +01:00
FredApps 3e72836b00 Merge remote-tracking branch 'origin/main' into feat/cutover-remaining-codecs 2026-11-16 07:08:15 +01:00
FredApps 3e772ec2c3 doc: ImageBlob pixels and link previews decode through craft-image-codecs
Embedded and linked images read their pixels with decode_within: the
size from the header against the allowance first (as samples and as
RGBA, #1717), then the pixels as stored. map_rgb, sampling, coverage,
link previews and checked_with_pixels all go through it.

decoded_pixels_are_those_the_image_crate_read compares PNG, GIF, WebP,
TIFF and BMP at each depth the image crate writes with its pixels, and
JPEG within two steps, including the pixels checked_with_pixels hands
on. The 11,586² allowance test is a compact PNG; craft-image-codecs
refuses a GIF whose unbacked logical screen is past 256 MiB.
2026-11-16 07:08:12 +01:00
BFlat ed6f22a84c Merge pull request #7848 from dotCooCoo/fix/french-rows-use-a-no-break-space-before-as-fr
i18n: French rows use a no-break space before : ; ? ! and inside « »
2026-11-16 12:55:51 +07:00
BFlat 7180d01947 Merge pull request #7600 from dotCooCoo/fix/confined-exports-script-paths
MCP: confined exports refuse native files that name a linked JavaScript file outside the read roots
2026-11-16 12:55:43 +07:00
BFlat 4963507184 Merge pull request #7768 from dotCooCoo/feat/recolor-add-remove-color-tools
Recolor Artwork: the Edit tab's Add Color and Remove Color tools add and remove colors
2026-11-16 12:55:34 +07:00
BFlat 2f80541c48 Merge pull request #8000 from dotCooCoo/fix/transform-copies-raster-effects-rows
Effects: each copy of a fill's or stroke's Transform effect carries the raster effect listed before it
2026-11-16 12:55:24 +07:00
BFlat 3e3aa1e458 Merge pull request #7761 from dotCooCoo/feat/3d-soft-shadows
3D and Materials: the shadow is blurred by the first light's Softness
2026-11-16 12:55:16 +07:00
BFlat 9ed7881caa Merge pull request #8027 from dotCooCoo/feat/polygonal-lasso
Add Polygonal Lasso as an optional tool
2026-11-16 12:55:07 +07:00
BFlat 2babc877e7 Merge pull request #7375 from dotCooCoo/fix/graph-axis-paint-kept
Graphs: axis lines, tick marks and radar rings keep the paint set on them
2026-11-16 12:54:58 +07:00
BFlat 5d2a54b70f Merge pull request #8028 from dotCooCoo/fix/ai-save-unpainted-clip-object-dictionary
.ai save: a cut clipping object keeps its name, opacity mask and visibility variables
2026-11-16 12:54:49 +07:00
FredApps bfe5c253f4 Merge remote-tracking branch 'origin/main' into feat/cutover-remaining-codecs
# Conflicts:
#	crates/engine/src/cmd/menucmds.rs
2026-11-16 06:35:17 +01:00
FredApps 48d4afe4ec svg: SVG import decodes its images through craft-image-codecs
The decoding File › Open, Place and the renderer share moves to
vectorcraft-doc (decode.rs: decode_image, decoded_layout), and SVG
import's images read through it: the size from the header against the
allowance first, then the pixels as stored with the profile the file
embeds (a TIFF's still read by the TIFF reader).

decoded_pixels_are_those_the_image_crate_read compares PNG, GIF, WebP,
TIFF and BMP at each depth the image crate writes with its pixels, and
JPEG within two steps.
2026-11-16 06:06:34 +01:00
FredApps 3590f96ba9 engine: File › Open and Place read rasters through craft-image-codecs
The raster path tells formats with craft-image-codecs' detect, reads the
size from the header (vectorcraft-doc's header_size, the renderer's
decoded_layout, a Targa's own header) and decodes with the renderer's
decode_image, the pixels as stored, with the profile the file embeds.
The size notes Open, Place and the Links panel give, and Glass's Load
Texture, read the same way.

opened_rasters_are_the_pixels_the_image_crate_read compares BMP, TGA and
TIFF at 8 and 16 bits, gray and color, with and without alpha, with the
image crate's pixels, and PNG, JPEG, GIF and WebP stored as they are.
2026-11-16 05:45:22 +01:00
BFlat a9dc138ecd Merge pull request #7346 from dotCooCoo/fix/erase-region-params-refused
Eraser: path.eraseRegion refuses an angle or roundness outside its range
2026-11-16 11:38:26 +07:00
BFlat c1a2186976 Merge pull request #7966 from dotCooCoo/feat/graph-filled-line-width
Graph Type: Draw Filled Lines takes a Line Width
2026-11-16 11:38:16 +07:00
BFlat 8cf9cb9dca Merge pull request #8007 from dotCooCoo/feat/line-segment-common-tangent
Line Segment: a line from one curve to another snaps to their common tangent
2026-11-16 11:38:07 +07:00
BFlat 2c4fcea4e3 Merge pull request #7995 from dotCooCoo/feat/psd-export-writes-slices
PSD export: slices are written, so an opened PSD's slices survive an export
2026-11-16 11:37:59 +07:00
BFlat a358793ef1 Merge pull request #8023 from ruchirguitar/feat/1636-key-anchor-align
feat(tools): key anchor point alignment (#1636)
2026-11-16 11:37:51 +07:00
dotCooCoo 202f9e7bf8 Effects: document that type's own copying fill carries its raster effects per copy
Type is drawn as its outlines, so each copy that a fill's or stroke's own
Transform effect makes of type carries the raster effects listed before
it, as a path's copies do. A test checks this for the fill's first
Transform effect and for one listed after a Transform effect with
Transform Patterns on, drawn, expanded and baked.

The progress doc now lists type as covered, states when a later copying
Transform effect does not carry the raster effects before it, drops the
fill or stroke case from the older entry's limitation, and puts the
Rasterize entry back on its own line.
2026-11-15 20:28:28 -08:00
FredApps 39e36e342f Pin craft-libs to a499742a (craft-libs#1779 and #1782)
craft-libs main with the JPEG inks reader vectorcraft-doc's CMYK JPEGs use
(#1779) and the craft-jpeg fallback for frames zune-jpeg panics on
(#1782). Cargo.lock regenerated.
2026-11-16 05:12:41 +01:00
dotCooCoo ea42075eb8 Merge main into feat/3d-soft-shadows 2026-11-15 20:12:19 -08:00
dotCooCoo 8313d18426 i18n: French rows from main follow the catalog's spacing and apostrophe 2026-11-15 20:11:46 -08:00
dotCooCoo d40a58b6ca Polygonal Lasso: a dropped press after Backspace keeps earlier vertices
Backspace during a press removed the vertex the press had set but left the
press marked as owning a vertex, so a dropped press then removed the vertex
before it. Removing a vertex now clears that mark.
2026-11-15 20:00:55 -08:00
dotCooCoo c71a1eb540 Merge main into fix/graph-axis-paint-kept
Main now stores a line's or label's added rows by kind (Keep::Kinds),
rewritten paint and row attributes (capture_line_row_writes) and no-op
reorders the way this branch did, so its versions are kept. The branch
adds on top: a stroke painted on a line after its kind lost its stroke
keeps that line's weight, a pasted graph's axis and ring line rows follow
a renamed swatch, and the paint.swap params text says only what the swap
changes is stored.
2026-11-15 19:56:47 -08:00
dotCooCoo 257ad5a6ce Merge main into fix/ai-save-unpainted-clip-object-dictionary 2026-11-15 19:55:57 -08:00
dotCooCoo e7f0cc66b6 Merge main into fix/french-rows-use-a-no-break-space-before-as-fr 2026-11-15 19:54:17 -08:00
dotCooCoo 0a96ec3764 i18n: French Tangent Circle rows use a no-break space before : 2026-11-15 19:53:57 -08:00
FredApps 9047af65f8 render: decode images through craft-image-codecs; keep main's JPEG writer
The renderer's image paint reads sizes from the header (vectorcraft-doc's
header_size, craft-image-codecs' inspect_raster) and decodes through
craft-image-codecs, the pixels as stored, for the formats it drew
before (PNG, JPEG, GIF, WebP, TIFF and BMP). A test compares the pixels
with the image crate's for each PNG color type and depth, palettes and
1-bit gray, GIF, WebP, TIFF, BMP and JPEG.

The JPEG writer goes back to main's jpeg-encoder one: the craft-image-codecs
version wrote a CMYK JPEG's resolution in a little-endian EXIF of another
layout, failing the tests of main's #3084 fix. TIFF LZW strips stay on
craft-stream-codecs, checked against weezl (now a dev-dependency): read
back the same and never larger.
2026-11-16 04:48:31 +01:00
dotCooCoo 1e5d3d5240 .ai save: a cut clipping object keeps its name, opacity mask and variables
A clipping object written as art cut to it (a group, an image, a symbol
instance, a live object, type, or a path inside art already cut to
another clipping object) lost its name, opacity mask and variable
bindings in the editing data: no written object carried its dictionary,
and a painted one put its name on each of its fill and stroke objects.

The unpainted path that carried its text wrap options now carries its
whole dictionary, in the form the .ai reader reads (art_dictionary in
crates/eps/src/import/ai/read/document.rs). Its fills and strokes keep
only the opacity mask they are drawn through. The path is admitted by
the object count, so at the object limit its dictionary is never left
on the object before it, and a path whose dictionary comes out empty is
taken out again.
2026-11-15 19:48:00 -08:00
dotCooCoo df446a98e8 Merge main into fix/transform-copies-raster-effects-rows 2026-11-15 19:38:47 -08:00
dotCooCoo bcf7f9f926 Recolor Artwork: a color added on the Edit tab is not an empty row
Since main leaves rows with no current colors out of the Edit tab, Save
All Colors and the Color Theme Picker, a color the Add Color tool added
(also a row with no current colors) lost its bar and its place in the
color group. Such a row, marked `added`, is no longer counted as an
empty New Row row, so it stays on the Edit tab and in the group.
2026-11-15 19:38:41 -08:00
BFlat 26c137334b Merge pull request #7116 from dotCooCoo/fix/i18n-justification-order-message
i18n: the justification order error is translated in every complete catalog
2026-11-16 10:36:33 +07:00
BFlat 3eb964bc1c Merge pull request #7948 from dotCooCoo/feat/crop-image-cropping-options
Crop Image: the Control bar sets the cropped image's resolution, reference point and linked size
2026-11-16 10:36:24 +07:00
BFlat b3c94280d4 Merge pull request #7974 from dotCooCoo/feat/composite-font-sample
Type: Composite Fonts' Show Sample draws the font picked with its metric lines
2026-11-16 10:36:14 +07:00
BFlat f9efd3ca0f Merge pull request #7983 from dotCooCoo/feat/font-menu-show-similar
Type: the font menu's Show Similar Fonts lists the families that look like a family first
2026-11-16 10:36:06 +07:00
BFlat bdf33b1114 Merge pull request #7839 from dotCooCoo/fix/expand-appearance-nested-instance-effects
Expand Appearance: raster effects on a symbol instance's fill or stroke expand to art, nested instances included
2026-11-16 10:35:50 +07:00
BFlat 89c3a9c4ec Merge pull request #7946 from dotCooCoo/feat/revolve-cut-caps
Revolve: a partial sweep with Cap closes its cut sides
2026-11-16 10:35:40 +07:00
BFlat 59771c6566 Merge pull request #8002 from dotCooCoo/fix/tool-overlays-long-drag-copies
Tool overlays: long drags keep their line in shared pieces instead of rebuilding it every frame
2026-11-16 10:35:26 +07:00
BFlat 6d6dd28fad Merge pull request #8018 from dotCooCoo/feat/ellipse-tangent-radius
Ellipse: a circle drawn from its center snaps its radius to touch a nearby path
2026-11-16 10:35:17 +07:00
BFlat 59a43d3268 Merge pull request #7969 from dotCooCoo/fix/confined-export-screens-folder-checked
SVG: a confined Preserve Editing attachment leaves out an Export for Screens folder outside the read roots
2026-11-16 10:35:09 +07:00
BFlat 74af4fdc5c Merge pull request #8008 from dotCooCoo/fix/spelling-continues-past-cap
Check Spelling: Ignore and Change All reach every word past the check limit
2026-11-16 10:34:56 +07:00
BFlat f9aa592ffd Merge pull request #8011 from dotCooCoo/fix/symbol-pixel-grid-followups
Symbols: Align to Pixel Grid moves a snapped instance's linked mask and leaves editing layers to their symbol
2026-11-16 10:34:48 +07:00
BFlat 7058bdff88 Merge pull request #8012 from makesomethingshit/fix/8005-color-spectrum-height
Fix #8005: Grow the spectrum with the Color panel
2026-11-16 10:34:39 +07:00
dotCooCoo 763be536f5 Add Polygonal Lasso as an optional tool
Polygonal Lasso selects anchor points inside a loop of straight
segments. Each click sets a vertex, and a segment from the last vertex
follows the pointer. A double-click, Enter or a click on the first
vertex closes the loop. Backspace or Delete removes the last vertex,
Escape drops the loop, and Shift keeps the next segment to 45-degree
steps from the Constrain Angle. Shift held at the first click adds to
the selection and Alt subtracts from it, as with the Lasso. A loop of
fewer than three vertices selects nothing and records no undo step.

The tool is listed under its own heading in All Tools and under
Object › Plug-ins › Polygonal Lasso, with no default toolbar slot or
shortcut. On close it uses the Lasso's test for which anchor and mesh
points are inside (even-odd), now shared as lasso_select; the Lasso
itself behaves as before.

Touch mode now counts Polygonal Lasso and Enclosing Lasso as selection
tools, as it counts the Lasso, so the two-finger tap switches from them
to the drawing tool chosen last.

Fixes #4736
2026-11-15 19:17:09 -08:00
dotCooCoo 19122ecc34 Merge main into fix/french-rows-use-a-no-break-space-before-as-fr 2026-11-15 18:45:01 -08:00
dotCooCoo b697ecbf07 Merge main into fix/erase-region-params-refused 2026-11-15 18:40:58 -08:00
dotCooCoo 7ff63a6cd7 Merge main into feat/line-segment-common-tangent 2026-11-15 18:40:40 -08:00
dotCooCoo 69d3402f2a Merge main into feat/psd-export-writes-slices 2026-11-15 18:39:24 -08:00
dotCooCoo bf19766447 Merge main into fix/confined-exports-script-paths 2026-11-15 18:36:36 -08:00