Commit Graph
5116 Commits
Author SHA1 Message Date
dotCooCoo 2a973becbc Symbols: Align to Pixel Grid leaves symbol editing layers to their symbol
- An instance of a pixel-aligned symbol on another symbol's editing layer is part of
  that symbol's art, so it is no longer snapped and written into that art.
- Turning Align to Pixel Grid on for the symbol being edited now writes its art back
  and shows it snapped on the editing layer at once, instead of after the next edit.
2026-11-15 17:17:28 -08:00
dotCooCoo fa42ea6dc8 Symbols: snap a pixel-aligned symbol's instances again only when its editing mode ends
While a pixel-aligned symbol was open in symbol editing mode, every edit snapped its
art and walked the whole document for its instances, even when the art did not change.
That pass now runs when editing mode for the symbol ends; edits that change the art
still snap it and its instances.
2026-11-15 17:17:28 -08:00
dotCooCoo 3d0900bd77 Symbols: a symbol instance snapped to the pixel grid takes its linked mask along
Snapping an instance of a pixel-aligned symbol to whole points set its transform
directly, so the art of a linked opacity mask stayed at the old fractional position
and shifted against the artwork. The instance now moves as any move moves it, and
the art of an unlinked mask stays where it is.
2026-11-15 17:17:28 -08:00
BFlat abb4af9b87 Merge pull request #7965 from dotCooCoo/fix/export-3d-object-skips-flat-art
3D and Materials: Export 3D Object leaves objects without a 3D effect out in the command
2026-11-16 08:13:27 +07:00
BFlat 2f255f5f99 Merge pull request #7871 from dotCooCoo/feat/3d-classic-black-overprint
3D (Classic): the Black Overprint shading color shades with overprinting black over the fill
2026-11-16 08:13:18 +07:00
BFlat 98a1d0839d Merge pull request #7997 from dotCooCoo/fix/revolve-colored-light-faces-sealed
3D: Revolve's colored-light faces lie over an underlay, so no alpha holes show at 1:1
2026-11-16 08:13:02 +07:00
BFlat 5cb5a1895c Merge pull request #7869 from dotCooCoo/feat/kurikaeshi-moji-shori
Paragraph: Kurikaeshi Moji Shori draws a repeat mark that starts a line as the character it repeats
2026-11-16 08:12:54 +07:00
BFlat 1ac6d68a7e Merge pull request #7968 from dotCooCoo/fix/graph-stacked-column-legend-stroke
Graphs: legend swatches have their series' stroke, so stacked column and area graphs save to .ai as graphs
2026-11-16 08:11:37 +07:00
BFlat d9808a393b Merge pull request #7979 from dotCooCoo/fix/flatten-kept-roots-walked-once
Flatten: look at each node of art without transparency once
2026-11-16 08:11:11 +07:00
BFlat f15f711280 Merge pull request #7870 from dotCooCoo/fix/pdf-preserve-numbers-tagged-images
PDF export: Preserve Numbers converts tagged images from their profile
2026-11-16 08:11:02 +07:00
BFlat d150b244d4 Merge pull request #7984 from dotCooCoo/fix/import-fuzz-sliced-psd-samples
Tests: fuzz PSD slices in versions 6, 7 and 8
2026-11-16 08:10:53 +07:00
BFlat 796e37bdb1 Merge pull request #7987 from dotCooCoo/fix/clipboard-flavours-confined-svg
Clipboard: clipboard.flavours leaves out an SVG withheld from a confined caller
2026-11-16 08:10:45 +07:00
dotCooCoo 65feca6ba8 Plug-ins: text.similarFonts is not callable from a plug-in
text.similarFonts lists every family text.fontList lists, the fonts
installed on the system included, so it joins the commands a plug-in may
not call, as text.fontList is. every_command_is_reviewed failed because
the command was in neither reviewed list.
2026-11-15 17:07:34 -08:00
FredApps d2b8ebfd95 Merge origin/main into feat/cutover-remaining-codecs 2026-11-16 01:57:11 +01:00
dotCooCoo 41651e1f72 Crop Image: refuse a resample too large for the raster allowance
object.cropImage with ppi now checks that the source, its 16-bit
weighted copy, the resampler's intermediate rows and the results fit in
the raster allowance (2 GB, 512 MB in the web app) before it resamples,
and refuses with "an image of {w} × {h} pixels is too large to resample"
otherwise. A crop that is drawn first frees the drawing's PNG before its
pixels are resampled.
2026-11-15 16:57:10 -08:00
FredApps 273dd79442 refactor(doc): read Group 3 TIFF rows through craft-stream-codecs
group3_tiff_rgba decodes each strip or tile with
craft_stream_codecs::decode_ccitt_raw instead of hayro-ccitt; the error
messages stay as they were. vectorcraft-engine's group3_reference test
keeps the hayro-ccitt reader as the reference: over 190 Group 3 TIFFs and
5,500 cut or edited copies the pixels and refusals match, except that a
strip or tile wider than MAX_CCITT_COLUMNS (2^20) is refused as an
overflow where hayro-ccitt ran out of data. Needs craft-libs#1772.
2026-11-16 01:56:14 +01:00
dotCooCoo b1b5e86e57 Image Trace: Outline view leaves out renamed seam fills
Outline views left out an Abutting trace's seam fills only while their
clip group kept the name "Seam Fills". Renamed, the group drew its
clipping box and, on a stretched image, the outlines of its filled
seam bands. The group is now also left out when it is still the lowest
traced shape, where the trace puts it.

The outline-view test samples inside the seam band beside the shared
edge on the stretched image, and checks that renaming the group leaves
the view unchanged.
2026-11-15 16:56:01 -08:00
dotCooCoo 3d5a8afdbb Merge main into feat/font-menu-show-similar 2026-11-15 16:48:53 -08:00
dotCooCoo 4ad75291cb Path Precision Tools: Tangent Circle draws the circles that touch two or three shapes
Object › Plug-ins › Path Precision Tools › Tangent Circle…
(`addon.pathtools.tangentCircle`) draws the circles that touch two
selected paths or compound paths at a set radius, or that touch three of
them. A circle touches a shape when it meets the outline without
crossing it, with the whole outline outside the circle or inside it: at
a smooth point it is tangent there, and at a corner or an open end it
passes through that point. Circles, ellipses at any angle and other
closed or open paths all work; the members of a compound path count as
one outline.

When every shape is a circle, the circles are found in closed form (up
to eight for three circles, the problem of Apollonius) and then moved
onto the drawn Bézier circles, which differ from true circles by up to
0.0273% of the radius. Other shapes are searched on a grid, and the
centers left are refined with Newton's method on the curves. With three
shapes, circles up to 64 times the diagonal of the box around the
shapes' anchors and handles are found.

The circles are listed by radius, then top to bottom, then left to
right. The dialog takes the radius (with two shapes; 36 pt to start)
and previews every circle found or one picked by number; OK draws them
with the current paint as one undo step, selected. No circle, more than
64 circles (shapes touched along a whole curve, such as two concentric
circles), shapes at one point or too small for the radius, more than
2000 segments and a search past its limits are errors that leave the
document unchanged.

The Tangent Circle and Circle: rows are in every catalog, and the
command's messages in the catalogs that translate messages.

Docs: docs/mcp.md (Path Precision Tools add-on),
docs/target-app-parity.md, docs/ui-parity.md and ROADMAP.
2026-11-15 16:37:17 -08:00
dotCooCoo 669d98fab1 Tests: Show Similar Fonts' limit check tolerates fonts that other tests add
Other tests add and remove composite fonts in the shared font database,
which can change the list between the two text.similarFonts calls. The
limited answer is compared whole with the first families of the full one
when FontDb::generation is the same before and after both calls, and by
the installed families when the fonts changed during each of 20 tries.
2026-11-15 16:36:58 -08:00
dotCooCoo ca822f41f7 Check Spelling: Ignore and Change All reach every word past the check limit
text.spelling.check listed at most 10,000 words and always started each
type object at its first byte, so the dialog could not go on inside an
object. With 10,001 unknown words in one object, Ignore ended the check
after the first 10,000. Change All stopped when a round changed nothing,
so a target after 10,000 other unknown words was never reached. Follow-up
to #7744; part of #4936.

- text.spelling.check takes from {id, byte}, which goes on from that
  byte of that type object and then the objects after it, and max
  (1 to 10,000). The paragraphs before the one that holds from are not
  checked again.
- The dialog keeps the words a check lists after the one shown, and
  Ignore and Ignore All take the next word from them. A new check goes
  on from the last word listed once they run out. Every word is reached,
  in a selected group's type too.
- text.spelling.change {to, words} replaces every listed word in one
  undo step and lays each object out once. Change All finds every
  occurrence with one check after another, then changes them with it.
- Change and Change All to the word shown make no edit and no undo step.
- When another command changes the document or the custom dictionary
  while the dialog is open, the next step checks the scope again from
  its start. An ignored occurrence stays skipped while the same word is
  at the same bytes.
2026-11-15 16:34:23 -08:00
dotCooCoo 6c3a092996 Line Segment: a line from one curve to another snaps to their common tangent
With Smart Guides and Snap to Tangent on, a Line Segment drag pressed
anywhere on a convex closed path with curves and dragged to within the
snapping tolerance of another such path lands on a common tangent of the
two. Both ends move to where the line touches the paths, the start sliding
along the first path. The line is the tangent whose touch point on the
second path is nearest the pointer, so moving the pointer around that path
switches between the outer tangent and the one crossing between the paths.
Each end shows the "tangent" label when Anchor/Path Labels is on, and the
line is drawn as a guide when Alignment Guides is on.

Before this change the start of a Line Segment drag always stayed where it
was pressed. It still does when Shift, Alt or Space is held, when an
anchor, center or crossing lies nearer the pointer than the second path,
when the press snapped to an anchor, center or crossing off the first path,
when Snap to Tangent is off, when Snap to Grid or pixel snapping places
drawn points, or when either path bends inward somewhere or has more than
512 segments.

The tangents come from the Common Tangents geometry. Each pointer move
looks at the 16 nearest closed subpaths within the snapping tolerance and
keeps the tangents of up to 64 pairs for the rest of the drag.
2026-11-15 16:19:42 -08:00
dotCooCoo 418ae818e5 Merge main into fix/erase-region-params-refused 2026-11-15 16:06:28 -08:00
dotCooCoo 46e5ab21e0 Merge main into fix/pen-input-params-pressure-tilt-rotation 2026-11-15 16:06:17 -08:00
dotCooCoo 034f9ce9bc Merge main into feat/recolor-add-remove-color-tools 2026-11-15 16:06:06 -08:00
dotCooCoo f389d644fc Tests: the plain-label paste test changes a graph option before its undo
Graph Type options that leave a graph as it is no longer record a step of
history, so the test's third undo had nothing to take back. The test now
turns on Add Drop Shadow, which redraws the graph and records a step.
2026-11-15 15:57:06 -08:00
BFlat cad4bb0c6e Merge pull request #7834 from dotCooCoo/fix/the-liquify-warning-s-tool-name-and-object-kinds
i18n: Liquify's skip warning shows its tool and object kinds in the interface language
2026-11-16 06:56:45 +07:00
BFlat 3e615f7c67 Merge pull request #7972 from dotCooCoo/feat/glyphs-show-opentype-categories
Glyphs: the Show menu lists the font's OpenType glyph categories
2026-11-16 06:56:16 +07:00
BFlat 89ebbd754a Merge pull request #7898 from dotCooCoo/fix/live-paint-strokeedge-through-edges
Live Paint: livePaint.strokeEdge refuses a through id that is not one of the group's edges
2026-11-16 06:56:07 +07:00
BFlat 75dc7dcd20 Merge pull request #7964 from dotCooCoo/feat/ellipse-anchor-count
Ellipse: the click dialog sets how many anchors the ellipse has
2026-11-16 06:55:58 +07:00
BFlat 47dd56afbb Merge pull request #7962 from dotCooCoo/feat/symbol-align-to-pixel-grid
Symbols: Symbol Options › Align to Pixel Grid keeps a symbol's instances on the pixel grid
2026-11-16 06:55:41 +07:00
BFlat bf7fefd89e Merge pull request #7954 from dotCooCoo/feat/file-info-templates
File Info: the menu saves, imports and lists metadata templates
2026-11-16 06:55:33 +07:00
BFlat 6a3c9cfc8b Merge pull request #7957 from dotCooCoo/feat/eraser-alt-drag-marquee
Eraser: an Alt-drag erases everything inside a marquee, a square with Shift
2026-11-16 06:55:17 +07:00
BFlat b7a1428325 Merge pull request #7935 from dotCooCoo/fix/psd-relink-clip
Links: relinking a clipped PSD follows the new file's clipping path
2026-11-16 06:54:59 +07:00
BFlat 009ba234d7 Merge pull request #7958 from dotCooCoo/fix/recolor-randomize-skips-empty-rows
Recolor Artwork: Randomize leaves rows with no current colors out
2026-11-16 06:54:48 +07:00
BFlat ad94d5dd7a Merge pull request #7967 from dotCooCoo/fix/svg-artboard-export-keeps-brushed-path
SVG: an artboard's SVG keeps a brushed path whose brush art reaches it
2026-11-16 06:54:29 +07:00
dotCooCoo 963c06620e Selection: clicks and marquees follow an object's own geometry effects
A click or a marquee with the selection tools now finds a path or compound
path where its live geometry effects draw it, the copies a Transform effect
makes included, and not where its own geometry no longer paints.

- The engine registers its Use Preview Bounds evaluator with
  `vectorcraft_doc::hit::set_drawn_art`. Hit testing keeps the evaluated art
  per object, evaluates it again when the object, the document's symbols,
  patterns, swatches or live inputs change, and widens each object's cull box
  by the art its effects draw.
- Groups and layers with geometry effects or fills and strokes of their own
  are hit through their evaluated art. Clicks, Select Behind, the locked
  objects under the pointer and marquees map the art back to the members it
  is drawn from, at the depth each tool selects, and Direct Selection takes a
  group whose own paint the art draws.
- Clipping paths keep their own geometry, except that a clip group's own
  effect moves where its mask outline is taken. An isolated clip group's
  members are marqueed by their own geometry, as clicks take them. A clip
  group whose evaluated art holds only its clipping path is tested member by
  member.
- Outline view uses the plain paths, and a layer with Preview off is clicked
  in outline. Intertwine groups keep their woven hit order.

Docs: docs/target-app-parity.md.
2026-11-15 15:50:59 -08:00
dotCooCoo d22668e094 3D: colored Inflate fills each facet and its seam as one path, so face edges match supersampling
Under colored lights, a solid-color Inflate surface drew each facet over
its underlay as a fill and then a same-color round seam stroke. At a
partly covered edge pixel the two coverages add up past the facet's real
coverage, so a turned Inflate's near facets bled into the facets behind
them by up to 5 levels against the same art drawn at 3x and averaged down.

- lighting::seamed_fill turns a facet that is one closed polygon with an
  area and no crossing edges into one path: the facet and the outer
  outline of its round seam (lighting::footprint). solid_surface fills
  that path once per channel. Other facets keep a fill and a seam stroke.
  The 2 pt underlay, the surface clip and the channel groups are as
  before.
- three_d_light_color::turned_colored_inflate_facets_and_seams_cover_their_edges_once
  checks Inflate at X 50, Y 35 in an opaque fill: at most one channel
  sample more than 3 levels off, by at most 4, and no alpha off.
- docs/three-d.md (Seams) and docs/target-app-parity.md describe it.
2026-11-15 15:47:13 -08:00
datatimp 470be8c845 Docs: cite the working helpx Character and paragraph styles page and the fonts FAQ (#7975) 2026-11-15 18:44:58 -05:00
dotCooCoo efd394bb5d Effects: each copy of a fill's or stroke's Transform effect carries the raster effect listed before it
A Drop Shadow, glow, blur, Feather or pixel filter listed before a fill's
or stroke's own Transform effect that makes copies is now drawn by each
copy from that copy's fill area or stroke outline, with its sizes scaled
by the copy's mean scale and a Drop Shadow's offset turned, reflected and
scaled with the copy. With Transform Patterns or Scale Strokes & Effects
on, the shadow is no longer scaled a second time. A raster effect listed
after the Transform effect paints once around all the copies, and with
either option on it stays on each copy as before.

Each copy of a path's own Transform effect that makes copies now carries
the raster effects of its fills and strokes the same way, for a single
fill, a single stroke, or several.

Before, one shadow was drawn around all the copies at the fill's or
stroke's own distances. The canvas, the object's bounds, export and
Expand Appearance draw the same copies, and copies that stop at the
effect budget each keep their effects. A fill or stroke whose effects
list raster effects before a Transform effect that makes copies and
another raster effect after it and before a later Transform effect that
makes copies or moves at random (for example Drop Shadow, Transform,
Drop Shadow, Transform) still paints its raster effects around all of
the copies.
2026-11-15 15:43:12 -08:00
datatimp 2ff3c6e506 Type: new type starts in [Normal Character Style]'s fill, not the current fill (#7975) 2026-11-15 18:23:16 -05:00
dotCooCoo b5c7b60cb8 3D: Revolve's colored-light faces lie over an underlay, so no alpha holes show at 1:1
Under a colored lightColor or a lights list, Revolve drew each face of a
solid-color or gradient surface on its own, so where two faces'
antialiased edges met, pixels inside the surface let the background
through at 1:1.

- The faces now lie over an underlay of themselves under one clip to
  their outline, as colored Inflate's facets do (lighting::sealed, split
  into lighting::underlay and sealed). The surface's opacity and blending
  mode apply once, to the sealed surface.
- In a group, each run of one member's faces in the shared depth order
  takes its own underlay; a translucent member's run keeps its opacity,
  blending mode and mask on the sealed run.
- A face with a part of a mapped graphic gives its face to the underlay
  and keeps the part right after it.
- Faces in a gradient with transparent stops carry its opacity mask and
  are drawn as before. Revolve (Classic) is unchanged.
- The paint-copy budget counts the underlay in validation and drawing.

Docs: docs/three-d.md (Seams), docs/target-app-parity.md.
2026-11-15 15:13:03 -08:00
dotCooCoo 9597392c45 PSD export: slices are written, so an opened PSD's slices survive an export
A PSD export now writes image resource 1050 in version 6 of the PSD file
format specification's slices resource format, the form that Import
Slices reads (crates/engine/src/cmd/fileio/psdslices.rs, version_6).
Flat and layered exports both carry it.

- The user and object slices that reach into the exported artboard are
  written, clipped to it in its pixels, at least one pixel each way.
  Auto slices are left out; opening the file lays them out again.
- An object slice is written as a user slice over its object's bounds,
  and an HTML Text slice as No Image with its type's text as HTML. Name,
  type, link, target, message, alternative text, cell text and
  background color are kept; text alignment is written as the default.
- Slice IDs count from 1.
- More than 10000 slices or a text longer than 65536 characters is an
  export error, matching the reader's limits. A slice without finite
  bounds, or slices that would make the resource longer than 4 GB, is
  also an export error; the size is checked before each text is added.
2026-11-15 15:07:09 -08:00
dotCooCoo f3d4b0b726 Merge branch 'fix/trace-seam-fills-clip' of github.com:dotCooCoo/vectorcraft into fix/trace-seam-fills-clip 2026-11-15 14:41:19 -08:00
dotCooCoo dbf0927385 Image Trace: the seam fills' clip stays within the traced paths' box
The Seam Fills group's clipping path was the image's box. A group with a
clip is measured by its clipping path, so on a trace with transparent or
ignored margins the expanded trace measured as the whole image, and
selection, alignment and resizing used that box. The clipping path is now
the image's box cut to the box of the traced paths: on a turned image it
has up to eight corners, and the anchor limit counts eight for it.

docs/mcp.md, the params text and the progress line describe the clip.
2026-11-15 14:31:51 -08:00
dotCooCoo fb0a8bb52b Merge main into fix/expand-appearance-nested-instance-effects 2026-11-15 14:10:08 -08:00
dotCooCoo a20b45193f 3D and Materials: pass the skip list to the blurred shadow's expansion
main added a list of objects to leave unexpanded to expanded_node, and
the expansion of a 3D effect's blurred shadow did not pass it, so the
branch stopped compiling after the merge of main.
2026-11-15 14:07:05 -08:00
dotCooCoo c207c08edb Image Trace: seam strokes on images scaled alike, and canceling while outlining
Whether a trace's seam fills are strokes or outlines now depends on the
image object's own transform. A raster decoded scaled down to fit has its
two sides rounded separately, so it was scaled a little differently across
and down and every such trace got outlines. The stroke width now uses the
smaller scale of the raster, so a stroke still covers at most 0.75 pixels
on each side of its edge. The check for an even scale compares the axes'
lengths and angle directly, without a square root of a small difference.

Outlining the seam strokes now stops when the trace is canceled, checking
every 64 strokes. A stroke that reaches the make step without an outline
on a stretched image is left out rather than outlined outside the anchor
limit.

docs/mcp.md: the group clips the strokes or outlines.
2026-11-15 14:02:29 -08:00
dotCooCoo 2da339f850 Merge main into fix/trace-seam-fills-clip 2026-11-15 14:01:05 -08:00
dotCooCoo 846d000486 Merge main into fix/pdf-preserve-numbers-tagged-images 2026-11-15 13:58:49 -08:00